ECDiffieHellmanCng.DeriveKeyMaterial メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
2 つの当事者間の秘密契約から生成される重要な資料を派生させます。
オーバーロード
| 名前 | 説明 |
|---|---|
| DeriveKeyMaterial(CngKey) |
第 2 者の公開キーを含む CngKey オブジェクトが与えられた場合、2 者間の秘密契約から生成されるキー マテリアルを派生させます。 |
| DeriveKeyMaterial(ECDiffieHellmanPublicKey) |
第 2 者の公開キーを含む ECDiffieHellmanPublicKey オブジェクトが与えられた場合、2 者間の秘密契約から生成されるキー マテリアルを派生させます。 |
注釈
楕円曲線 Diffie-Hellman (ECDH) アルゴリズムは、秘密キーと相手の公開キーを入力として受け入れ、秘密契約を出力として生成します。 次に、キー派生関数 (KDF) は秘密契約を受け取り、キーマテリアルを出力として生成します。
DeriveKeyMaterial(CngKey)
第 2 者の公開キーを含む CngKey オブジェクトが与えられた場合、2 者間の秘密契約から生成されるキー マテリアルを派生させます。
public:
cli::array <System::Byte> ^ DeriveKeyMaterial(System::Security::Cryptography::CngKey ^ otherPartyPublicKey);
public byte[] DeriveKeyMaterial(System.Security.Cryptography.CngKey otherPartyPublicKey);
[System.Security.SecurityCritical]
public byte[] DeriveKeyMaterial(System.Security.Cryptography.CngKey otherPartyPublicKey);
override this.DeriveKeyMaterial : System.Security.Cryptography.CngKey -> byte[]
[<System.Security.SecurityCritical>]
override this.DeriveKeyMaterial : System.Security.Cryptography.CngKey -> byte[]
Public Function DeriveKeyMaterial (otherPartyPublicKey As CngKey) As Byte()
パラメーター
- otherPartyPublicKey
- CngKey
キー交換の相手側の楕円曲線 Diffie-Hellman (ECDH) キーの公開部分を含むオブジェクト。
返品
キー マテリアルを含むバイト配列。 この情報は、現在のオブジェクトの秘密キーと指定された公開キーから計算される秘密契約から生成されます。
- 属性
例外
otherPartyPublicKey は nullです。
otherPartyPublicKey が無効です。
AlgorithmGroup プロパティでECDiffieHellmanが指定されていないか、キー サイズがこのインスタンスのキー サイズと一致しません。
このオブジェクトの KeyDerivationFunction プロパティは、 Tls キー派生関数を指定しますが、 Label または Seed が null。
その他すべてのエラー。
適用対象
DeriveKeyMaterial(ECDiffieHellmanPublicKey)
第 2 者の公開キーを含む ECDiffieHellmanPublicKey オブジェクトが与えられた場合、2 者間の秘密契約から生成されるキー マテリアルを派生させます。
public:
override cli::array <System::Byte> ^ DeriveKeyMaterial(System::Security::Cryptography::ECDiffieHellmanPublicKey ^ otherPartyPublicKey);
public override byte[] DeriveKeyMaterial(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
override this.DeriveKeyMaterial : System.Security.Cryptography.ECDiffieHellmanPublicKey -> byte[]
Public Overrides Function DeriveKeyMaterial (otherPartyPublicKey As ECDiffieHellmanPublicKey) As Byte()
パラメーター
- otherPartyPublicKey
- ECDiffieHellmanPublicKey
キー交換の相手の公開キー。
返品
キー マテリアルを含むバイト配列。 この情報は、現在のオブジェクトの秘密キーと指定された公開キーから計算される秘密契約から生成されます。
例外
otherPartyPublicKey は nullです。
otherPartyPublicKey は ECDiffieHellmanCngPublicKey キーではありません。