Show / Hide Table of Contents

CreateFromPkcs8 Method

CreateFromPkcs8(ReadOnlyMemory<byte>)

Creates a new instance of Curve25519PublicKey from a DER-encoded public key.

C#
public static Curve25519PublicKey CreateFromPkcs8(ReadOnlyMemory<byte> encodedKey)

Parameters

Type Name Description
ReadOnlyMemory<byte> encodedKey

The DER-encoded public key.

Returns

Curve25519PublicKey

A new instance of Curve25519PublicKey.

Exceptions

Type Condition
CryptographicException

Thrown if the public key is invalid.

In this article
Back to top Generated by DocFX