ECDiffieHellmanOpenSsl.DeriveKeyTls 메서드

정의

TLS(전송 계층 보안) 1.1 PRF(의사 난수 함수)를 사용하여 키 파생을 수행합니다.

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

매개 변수

otherPartyPublicKey
ECDiffieHellmanPublicKey

상대방의 공개 키입니다.

prfLabel
Byte[]

ASCII로 인코딩된 PRF 레이블입니다.

prfSeed
Byte[]

64바이트 PRF 시드입니다.

반환

Byte[]

공유된 암호를 키로 사용하는 TLS 1.1 PRF의 처음 48바이트입니다.

예외

파생 클래스가 이 메서드를 재정의해야 합니다.

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

otherPartyPublicKey, prfLabel 또는 prfSeednull인 경우

prfSeed의 정확한 길이가 64바이트가 아닌 경우

또는

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

또는

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

적용 대상