CreateFromValue Method
CreateFromValue(ReadOnlyMemory<byte>, KeyType)
Creates an instance of Curve25519PrivateKey from the given
privateKey
and keyType
.
C#
public static Curve25519PrivateKey CreateFromValue(ReadOnlyMemory<byte> privateKey, KeyType keyType)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyMemory<byte> | privateKey | The raw private key data. This is copied internally. |
KeyType | keyType | The type of key this is. |
Returns
An instance of Curve25519PrivateKey.
Exceptions
Type | Condition |
---|---|
CryptographicException | Thrown if privateKey does not match expected format. |