Enums§
- Signature errors.
- Supported signature schemes.
Functions§
- Generate a new key pair for the given
mode. The function throws an error for P256 keys if no valid key can be generated in a reasonable time. - Sign a message
msgwith the secret keyskand the given signature scheme (mode). For ECDSA thehashalgorithm and anoncehave to be passed in as well. - Verify a signature. Depending on the
Mode, ahashmode has to be passed in. The public keypk,signature, and messagemsgare passed in as byte slices.