Share via


ECDiffieHellman.DeriveKeyMaterial(ECDiffieHellmanPublicKey) 메서드

정의

파생 클래스에서 구현될 경우 공유된 비밀을 기반으로 키 파생을 수행합니다.

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

매개 변수

otherPartyPublicKey
ECDiffieHellmanPublicKey

상대방의 공개 키입니다.

반환

Byte[]

공유된 비밀을 입력으로 사용하는 키 파생 함수의 결과입니다.

예외

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

otherPartyPublicKey이(가) null인 경우

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

또는

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

설명

이 메서드의 기본 동작은 추가 또는 추가 값이 없는 해시 알고리즘으로 SHA-256을 지정하는 호출 DeriveKeyFromHash 과 동일합니다. 일부 구현에서는 이 메서드의 동작을 변경할 수 있으며 호출자는 필요한 키 파생을 수행한다고 명시적으로 말하는 메서드를 호출하는 것이 좋습니다.

적용 대상