CreateEccPrivateKey Method
CreateEccPrivateKey(ReadOnlyMemory<Byte>)
Create a new instance of an ECC private key object based on the encoding.
C#
public static PivEccPrivateKey CreateEccPrivateKey(ReadOnlyMemory<byte> encodedPrivateKey)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlyMemory<System.Byte> | encodedPrivateKey | The PIV TLV encoding. |
Returns
A new instance of a PivEccPrivateKey object based on the encoding.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The encoding of the private key is not supported. |