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

(cherry picked from commit 2e065d74a5b0ea32db7d4f6e3f78eaa17ee7685e)

Details

Provenance
kevansAuthored on Wed, Jan 1, 9:10 PM
Parents
rG082f3564f94d: pkg: abstract rsa out behind a pkgsign API
Branches
Unknown
Tags
Unknown