ECDiffieHellmanCngPublicKey.FromByteArray(Byte[], CngKeyBlobFormat) Metod

Definition

Konverterar en bytematris som innehåller en offentlig nyckel till ett ECDiffieHellmanCngPublicKey objekt enligt det angivna formatet.

public:
 static System::Security::Cryptography::ECDiffieHellmanPublicKey ^ FromByteArray(cli::array <System::Byte> ^ publicKeyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format);
[System.Security.SecurityCritical]
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>]
static member FromByteArray : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.ECDiffieHellmanPublicKey
static member FromByteArray : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.ECDiffieHellmanPublicKey
Public Shared Function FromByteArray (publicKeyBlob As Byte(), format As CngKeyBlobFormat) As ECDiffieHellmanPublicKey

Parametrar

publicKeyBlob
Byte[]

En bytematris som innehåller en offentlig ecdh-nyckel (Elliptic Curve Diffie-Hellman).

format
CngKeyBlobFormat

Ett objekt som anger formatet för nyckeln BLOB.

Returer

Ett objekt som innehåller den offentliga ECDH-nyckeln som serialiseras i bytematrisen.

Attribut

Undantag

Parametern publicKeyBlob eller format är null.

Parametern publicKeyBlob innehåller ECDiffieHellman ingen nyckel.

Kommentarer

Den här statiska metoden delas mellan alla ECDiffieHellmanCngPublicKey instanser.

Gäller för