The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ECDiffieHellman::DeriveKeyFromHash Method (ECDiffieHellmanPublicKey^, HashAlgorithmName)
Derives bytes that can be used as a key using a hash function, given another party's public key and hash algorithm's name.
Assembly: System.Core (in System.Core.dll)
public: array<unsigned char>^ DeriveKeyFromHash( ECDiffieHellmanPublicKey^ otherPartyPublicKey, HashAlgorithmName hashAlgorithm )
Parameters
- otherPartyPublicKey
-
Type:
System.Security.Cryptography::ECDiffieHellmanPublicKey^
The other party's public key.
- hashAlgorithm
-
Type:
System.Security.Cryptography::HashAlgorithmName
The hash algorithm to use to derive the key material.
Return Value
Type: array<System::Byte>^The key material from the key exchange with the other party’s public key.
This overload calls the DeriveKeyFromHash method passing null as the prepend and append values.
.NET Framework
Available since 4.6.2
Available since 4.6.2
Show: