This documentation is archived and is not being maintained.

ECDiffieHellmanCng.HmacKey Property

Gets or sets the Hash-based Message Authentication Code (HMAC) key to use when deriving key material.

Namespace:  System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public byte[] HmacKey { get; set; }

Property Value

Type: System.Byte[]
An Hmac key.

This property applies only when the Hmac value is set in the KeyDerivationFunction property, and the UseSecretAgreementAsHmacKey property is false. By default, the value is null.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: