Photon .NET Client API 4.1.4.8

Public Types | Public Member Functions | Protected Attributes | List of all members
ExitGames.Client.Photon.Encryption.EncryptorNative Class Reference

Implementation of encryption for "Datagram Encryption". More...

Inheritance diagram for ExitGames.Client.Photon.Encryption.EncryptorNative:
ExitGames.Client.Photon.Encryption.IPhotonEncryptor

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
 

Detailed Description

Implementation of encryption for "Datagram Encryption".

Member Enumeration Documentation

◆ ChainingMode

Enumerator
CBC 
GCM 

Member Function Documentation

◆ CalculateEncryptedSize()

int ExitGames.Client.Photon.Encryption.EncryptorNative.CalculateEncryptedSize ( int  unencryptedSize)
inline

◆ CalculateFragmentLength()

int ExitGames.Client.Photon.Encryption.EncryptorNative.CalculateFragmentLength ( )
inline

◆ Decrypt2()

byte [] ExitGames.Client.Photon.Encryption.EncryptorNative.Decrypt2 ( byte[]  data,
int  offset,
int  len,
byte[]  header,
out int  outLen 
)
inline

◆ Dispose()

void ExitGames.Client.Photon.Encryption.EncryptorNative.Dispose ( )
inline

◆ egcalculateEncryptedSize()

static int ExitGames.Client.Photon.Encryption.EncryptorNative.egcalculateEncryptedSize ( IntPtr  pEncryptor,
int  unencryptedSize 
)

◆ egcalculateFragmentLength()

static int ExitGames.Client.Photon.Encryption.EncryptorNative.egcalculateFragmentLength ( IntPtr  pEncryptor)

◆ egconstructEncryptor2()

static IntPtr ExitGames.Client.Photon.Encryption.EncryptorNative.egconstructEncryptor2 ( byte[]  pEncryptSecret,
byte[]  pHMACSecret,
ChainingMode  chainingMode 
)

◆ egdecrypt2()

static void ExitGames.Client.Photon.Encryption.EncryptorNative.egdecrypt2 ( IntPtr  pEncryptor,
byte[]  pIn,
int  inSize,
int  inOffset,
byte[]  pHeader,
byte[]  pOut,
out int  outSize 
)

◆ egdestructEncryptor2()

static void ExitGames.Client.Photon.Encryption.EncryptorNative.egdestructEncryptor2 ( IntPtr  pEncryptor)

◆ egencrypt2()

static void ExitGames.Client.Photon.Encryption.EncryptorNative.egencrypt2 ( IntPtr  pEncryptor,
byte[]  pIn,
int  inSize,
byte[]  pHeader,
byte[]  pOut,
int  outOffset,
ref int  outSize 
)

◆ egsetEncryptorLoggingCallback()

static void ExitGames.Client.Photon.Encryption.EncryptorNative.egsetEncryptorLoggingCallback ( IntPtr  userData,
LogCallbackDelegate  callback 
)

◆ egsetEncryptorLoggingLevel()

static bool ExitGames.Client.Photon.Encryption.EncryptorNative.egsetEncryptorLoggingLevel ( int  level)

◆ Encrypt2()

void ExitGames.Client.Photon.Encryption.EncryptorNative.Encrypt2 ( byte[]  data,
int  len,
byte[]  header,
byte[]  output,
int  outOffset,
ref int  outSize 
)
inline

◆ Init()

void ExitGames.Client.Photon.Encryption.EncryptorNative.Init ( byte[]  encryptionSecret,
byte[]  hmacSecret,
byte[]  ivBytes = null,
bool  chainingModeGCM = false 
)
inline

Initialize

Parameters
encryptionSecret
hmacSecret
ivBytes

Implements ExitGames.Client.Photon.Encryption.IPhotonEncryptor.

◆ LogCallbackDelegate()

delegate void ExitGames.Client.Photon.Encryption.EncryptorNative.LogCallbackDelegate ( IntPtr  userData,
int  level,
[MarshalAs(UnmanagedType.LPStr)] string  msg 
)

Member Data Documentation

◆ encryptor

IntPtr ExitGames.Client.Photon.Encryption.EncryptorNative.encryptor
protected

The documentation for this class was generated from the following file: