PublicKeyExtensionsFromRawData Method

Creates a public key instance from an ASN.1-encoded byte array.

Definition

Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public static PublicKey FromRawData(
	byte[] rawData
)

Parameters

rawData  Byte
ASN.1-encoded public key.

Return Value

PublicKey
An instance of PublicKey class.

Exceptions

ArgumentNullExceptionrawData parameter is null.
Asn1InvalidTagExceptionrawData parameter doesn't represent properly encoded public key.

See Also