ECDiffieHellmanCng.HmacKey 屬性

定義

取得或設定「雜湊式訊息驗證碼」(Hash-based Message Authentication Code,HMAC) 金鑰,以便在衍生金鑰內容時使用。

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

屬性值

Byte[]

在衍生金鑰內容時使用的「雜湊式訊息驗證碼」(Hash-based Message Authentication Code,HMAC) 金鑰。

備註

只有在 屬性中 KeyDerivationFunction 設定值且 屬性為 時 HmacUseSecretAgreementAsHmacKey 此屬性才 false 適用。 根據預設,此值是 null

適用於