ECDiffieHellmanCngPublicKey.FromByteArray(Byte[], CngKeyBlobFormat) Metoda

Definice

Převede pole bajtů, které obsahuje veřejný klíč, na ECDiffieHellmanCngPublicKey objekt podle zadaného formátu.

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

Parametry

publicKeyBlob
Byte[]

Pole bajtů, které obsahuje veřejný klíč Diffie-Hellman eliptické křivky (ECDH).

format
CngKeyBlobFormat

Objekt, který určuje formát klíčového objektu BLOB.

Návraty

Objekt obsahující veřejný klíč ECDH, který je serializován v bajtovém poli.

Atributy

Výjimky

Parametr publicKeyBlob nebo format je null.

Parametr publicKeyBlob neobsahuje ECDiffieHellman klíč.

Poznámky

Tato statická metoda je sdílena mezi všemi ECDiffieHellmanCngPublicKey instancemi.

Platí pro