Trait signature::hazmat::PrehashSigner
source ·
[−]Expand description
Sign the provided message prehash, returning a digital signature.
Required methods
Attempt to sign the given message digest, returning a digital signature on success, or an error if something went wrong.
The prehash
parameter should be the output of a secure cryptographic
hash function.
This API takes a prehash
byte slice as there can potentially be many
compatible lengths for the message digest for a given concrete signature
algorithm.
Allowed lengths are algorithm-dependent and up to a particular implementation to decide.