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
A new instance of Curve25519PublicKey.
Exceptions
Type | Condition |
---|---|
CryptographicException | Thrown if the public key is invalid. |