ECDiffieHellmanCng.DeriveKeyFromHash メソッド

定義

指定したハッシュ アルゴリズムを使用してキーの派生を実行し、省略可能な先頭または追加されたデータを指定します。

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

パラメーター

otherPartyPublicKey
ECDiffieHellmanPublicKey

相手の公開キー。

hashAlgorithm
HashAlgorithmName

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

secretPrepend
Byte[]

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

secretAppend
Byte[]

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

返品

Byte[]

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

例外

派生クラスは、このメソッドをオーバーライドする必要があります。

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

-または-

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

otherPartyPublicKeynullです。

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

-または-

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

適用対象