Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DigestSet hex encoding validation #330

Merged
merged 5 commits into from
Apr 8, 2024

Conversation

marcelamelara
Copy link
Contributor

Since the spec requires digests in a DigestSet to be hex-encoded, this PR enhances the Validate() function for the ResourceDescriptor and adds a corresponding test.

go/v1/resource_descriptor.go Outdated Show resolved Hide resolved
go/v1/resource_descriptor.go Outdated Show resolved Hide resolved
go/v1/resource_descriptor.go Outdated Show resolved Hide resolved
go/v1/resource_descriptor_test.go Show resolved Hide resolved
…ndable-output functions (shake), parameterize error outputs by algorithm/size

Signed-off-by: Marcela Melara <[email protected]>
Copy link
Member

@pxp928 pxp928 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pxp928 pxp928 merged commit 15e7ca2 into in-toto:main Apr 8, 2024
3 checks passed
@marcelamelara marcelamelara deleted the add-digest-set-validation branch August 30, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants