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
msg
with the secret keysk
and the given signature scheme (mode
). For ECDSA thehash
algorithm and anonce
have to be passed in as well. - Verify a signature. Depending on the
Mode
, ahash
mode has to be passed in. The public keypk
,signature
, and messagemsg
are passed in as byte slices.