HomeFreeBSD

pkg: add a pkgsign_verify_data callback

Description

pkg: add a pkgsign_verify_data callback

This will be used to verify raw payloads, as if signed by pkg-key(8).
It will be used specifically in pkg(7) to verify .pubkeysig as published
by poudriere.

Amend verify_pubsignature() now to use it. For the RSA signer, we need
to verify using a sha256 of the data instead of the data itself.

Reviewed by: bapt
Differential Revision: https://reviews.freebsd.org/D48109

Details

Provenance
kevansAuthored on Wed, Jan 1, 9:10 PM
Reviewer
bapt
Differential Revision
D48109: pkg: add a pkgsign_verify_data callback
Parents
rG2ecfc040a09f: pkg: refactor out a pkg_read_fd()
Branches
Unknown
Tags
Unknown