ECDiffieHellmanCng.HmacKey 属性

定义

获取或设置派生密钥材料时要使用的基于哈希的消息身份验证代码 (HMAC) 密钥。Gets or sets the Hash-based Message Authentication Code (HMAC) key to use when deriving key material.

public:
 property cli::array <System::Byte> ^ HmacKey { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
public byte[] HmacKey { get; set; }
member this.HmacKey : byte[] with get, set
Public Property HmacKey As Byte()

属性值

Byte[]

派生密钥材料时要使用的基于哈希的消息身份验证代码 (HMAC) 密钥。The Hash-based Message Authentication Code (HMAC) key to use when deriving key material.

注解

仅当在KeyDerivationFunction属性中设置Hmac了值并且UseSecretAgreementAsHmacKey属性为false时, 此属性才适用。This property applies only when the Hmac value is set in the KeyDerivationFunction property, and the UseSecretAgreementAsHmacKey property is false. 默认情况下,该值为 nullBy default, the value is null.

适用于