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

キー交換で相手から取得した公開キー。

戻り値

SafeNCryptSecretHandle

秘密協定を識別するハンドル。 現在のオブジェクトの秘密キーと指定した公開キーから、この情報は計算されます。

例外

otherPartyPublicKeynullです。

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) キーの公開部分を格納したオブジェクト。

戻り値

SafeNCryptSecretHandle

秘密協定を識別するハンドル。 現在のオブジェクトの秘密キーと指定した公開キーから、この情報は計算されます。

属性

例外

otherPartyPublicKeynullです。

otherPartyPublicKey が ECDH キーではありません。または正しいサイズではありません。

上記以外のすべてのエラー。

適用対象