Skip to main content
Version: 2.x

Class NativeBindings.OdinCipher

Assembly: cs.temp.dll.dll
Declaration
public class NativeBindings.OdinCipher : NativeBindings.IOdinCipher, IDisposable

Implements:
OdinNative.Core.Imports.NativeBindings.IOdinCipher, Odin.IDisposable

Fields

Init

void (* init) (struct OdinCipher *cipher, struct OdinRoom *room);

Declaration
public NativeBindings.IOdinCipher.Init Init

Free

void (* free) (struct OdinCipher *cipher);

Declaration
public NativeBindings.IOdinCipher.Free Free

OnEvent

void (* on_event) (struct OdinCipher cipher, const unsigned char bytes, uint32_t length);

Declaration
public NativeBindings.IOdinCipher.OnEvent OnEvent

EncryptDatagram

int32_t(encrypt_datagram)(struct OdinCipher cipher, const unsigned char plaintext, uint32_t plaintext_length, unsigned char ciphertext, uint32_t ciphertext_capacity);

Declaration
public NativeBindings.IOdinCipher.EncryptDatagram EncryptDatagram

DecryptDatagram

int32_t(decrypt_datagram)(struct OdinCipher cipher, uint64_t peer_id, const unsigned char ciphertext, uint32_t ciphertext_length, unsigned char plaintext, uint32_t plaintext_capacity);

Declaration
public NativeBindings.IOdinCipher.DecryptDatagram DecryptDatagram

EncryptMessage

int32_t(encrypt_message)(struct OdinCipher cipher, const unsigned char plaintext, uint32_t plaintext_length, unsigned char ciphertext, uint32_t ciphertext_capacity);

Declaration
public NativeBindings.IOdinCipher.EncryptMessage EncryptMessage

DecryptMessage

int32_t(decrypt_message)(struct OdinCipher cipher, uint64_t peer_id, const unsigned char ciphertext, uint32_t ciphertext_length, unsigned char plaintext, uint32_t plaintext_capacity);

Declaration
public NativeBindings.IOdinCipher.DecryptMessage DecryptMessage

EncryptUserData

int32_t(encrypt_user_data)(struct OdinCipher cipher, const unsigned char plaintext, uint32_t plaintext_length, unsigned char ciphertext, uint32_t ciphertext_capacity);

Declaration
public NativeBindings.IOdinCipher.EncryptUserData EncryptUserData

DecryptUserData

int32_t(decrypt_user_data)(struct OdinCipher cipher, uint64_t peer_id, const unsigned char ciphertext, uint32_t ciphertext_length, unsigned char plaintext, uint32_t plaintext_capacity);

Declaration
public NativeBindings.IOdinCipher.DecryptUserData DecryptUserData

AdditionalCapacityDatagram

uint32_t additional_capacity_datagram;

Declaration
public uint AdditionalCapacityDatagram

AdditionalCapacityMessage

uint32_t additional_capacity_message;

Declaration
public uint AdditionalCapacityMessage

AdditionalCapacityUserData

uint32_t additional_capacity_user_data;

Declaration
public uint AdditionalCapacityUserData

Methods

GetPtr()

Declaration
protected IntPtr GetPtr()
Returns

Odin.IntPtr

Dispose(bool)

Declaration
protected virtual void Dispose(bool disposing)
Parameters
TypeName
System.Booleandisposing

Dispose()

Declaration
public void Dispose()

Implements