ECPrivateKey Constructor
ECPrivateKey(ECParameters)
Initializes a new instance of the ECPrivateKey class. It is a wrapper for the System.Security.Cryptography.ECParameters class.
C#
protected ECPrivateKey(ECParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
ECParameters | parameters | The EC parameters. |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown when parameters do not contain D value. |
Remarks
This constructor is used to create an instance from a System.Security.Cryptography.ECParameters object. It will deep copy the parameters from the ECParameters object.
ECPrivateKey(ECDsa)
Initializes a new instance of the ECPrivateKey class using a System.Security.Cryptography.ECDsa object.
C#
protected ECPrivateKey(ECDsa ecdsaObject)
Parameters
Type | Name | Description |
---|---|---|
ECDsa | ecdsaObject | The ECDsa object. |
Remarks
It exports the parameters from the ECDsa object and deep copy the parameters from the ECParameters object.