CreateFromValue Method
CreateFromValue(ReadOnlyMemory<byte>, KeyType)
Creates a new instance of ECPrivateprivateValue
and keyType
.
C#
public static ECPrivateKey CreateFromValue(ReadOnlyMemory<byte> privateValue, KeyType keyType)
Parameters
Type | Name | Description |
---|---|---|
Read |
privateValue | The raw private key data. |
Key |
keyType | The type of key this is. |
Returns
A new instance of ECPrivate
Exceptions
Type | Condition |
---|---|
Argument |
Thrown if the key type is not a valid EC key. |
Remarks
The privateValue
is taken as the raw private key data (scalar value).