ECDiffieHellmanOpenSsl.DeriveKeyMaterial(ECDiffieHellmanPublicKey) 메서드

정의

공유된 비밀을 기반으로 키 파생을 수행합니다.

public:
 override cli::array <System::Byte> ^ DeriveKeyMaterial(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public override byte[] DeriveKeyMaterial (System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
override this.DeriveKeyMaterial : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
Public Overrides Function DeriveKeyMaterial (otherPartyPublicKey As ECDiffieHellmanPublicKey) As Byte()

매개 변수

otherPartyPublicKey
ECDiffieHellmanPublicKey

상대방의 공개 키입니다.

반환

Byte[]

공유된 비밀의 SHA-256 해시입니다.

예외

otherPartyPublicKey에서 사용되는 곡선의 크기는 이 키의 곡선 크기와 다릅니다.

otherPartyPublicKey이(가) null인 경우

otherPartyPublicKey에서 사용되는 곡선은 이 키의 곡선과 다릅니다.

또는

이 인스턴스는 퍼블릭 키만 나타냅니다.

적용 대상