ECDSA-based cryptographic functions. More...
Static Public Member Functions | |
| static EcdsaNamedCurve | getDefaultNamedCurve () |
| Gets or sets the default curve. More... | |
| static void | setDefaultNamedCurve (EcdsaNamedCurve defaultNamedCurve) |
| Gets or sets the default curve. More... | |
| static EcdsaKey | createKey () |
| Creates an ECDSA key. More... | |
| static EcdsaKey | createKey (EcdsaNamedCurve namedCurve) |
| Creates an ECDSA key. More... | |
| static byte[] | sign (byte[] data, EcdsaKey privateKey) |
| Signs data using a specified key. More... | |
| static boolean | verify (byte[] data, byte[] signature, EcdsaKey publicKey) |
| Verifies a signature using a specified key and data. More... | |
ECDSA-based cryptographic functions.
|
static |
Creates an ECDSA key.
|
static |
Creates an ECDSA key.
| namedCurve | The named curve. |
|
static |
Gets or sets the default curve.
|
static |
Gets or sets the default curve.
|
static |
Signs data using a specified key.
| data | The data. |
| privateKey | The private key. |
|
static |
Verifies a signature using a specified key and data.
| data | The data. |
| signature | The input signature. |
| publicKey | The public key. |
true if the signature is valid; otherwise, false.