pub fn verify(
mode: Mode,
hash: impl Into<Option<Algorithm>>,
pk: &[u8],
signature: &[u8],
msg: &[u8],
) -> Result<bool, Error>Expand description
Verify a signature.
Depending on the Mode, a hash mode has to be passed in.
The public key pk, signature, and message msg are passed in as byte
slices.