ECDiffieHellmanCng.DeriveKeyFromHmac メソッド

定義

指定した HMAC (ハッシュベースのメッセージ認証コード) アルゴリズムを使用してキーの派生を実行し、省略可能な先頭または追加されたデータを指定します。

public:
 override cli::array <System::Byte> ^ DeriveKeyFromHmac(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, cli::array <System::Byte> ^ hmacKey, cli::array <System::Byte> ^ secretPrepend, cli::array <System::Byte> ^ secretAppend);
public override byte[] DeriveKeyFromHmac(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, byte[] hmacKey, byte[] secretPrepend, byte[] secretAppend);
override this.DeriveKeyFromHmac : System.Security.Cryptography.ECDiffieHellmanPublicKey * System.Security.Cryptography.HashAlgorithmName * byte[] * byte[] * byte[] -> byte[]
Public Overrides Function DeriveKeyFromHmac (otherPartyPublicKey As ECDiffieHellmanPublicKey, hashAlgorithm As HashAlgorithmName, hmacKey As Byte(), secretPrepend As Byte(), secretAppend As Byte()) As Byte()

パラメーター

otherPartyPublicKey
ECDiffieHellmanPublicKey

相手の公開キー。

hashAlgorithm
HashAlgorithmName

キー マテリアルの派生に使用するハッシュ アルゴリズム。

hmacKey
Byte[]

HMAC のキー。

secretPrepend
Byte[]

ハッシュする前に派生シークレットの前に付加する値。

secretAppend
Byte[]

ハッシュする前に派生シークレットに追加する値。

返品

Byte[]

要求に応じてデータをプリペンドまたは追加した後の共有シークレットの HMAC。

例外

otherPartyPublicKeyで使用される曲線のサイズは、このキーの曲線とは異なります。

-または-

hashAlgorithm パラメーターはハッシュを指定しません。

otherPartyPublicKeynullです。

otherPartyPublicKeyで使用される曲線は、このキーの曲線とは異なります。

-または-

このインスタンスは公開キーのみを表します。

適用対象