Language

ECDiffieHellmanCngPublicKey.FromByteArray(Byte[], CngKeyBlobFormat) メソッド

定義

公開キーを含むバイト配列を、指定した形式に従って ECDiffieHellmanCngPublicKey オブジェクトに変換します。

public:
 static System::Security::Cryptography::ECDiffieHellmanPublicKey ^ FromByteArray(cli::array <System::Byte> ^ publicKeyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static System.Security.Cryptography.ECDiffieHellmanPublicKey FromByteArray(byte[] publicKeyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
public static System.Security.Cryptography.ECDiffieHellmanPublicKey FromByteArray(byte[] publicKeyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.ECDiffieHellmanPublicKey FromByteArray(byte[] publicKeyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member FromByteArray : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.ECDiffieHellmanPublicKey
static member FromByteArray : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.ECDiffieHellmanPublicKey
[<System.Security.SecurityCritical>]
static member FromByteArray : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.ECDiffieHellmanPublicKey
Public Shared Function FromByteArray (publicKeyBlob As Byte(), format As CngKeyBlobFormat) As ECDiffieHellmanPublicKey

パラメーター

publicKeyBlob
Byte[]

楕円曲線 Diffie-Hellman (ECDH) 公開キーを含むバイト配列。

format
CngKeyBlobFormat

キー BLOB の形式を指定するオブジェクト。

戻り値

バイト配列でシリアル化される ECDH 公開キーを含むオブジェクト。

属性

例外

publicKeyBlobまたはformatパラメーターがnull。

publicKeyBlob パラメーターには、ECDiffieHellman キーが含まれていません。

注釈

この静的メソッドは、すべての ECDiffieHellmanCngPublicKey インスタンス間で共有されます。

適用対象