Photon Server API
Public Member Functions | Properties | List of all members
Photon.SocketServer.Security.DiffieHellmanKeyExchange Class Reference

An implementation of the Diffie–Hellman key exchange. Diffie–Hellman establishes a shared secret that can be used for secret communications by exchanging data over a public network. More...

Public Member Functions

 DiffieHellmanKeyExchange ()
 Initializes a new instance of the DiffieHellmanKeyExchange class. More...
 
void DeriveSharedKey (byte[] otherPartyPublicKey)
 Derives the shared key. More...
 

Properties

byte[] PublicKey [get]
 Gets the public key which can be used by the other party to derive the shared key. More...
 
byte[] SharedKey [get]
 Gets the shared key that which can be used as the key for cryptographic operations. More...
 

Detailed Description

An implementation of the Diffie–Hellman key exchange. Diffie–Hellman establishes a shared secret that can be used for secret communications by exchanging data over a public network.

Constructor & Destructor Documentation

Photon.SocketServer.Security.DiffieHellmanKeyExchange.DiffieHellmanKeyExchange ( )
inline

Initializes a new instance of the DiffieHellmanKeyExchange class.

Member Function Documentation

void Photon.SocketServer.Security.DiffieHellmanKeyExchange.DeriveSharedKey ( byte[]  otherPartyPublicKey)
inline

Derives the shared key.

Parameters
otherPartyPublicKeyThe others party public key.

Property Documentation

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

Gets the public key which can be used by the other party to derive the shared key.

byte [] Photon.SocketServer.Security.DiffieHellmanKeyExchange.SharedKey
get

Gets the shared key that which can be used as the key for cryptographic operations.