Implementation of encryption for "Datagram Encryption". More...
Public Types | |
enum | ChainingMode { ChainingMode.CBC = 0, ChainingMode.GCM = 1 } |
Public Member Functions | |
static IntPtr | egconstructEncryptor2 (byte[] pEncryptSecret, byte[] pHMACSecret, ChainingMode chainingMode) |
static void | egdestructEncryptor2 (IntPtr pEncryptor) |
static void | egencrypt2 (IntPtr pEncryptor, byte[] pIn, int inSize, byte[] pHeader, byte[] pOut, int outOffset, ref int outSize) |
static void | egdecrypt2 (IntPtr pEncryptor, byte[] pIn, int inSize, int inOffset, byte[] pHeader, byte[] pOut, out int outSize) |
static int | egcalculateEncryptedSize (IntPtr pEncryptor, int unencryptedSize) |
static int | egcalculateFragmentLength (IntPtr pEncryptor) |
delegate void | LogCallbackDelegate (IntPtr userData, int level, [MarshalAs(UnmanagedType.LPStr)] string msg) |
static void | egsetEncryptorLoggingCallback (IntPtr userData, LogCallbackDelegate callback) |
static bool | egsetEncryptorLoggingLevel (int level) |
void | Init (byte[] encryptionSecret, byte[] hmacSecret, byte[] ivBytes=null, bool chainingModeGCM=false) |
Initialize More... | |
void | Dispose () |
void | Encrypt2 (byte[] data, int len, byte[] header, byte[] output, int outOffset, ref int outSize) |
byte[] | Decrypt2 (byte[] data, int offset, int len, byte[] header, out int outLen) |
int | CalculateEncryptedSize (int unencryptedSize) |
int | CalculateFragmentLength () |
Protected Attributes | |
IntPtr | encryptor |
Implementation of encryption for "Datagram Encryption".
|
inline |
|
inline |
|
inline |
|
inline |
static int ExitGames.Client.Photon.Encryption.EncryptorNative.egcalculateEncryptedSize | ( | IntPtr | pEncryptor, |
int | unencryptedSize | ||
) |
static int ExitGames.Client.Photon.Encryption.EncryptorNative.egcalculateFragmentLength | ( | IntPtr | pEncryptor | ) |
static IntPtr ExitGames.Client.Photon.Encryption.EncryptorNative.egconstructEncryptor2 | ( | byte[] | pEncryptSecret, |
byte[] | pHMACSecret, | ||
ChainingMode | chainingMode | ||
) |
static void ExitGames.Client.Photon.Encryption.EncryptorNative.egdecrypt2 | ( | IntPtr | pEncryptor, |
byte[] | pIn, | ||
int | inSize, | ||
int | inOffset, | ||
byte[] | pHeader, | ||
byte[] | pOut, | ||
out int | outSize | ||
) |
static void ExitGames.Client.Photon.Encryption.EncryptorNative.egdestructEncryptor2 | ( | IntPtr | pEncryptor | ) |
static void ExitGames.Client.Photon.Encryption.EncryptorNative.egencrypt2 | ( | IntPtr | pEncryptor, |
byte[] | pIn, | ||
int | inSize, | ||
byte[] | pHeader, | ||
byte[] | pOut, | ||
int | outOffset, | ||
ref int | outSize | ||
) |
static void ExitGames.Client.Photon.Encryption.EncryptorNative.egsetEncryptorLoggingCallback | ( | IntPtr | userData, |
LogCallbackDelegate | callback | ||
) |
static bool ExitGames.Client.Photon.Encryption.EncryptorNative.egsetEncryptorLoggingLevel | ( | int | level | ) |
|
inline |
|
inline |
Initialize
encryptionSecret | |
hmacSecret | |
ivBytes |
Implements ExitGames.Client.Photon.Encryption.IPhotonEncryptor.
delegate void ExitGames.Client.Photon.Encryption.EncryptorNative.LogCallbackDelegate | ( | IntPtr | userData, |
int | level, | ||
[MarshalAs(UnmanagedType.LPStr)] string | msg | ||
) |
|
protected |