-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add digest to targets metadata directly (#170)
* Add digest to targets metadata directly This commit allows users of go-tuf to sign oci images or other non-local targets by directly providing the hash and length of these artifacts. Signed-off-by: Marina Moore <[email protected]> * dynamically determine hash algorithm in AddDigestTarget Signed-off-by: Marina Moore <[email protected]> * Add verification of digest signatures Signed-off-by: Marina Moore <[email protected]> * Update digest delegation based on pr feedback Signed-off-by: Marina Moore <[email protected]> * fix formatting Signed-off-by: Marina Moore <[email protected]> * add client test for VerifyDigest Signed-off-by: Marina Moore <[email protected]> * allow verifydigest to have a path Signed-off-by: Marina Moore <[email protected]> * Update repo.go Co-authored-by: Ethan Lowman <[email protected]> * Add and verify non-oci digests Signed-off-by: Marina Moore <[email protected]> * fix test Signed-off-by: Marina Moore <[email protected]> * fix go vet errors Signed-off-by: Marina Moore <[email protected]> * AddDigestTargets -> AddTargetsWithDigest Signed-off-by: Marina Moore <[email protected]> * AddDigestTargets -> AddTargetsWithDigest Signed-off-by: Marina Moore <[email protected]> * fix go vet Signed-off-by: Marina Moore <[email protected]> * fix static check Signed-off-by: Marina Moore <[email protected]> * update function signatures for VerifyDigest, AddTargetsWithDigest Signed-off-by: Marina Moore <[email protected]> * use topLevelTargets() instead of targets() Signed-off-by: Marina Moore <[email protected]> * bug fix Signed-off-by: Marina Moore <[email protected]> Co-authored-by: Ethan Lowman <[email protected]>
- Loading branch information
1 parent
eac0a85
commit b072577
Showing
4 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters