ECDiffieHellmanCng.DeriveKeyFromHash 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
선택적 앞에 추가되거나 추가된 데이터와 함께 지정된 해시 알고리즘을 사용하여 키 파생을 수행합니다.
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[]
해시하기 전에 파생된 비밀에 추가할 값입니다.
반품
요청된 대로 데이터를 앞에 추가하거나 추가한 후 공유 비밀의 해시입니다.
예외
파생 클래스는 이 메서드를 재정의해야 합니다.
사용하는 otherPartyPublicKey 곡선의 크기는 이 키의 곡선과 다릅니다.
-또는-
매개 변수는 hashAlgorithm 해시를 지정하지 않습니다.
otherPartyPublicKey은 null입니다.