ECDiffieHellmanCng.UseSecretAgreementAsHmacKey Property


Gets a value that indicates whether the secret agreement is used as a Hash-based Message Authentication Code (HMAC) key to derive key material.

 property bool UseSecretAgreementAsHmacKey { bool get(); };
public bool UseSecretAgreementAsHmacKey { get; }
member this.UseSecretAgreementAsHmacKey : bool
Public ReadOnly Property UseSecretAgreementAsHmacKey As Boolean

Property Value

true if the secret agreement is used as an HMAC key to derive key material; otherwise, false.


  • This value is used for key derivation if the KeyDerivationFunction property is set to Hmac. By default, the value is false.

Applies to