pub fn rfc9421_verify<B, F>(
req: &Request<B>,
resolve_key: F,
) -> Result<Rfc9421Verified, Error>Expand description
Verifies an RFC 9421-signed request against a key returned by
resolve_key(key_id).
When multiple labels are present, this function picks the first label whose key the resolver accepts and returns its report. If the resolver fails for every label the last error is returned.
ยงErrors
Returns Error::MissingHeader if either header is absent, and
Error::VerificationFailed if no label produces a valid signature.
See also Error::MalformedSignatureHeader and
Error::KeyResolution.