ECDiffieHellmanCngPublicKey.FromByteArray(Byte[], CngKeyBlobFormat) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Konvertiert ein Bytearray, das einen öffentlichen Schlüssel enthält, in ein ECDiffieHellmanCngPublicKey Objekt gemäß dem angegebenen Format.
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
Parameter
- publicKeyBlob
- Byte[]
Ein Bytearray, das einen öffentlichen SCHLÜSSEL (Elliptic Curve Diffie-Hellman, ECDH) enthält.
- format
- CngKeyBlobFormat
Ein Objekt, das das Format des Schlüssel-BLOB angibt.
Gibt zurück
Ein Objekt, das den öffentlichen ECDH-Schlüssel enthält, der im Bytearray serialisiert wird.
- Attribute
Ausnahmen
Der publicKeyBlob Parameter ist formatnull.
Der publicKeyBlob Parameter enthält ECDiffieHellman keinen Schlüssel.
Hinweise
Diese statische Methode wird für alle ECDiffieHellmanCngPublicKey Instanzen freigegeben.