-
Notifications
You must be signed in to change notification settings - Fork 72
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
Expose known algorithms #427
Conversation
This sounds fine, but I'd like to be involved in any discussion of any
proposal to add something akin to negotiation of which algorithms should be
used for different operations...
…On Wed, Jan 15, 2025 at 6:43 PM Puerco ***@***.***> wrote:
This PR adds a change to expose the known algorithms in a new type to let
programs using the library know the standardized algorithm names. The type
has a function to return the expected algorithm length that can be used to
validate a hex representation of a hash.
/cc @marcelamelara <https://github.com/marcelamelara>
Signed-off-by: Adolfo García Veytia (Puerco) ***@***.***
------------------------------
You can view, comment on, or merge this pull request online at:
#427
Commit Summary
- 31e4de6
<31e4de6>
Expose known algorithms
File Changes
(1 file <https://github.com/in-toto/attestation/pull/427/files>)
- *M* go/v1/resource_descriptor.go
<https://github.com/in-toto/attestation/pull/427/files#diff-6463e980f18991b3445b1d4f266d815a768aeb34c9422c72afa91ee2c6c28f66>
(71)
Patch Links:
- https://github.com/in-toto/attestation/pull/427.patch
- https://github.com/in-toto/attestation/pull/427.diff
—
Reply to this email directly, view it on GitHub
<#427>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGROD3FTTFIQNPRADZ3QW32K3XDHAVCNFSM6AAAAABVILUX2KVHI2DSMVQWIX3LMV43ASLTON2WKOZSG44TCMRUHE4TGNY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sending this @puerco ! LGTM!
@JustinCappos Fair point. FWIW, these changes aren't prescribing the use of any algorithm in any particular setting, only defining constants to refer to the spec-supported algorithms and their expected hash lengths. |
This commit exposes the known algorithm list as its own type to let programs using the library to use the standarized algorithm names. Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank You, this will keep things consistent!
This PR adds a change to expose the known algorithms in a new type to let programs using the library know the standardized algorithm names. The type has a function to return the expected algorithm length that can be used to validate a hex representation of a hash.
/cc @marcelamelara
Signed-off-by: Adolfo García Veytia (Puerco) [email protected]