Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
Photon.SocketServer.Security.NativeCryptoPlugin Class Reference
Inheritance diagram for Photon.SocketServer.Security.NativeCryptoPlugin:
Photon.SocketServer.Security.ICryptoProvider

Public Member Functions

 NativeCryptoPlugin ()
 
bool DeriveSharedKey (byte[] otherPartyPublicKey)
 
ICryptoProvider GetCryptoProvider (EncryptionMethod method=EncryptionMethod.Sha256Pkcs7)
 
byte[] Encrypt (byte[] data)
 Encrypts the specified data. More...
 
byte[] Encrypt (byte[] data, int offset, int count)
 Encrypts the specified data. More...
 
int DecryptInplace (byte[] data, int offset, int count)
 
byte[] Decrypt (byte[] data)
 Decrypts the specified data. More...
 
byte[] Decrypt (byte[] data, int offset, int count)
 Decrypts the specified data. More...
 
void Dispose ()
 

Properties

bool IsInitialized [get]
 
byte[] PublicKey [get]
 
byte[] SharedKeyHash [get]
 
- Properties inherited from Photon.SocketServer.Security.ICryptoProvider
bool IsInitialized [get]
 Gets a value indicating whether IsInitialized. More...
 

Constructor & Destructor Documentation

◆ NativeCryptoPlugin()

Photon.SocketServer.Security.NativeCryptoPlugin.NativeCryptoPlugin ( )
inline

Member Function Documentation

◆ Decrypt() [1/2]

byte [] Photon.SocketServer.Security.NativeCryptoPlugin.Decrypt ( byte[]  data)
inline

Decrypts the specified data.

Parameters
dataThe data to decrypt.
Returns
A byte array containing the decrypted data.

Implements Photon.SocketServer.Security.ICryptoProvider.

◆ Decrypt() [2/2]

byte [] Photon.SocketServer.Security.NativeCryptoPlugin.Decrypt ( byte[]  data,
int  offset,
int  count 
)
inline

Decrypts the specified data.

Parameters
dataThe data.
offsetThe offset.
countThe count.
Returns
A byte array containing the decrypted data.

Implements Photon.SocketServer.Security.ICryptoProvider.

◆ DecryptInplace()

int Photon.SocketServer.Security.NativeCryptoPlugin.DecryptInplace ( byte[]  data,
int  offset,
int  count 
)
inline

◆ DeriveSharedKey()

bool Photon.SocketServer.Security.NativeCryptoPlugin.DeriveSharedKey ( byte[]  otherPartyPublicKey)
inline

◆ Dispose()

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

◆ Encrypt() [1/2]

byte [] Photon.SocketServer.Security.NativeCryptoPlugin.Encrypt ( byte[]  data)
inline

Encrypts the specified data.

Parameters
dataThe data to encrypt.
Returns
A byte array containing the encrypted data.

Implements Photon.SocketServer.Security.ICryptoProvider.

◆ Encrypt() [2/2]

byte [] Photon.SocketServer.Security.NativeCryptoPlugin.Encrypt ( byte[]  data,
int  offset,
int  count 
)
inline

Encrypts the specified data.

Parameters
dataThe data to encrypt.
offsetThe offset.
countThe count.
Returns
A byte array containing the encrypted data.

Implements Photon.SocketServer.Security.ICryptoProvider.

◆ GetCryptoProvider()

ICryptoProvider Photon.SocketServer.Security.NativeCryptoPlugin.GetCryptoProvider ( EncryptionMethod  method = EncryptionMethod.Sha256Pkcs7)
inline

Property Documentation

◆ IsInitialized

bool Photon.SocketServer.Security.NativeCryptoPlugin.IsInitialized
get

◆ PublicKey

byte [] Photon.SocketServer.Security.NativeCryptoPlugin.PublicKey
get

◆ SharedKeyHash

byte [] Photon.SocketServer.Security.NativeCryptoPlugin.SharedKeyHash
get