pub fn verify(
alg: DigestAlgorithm,
pk: &VarLenPublicKey<'_>,
msg: &[u8],
salt_len: u32,
sig: &[u8],
) -> Result<(), Error>Expand description
Returns Ok(()) if the provided signature is valid.
Returns an error in any of the following cases:
- the public key is invalid
- the signature verification fails
- the length of
msgexceedsu32::MAX salt_lenexceedsu32::MAX - alg.hash_len() - 8