ECDiffieHellmanCng.DeriveSecretAgreementHandle メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
2 つのパーティ間で生成された秘密契約へのハンドルを取得します。
オーバーロード
| 名前 | 説明 |
|---|---|
| DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey) |
第 2 者の公開キーを含む ECDiffieHellmanPublicKey オブジェクトを指定して、2 者間で生成された秘密契約のハンドルを取得します。 |
| DeriveSecretAgreementHandle(CngKey) |
第 2 者の公開キーを含む CngKey オブジェクトを指定して、2 者間で生成された秘密契約のハンドルを取得します。 |
注釈
DeriveSecretAgreementHandle メソッドのオーバーロードは、キー マテリアルの代わりに生の秘密契約へのハンドルを必要とする上級ユーザー向けです。 秘密契約ハンドルは、プラットフォーム呼び出し呼び出しで使用して、 ECDiffieHellmanCng クラスによってラップされていない作業を実行できます。
DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey)
第 2 者の公開キーを含む ECDiffieHellmanPublicKey オブジェクトを指定して、2 者間で生成された秘密契約のハンドルを取得します。
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です。
otherPartyPublicKey は ECDiffieHellmanPublicKey キーではありません。
適用対象
DeriveSecretAgreementHandle(CngKey)
第 2 者の公開キーを含む CngKey オブジェクトを指定して、2 者間で生成された秘密契約のハンドルを取得します。
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
キー交換の相手側の楕円曲線 Diffie-Hellman (ECDH) キーの公開部分を含むオブジェクト。
返品
秘密契約のハンドル。 この情報は、現在のオブジェクトの秘密キーと指定された公開キーから計算されます。
- 属性
例外
otherPartyPublicKey は nullです。
otherPartyPublicKey が ECDH キーではないか、正しいサイズではありません。
その他すべてのエラー。