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);
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 곡선은 이 키의 곡선과 다릅니다.

-또는-

이 인스턴스는 공개 키만 나타냅니다.

적용 대상