Class NativeBindings.OdinCipher
Assembly: cs.temp.dll.dll
Implements:
OdinNative.Core.Imports.NativeBindings.IOdinCipher, Odin.IDisposable
Fields
Init
void (* init) (struct OdinCipher *cipher, struct OdinRoom *room);
Free
void (* free) (struct OdinCipher *cipher);
OnEvent
void (* on_event) (struct OdinCipher cipher, const unsigned char bytes, uint32_t length);
EncryptDatagram
int32_t(encrypt_datagram)(struct OdinCipher cipher, const unsigned char plaintext, uint32_t plaintext_length, unsigned char ciphertext, uint32_t ciphertext_capacity);
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);
EncryptMessage
int32_t(encrypt_message)(struct OdinCipher cipher, const unsigned char plaintext, uint32_t plaintext_length, unsigned char ciphertext, uint32_t ciphertext_capacity);
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);
EncryptUserData
int32_t(encrypt_user_data)(struct OdinCipher cipher, const unsigned char plaintext, uint32_t plaintext_length, unsigned char ciphertext, uint32_t ciphertext_capacity);
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);
AdditionalCapacityDatagram
uint32_t additional_capacity_datagram;
AdditionalCapacityMessage
uint32_t additional_capacity_message;
AdditionalCapacityUserData
uint32_t additional_capacity_user_data;
Methods
GetPtr()
Returns
Odin.IntPtr
Dispose(bool)
Parameters
Type | Name |
---|---|
System.Boolean | disposing |
Dispose()
Implements
- OdinNative.Core.Imports.NativeBindings.IOdinCipher
Odin.IDisposable