ECDiffieHellmanCng.DeriveKeyFromHmac メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した 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[]
ハッシュする前に派生シークレットに追加する値。
返品
要求に応じてデータをプリペンドまたは追加した後の共有シークレットの HMAC。
例外
otherPartyPublicKeyで使用される曲線のサイズは、このキーの曲線とは異なります。
-または-
hashAlgorithm パラメーターはハッシュを指定しません。
otherPartyPublicKey は nullです。