ECDiffieHellmanCng.DeriveSecretAgreementHandle メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
二者の間で生成された秘密協定のハンドルを取得します。
DeriveSecretAgreementHandle(ECDiffieHellmanPublicKey) |
相手の公開キーを格納した ECDiffieHellmanPublicKey オブジェクトを指定した場合に、二者の間で生成された秘密協定のハンドルを取得します。 |
DeriveSecretAgreementHandle(CngKey) |
相手の公開キーを格納した CngKey オブジェクトを指定した場合に、二者の間で生成された秘密協定のハンドルを取得します。 |
メソッドのオーバーロードは DeriveSecretAgreementHandle 、キー マテリアルではなく生のシークレット 契約へのハンドルを必要とする上級ユーザー向けです。 シークレット アグリーメント ハンドルは、プラットフォーム呼び出しで使用して、 クラスによってラップされていない作業を ECDiffieHellmanCng 実行できます。
相手の公開キーを格納した 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
です。
otherPartyPublicKey
が ECDiffieHellmanPublicKey キーではありません。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | 6, 7, 8, 9 |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.1 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
相手の公開キーを格納した 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 キーではありません。または正しいサイズではありません。
上記以外のすべてのエラー。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | 6, 7, 8, 9 |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.1 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。