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 |
---|---|---|
ReadOnlyMemory<byte> | encodedPrivateKey | The PIV TLV encoding. |
Returns
A new instance of a PivEccPrivateKey object based on the encoding.
Exceptions
Type | Condition |
---|---|
ArgumentException | The encoding of the private key is not supported. |