Photon Server API Documentation
v5.0RC1
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...
Inherits Photon.SocketServer.Security.IDiffieHellmanKeyExchange.
Public Member Functions | |
| DiffieHellmanKeyExchange () | |
| Initializes a new instance of the DiffieHellmanKeyExchange class. More... | |
| bool | DeriveSharedKey (byte[] otherPartyPublicKey) |
| Derives the shared key. More... | |
| ICryptoProvider | GetCryptoProvider (EncryptionMethod method=EncryptionMethod.Sha256Pkcs7) |
| void | ExchangeKeys (PeerBase peer, byte[] otherPartyPublicKey) |
| void | Dispose () |
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... | |
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.
|
inline |
Initializes a new instance of the DiffieHellmanKeyExchange class.
|
inline |
Derives the shared key.
| otherPartyPublicKey | The others party public key. |
|
inline |
|
inline |
|
inline |
|
get |
Gets the public key which can be used by the other party to derive the shared key.
|
get |
Gets the shared key that which can be used as the key for cryptographic operations.