ECDiffieHellmanCng.DeriveSecretAgreementHandle 메서드

정의

두 당사자 간에 생성된 비밀 계약에 대한 핸들을 가져옵니다.

오버로드

DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

두 번째 당사자의 공개 키가 들어 있는 ECDiffieHellmanPublicKey 개체를 사용하여 두 당사자 간에 생성된 비밀 계약에 대한 핸들을 가져옵니다.

DeriveSecretAgreementHandle(CngKey)

두 번째 당사자의 공개 키가 들어 있는 CngKey 개체를 사용하여 두 당사자 간에 생성된 비밀 계약에 대한 핸들을 가져옵니다.

설명

DeriveSecretAgreementHandle 메서드 오버로드는 키 자료 대신 원시 비밀 계약에 대한 핸들이 필요한 고급 사용자를 위한 것입니다. 비밀 계약 핸들은 클래스에 의해 래핑되지 않은 작업을 수행하기 위해 플랫폼 호출 호출에 ECDiffieHellmanCng 사용할 수 있습니다.

DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)

두 번째 당사자의 공개 키가 들어 있는 ECDiffieHellmanPublicKey 개체를 사용하여 두 당사자 간에 생성된 비밀 계약에 대한 핸들을 가져옵니다.

public:
 Microsoft::Win32::SafeHandles::SafeNCryptSecretHandle ^ DeriveSecretAgreementHandle(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle (System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
member this.DeriveSecretAgreementHandle : System.Security.Cryptography.ECDiffieHellmanPublicKey -> Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
Public Function DeriveSecretAgreementHandle (otherPartyPublicKey As ECDiffieHellmanPublicKey) As SafeNCryptSecretHandle

매개 변수

otherPartyPublicKey
ECDiffieHellmanPublicKey

키 교환의 다른 당사자가 제공한 공개 키입니다.

반환

비밀 계약에 대한 핸들입니다. 이 정보는 현재 개체의 프라이빗 키와 지정된 퍼블릭 키에 따라 계산됩니다.

예외

otherPartyPublicKey이(가) null인 경우

otherPartyPublicKeyECDiffieHellmanPublicKey 키가 아닌 경우

적용 대상

DeriveSecretAgreementHandle(CngKey)

두 번째 당사자의 공개 키가 들어 있는 CngKey 개체를 사용하여 두 당사자 간에 생성된 비밀 계약에 대한 핸들을 가져옵니다.

public:
 Microsoft::Win32::SafeHandles::SafeNCryptSecretHandle ^ DeriveSecretAgreementHandle(System::Security::Cryptography::CngKey ^ otherPartyPublicKey);
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle (System.Security.Cryptography.CngKey otherPartyPublicKey);
[System.Security.SecurityCritical]
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle (System.Security.Cryptography.CngKey otherPartyPublicKey);
member this.DeriveSecretAgreementHandle : System.Security.Cryptography.CngKey -> Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
[<System.Security.SecurityCritical>]
member this.DeriveSecretAgreementHandle : System.Security.Cryptography.CngKey -> Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle
Public Function DeriveSecretAgreementHandle (otherPartyPublicKey As CngKey) As SafeNCryptSecretHandle

매개 변수

otherPartyPublicKey
CngKey

키 교환의 다른 당사자가 제공한 ECDH(Elliptic Curve Diffie-Hellman) 키의 공개 부분이 들어 있는 개체입니다.

반환

비밀 계약에 대한 핸들입니다. 이 정보는 현재 개체의 프라이빗 키와 지정된 퍼블릭 키에 따라 계산됩니다.

특성

예외

otherPartyPublicKey이(가) null인 경우

otherPartyPublicKey가 ECDH 키가 아니거나 올바른 크기가 아닌 경우

다른 모든 오류입니다.

적용 대상