Photon Server API Documentation v5.0RC1

Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
Photon.SocketServer.Security.CryptoBase Class Reference

Base class for encryptor/decryptor classes More...

Inheritance diagram for Photon.SocketServer.Security.CryptoBase:
Photon.SocketServer.Security.Decryptor Photon.SocketServer.Security.Encryptor

Public Member Functions

void Init (byte[] encryptionSecret, byte[] hmacSecret)
 Initialize More...
 
void Dispose ()
 

Static Public Attributes

const int BLOCK_SIZE = 16
 Defines block size for encryption/decryption algorithm More...
 
const int IV_SIZE = BLOCK_SIZE
 Defines IV size for encryption/decryption algorithm More...
 
const int HMAC_SIZE = 32
 Defines HMAC size for packet authentication algorithm More...
 

Protected Attributes

Aes encryptor
 Encryption/decryption algorithm implementation More...
 
HMACSHA256 hmacsha256
 Packet authentication algorithm impelmenation More...
 

Detailed Description

Base class for encryptor/decryptor classes

Member Function Documentation

◆ Dispose()

void Photon.SocketServer.Security.CryptoBase.Dispose ( )
inline

◆ Init()

void Photon.SocketServer.Security.CryptoBase.Init ( byte[]  encryptionSecret,
byte[]  hmacSecret 
)
inline

Initialize

Parameters
encryptionSecret
hmacSecret

Member Data Documentation

◆ BLOCK_SIZE

const int Photon.SocketServer.Security.CryptoBase.BLOCK_SIZE = 16
static

Defines block size for encryption/decryption algorithm

◆ encryptor

Aes Photon.SocketServer.Security.CryptoBase.encryptor
protected

Encryption/decryption algorithm implementation

◆ HMAC_SIZE

const int Photon.SocketServer.Security.CryptoBase.HMAC_SIZE = 32
static

Defines HMAC size for packet authentication algorithm

◆ hmacsha256

HMACSHA256 Photon.SocketServer.Security.CryptoBase.hmacsha256
protected

Packet authentication algorithm impelmenation

◆ IV_SIZE

const int Photon.SocketServer.Security.CryptoBase.IV_SIZE = BLOCK_SIZE
static

Defines IV size for encryption/decryption algorithm