pub fn verify(
alg: Algorithm,
public: &[u8],
msg: &[u8],
sig: &[u8],
) -> Result<(), AlgorithmError>Expand description
Verify a detached signature.
Fails closed: a signature that does not verify is an
AlgorithmError::SignatureInvalid error, never a boolean, so a
forgotten result check cannot be mistaken for success.
The crate README contains the compile-checked fail-closed verification example so test code remains separate from this production implementation.