Show / Hide Table of Contents

CreateEccPrivateKey Method

CreateEccPrivateKey(ReadOnlyMemory<byte>, PivAlgorithm?)

Create a new instance of an ECC private key object based on the encoding.

C#
public static PivEccPrivateKey CreateEccPrivateKey(ReadOnlyMemory<byte> encodedPrivateKey, PivAlgorithm? pivAlgorithm)

Parameters

Type Name Description
ReadOnlyMemory<byte> encodedPrivateKey

The PIV TLV encoding.

PivAlgorithm? pivAlgorithm

Returns

PivEccPrivateKey

A new instance of a PivEccPrivateKey object based on the encoding.

Exceptions

Type Condition
ArgumentException

The encoding of the private key is not supported.

In this article
Back to top Generated by DocFX