Module verify

Source
Expand description

Functions to verify a signed file

Structs§

CollectKeysError
An error returned by collect_keys()
NoMatch
No matching key/signature pair found
ReadSignaturesError
An error returned by read_signatures()
VerifyTarErrorverify-tar
An error returned by verify_tar()
VerifyZipErrorverify-zip
An error retuned by verify_zip()

Functions§

collect_keys
Convert a slice of key bytes into a Vec of VerifyingKeys.
find_match
Iterate signatures and keys, and return the indices of the first match match
read_signatures
Collect all signatures in a file
verify_tarverify-tar
Find the index of the first VerifyingKey that matches the a signature in a signed .tar.gz file
verify_zipverify-zip
Find the index of the first VerifyingKey that matches the a signature in a signed .zip file