openpgp_verify_file

Function openpgp_verify_file 

Source
fn openpgp_verify_file(
    file: PathBuf,
    signature: PathBuf,
    lookup: &VerifierLookup<'_>,
) -> Result<(), Error>
Expand description

Verifies a file using a signature and a [VerifierLookup].

The success or failure of the verification is transmitted through logging.

ยงErrors

Returns an error if

  • the signature cannot be read as an OpenPGP signature
  • the file cannot be read