Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Small fixes (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbehjati authored Sep 4, 2023
1 parent 1d291ba commit 77ac93e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/model/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type ValidatedProvenance struct {
provenance intoto.Statement
}

// FindBinarySHA256Digest looks for a "sha256" or "aha2-256" entry in the input
// FindBinarySHA256Digest looks for a "sha256" or "sha2-256" entry in the input
// DigestSet, and returns its value, or an empty string if no such digest is
// found in the digest set.
func FindBinarySHA256Digest(digestSet intoto.DigestSet) string {
Expand Down
3 changes: 1 addition & 2 deletions pkg/claims/endorsement.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ type VerifiedProvenanceSet struct {
// Name of the binary that all validated provenances agree on.
BinaryName string
// DigestSet containing one or more digests of the binary. Must at least
// contain one SHA256 (or SHA2-256) entry that all validated provenances
// agree on.
// contain one SHA2-256 entry that all validated provenances agree on.
Digests intoto.DigestSet
// Provenances is a possibly empty list of provenance metadata objects.
Provenances []ProvenanceData
Expand Down
2 changes: 1 addition & 1 deletion pkg/claims/endorsement_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestGenerateProvenanceLessEndorsement(t *testing.T) {

provenances := VerifiedProvenanceSet{
BinaryName: "SomeBinary",
Digests: intoto.DigestSet{"sha256": "813841dda3818d616aa3e706e49d0286dc825c5dbad4a75cfb37b91ba412238b"},
Digests: intoto.DigestSet{"sha2-256": "813841dda3818d616aa3e706e49d0286dc825c5dbad4a75cfb37b91ba412238b"},
}
endorsement := GenerateEndorsementStatement(validity, provenances)
if err := validateClaim(*endorsement); err != nil {
Expand Down

0 comments on commit 77ac93e

Please sign in to comment.