Show / Hide Table of Contents

CreateFromValue Method

CreateFromValue(ReadOnlyMemory<byte>, KeyType)

Creates an instance of Curve25519PublicKey from the given publicPoint and keyType.

C#
public static Curve25519PublicKey CreateFromValue(ReadOnlyMemory<byte> publicPoint, KeyType keyType)

Parameters

Type Name Description
ReadOnlyMemory<byte> publicPoint

The raw public key data, formatted as an compressed point.

KeyType keyType

The type of key this is.

Returns

Curve25519PublicKey

An instance of Curve25519PublicKey.

Exceptions

Type Condition
ArgumentException

Thrown if the public key data length is not valid.

In this article
Back to top Generated by DocFX