pub fn verify(
os: Os,
purpose: Purpose,
context: Context,
technology: Technology,
file: &RegularFile,
signatures: HashSet<&RegularFile>,
) -> Result<Vec<(OpenpgpSignature, Option<(OpenpgpCert, String)>)>, Error>
Expand description
Verifies that a file can be verified using one or more cryptographic signatures.
ยงErrors
Returns an error if
- a technology other than
Technology::Openpgp
is provided, - one of the
signatures
cannot be read, - or
voa_openpgp::verify_from_file
fails.