ECDiffieHellmanCngPublicKey.FromByteArray(Byte[], CngKeyBlobFormat) Metodo

Definizione

Converte una matrice di byte contenente una chiave pubblica in un oggetto ECDiffieHellmanCngPublicKey secondo il formato specificato.

public:
 static System::Security::Cryptography::ECDiffieHellmanPublicKey ^ FromByteArray(cli::array <System::Byte> ^ publicKeyBlob, System::Security::Cryptography::CngKeyBlobFormat ^ format);
public static System.Security.Cryptography.ECDiffieHellmanPublicKey FromByteArray (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);
[System.Security.SecurityCritical]
public static System.Security.Cryptography.ECDiffieHellmanPublicKey FromByteArray (byte[] publicKeyBlob, System.Security.Cryptography.CngKeyBlobFormat format);
static member FromByteArray : byte[] * System.Security.Cryptography.CngKeyBlobFormat -> System.Security.Cryptography.ECDiffieHellmanPublicKey
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
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

Parametri

publicKeyBlob
Byte[]

Matrice di byte contenente una chiave pubblica ECDH (Diffie-Hellman a curva ellittica).

format
CngKeyBlobFormat

Oggetto che specifica il formato del BLOB della chiave.

Restituisce

Oggetto contenente la chiave pubblica ECDH serializzata nella matrice di byte.

Attributi

Eccezioni

Il parametro publicKeyBlob o il parametro format è null.

Il parametro publicKeyBlob non contiene una chiave ECDiffieHellman.

Commenti

Questo metodo statico viene condiviso tra tutte le ECDiffieHellmanCngPublicKey istanze.

Si applica a