pub fn sign(
alg: Algorithm,
payload: &[u8],
private_key: &[u8],
rng: &mut (impl CryptoRng + RngCore),
) -> Result<Signature, Error>
Expand description
Sign the payload
with the given Algorithm
and private_key
.
Returns the Signature
or an Error::SigningError
.