pub fn sign(
hash_algorithm: Algorithm,
private_key: &PrivateKey<'_>,
salt: &[u8],
msg: &[u8],
) -> Result<Vec<u8>, Error>
Expand description
Sign the provided msg
with the private_key
using the hash_algorithm
and salt
.
Returns an error if any of the inputs are invalid and the signature as byte array.