Photon .NET Client API 4.1.4.8

Public Member Functions | Protected Attributes | List of all members
ExitGames.Client.Photon.Encryption.EncryptorNet Class Reference
Inheritance diagram for ExitGames.Client.Photon.Encryption.EncryptorNet:
ExitGames.Client.Photon.Encryption.IPhotonEncryptor

Public Member Functions

void Init (byte[] encryptionSecret, byte[] hmacSecret, byte[] ivBytes=null, bool chainingModeGCM=false)
 Initialize the encryptor. More...
 
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

Aes encryptorIn
 Encryption/decryption algorithm implementation More...
 
Aes encryptorOut
 
HMACSHA256 hmacsha256In
 Packet authentication algorithm impelmenation More...
 
HMACSHA256 hmacsha256Out
 

Member Function Documentation

◆ CalculateEncryptedSize()

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

◆ CalculateFragmentLength()

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

◆ Decrypt2()

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

◆ Encrypt2()

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

◆ Init()

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

Initialize the encryptor.

Implements ExitGames.Client.Photon.Encryption.IPhotonEncryptor.

Member Data Documentation

◆ encryptorIn

Aes ExitGames.Client.Photon.Encryption.EncryptorNet.encryptorIn
protected

Encryption/decryption algorithm implementation

◆ encryptorOut

Aes ExitGames.Client.Photon.Encryption.EncryptorNet.encryptorOut
protected

◆ hmacsha256In

HMACSHA256 ExitGames.Client.Photon.Encryption.EncryptorNet.hmacsha256In
protected

Packet authentication algorithm impelmenation

◆ hmacsha256Out

HMACSHA256 ExitGames.Client.Photon.Encryption.EncryptorNet.hmacsha256Out
protected

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