CreateFromValue Method
CreateFromValue(ReadOnlyMemory<byte>, KeyType)
Creates an instance of ECPublicKey from the given
publicPoint
and keyType
.
C#
public static IPublicKey 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
An instance of ECPublicKey.
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the key type is not a valid EC key. |