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

Use hash algorithm from Signer #251

Closed
wants to merge 1 commit into from

Conversation

tri-adam
Copy link
Member

@tri-adam tri-adam commented Dec 9, 2022

When signature.Singer implements crypto.SignerOpts, use the hash value specified by that. Otherwise, continue to use the default value of SHA-256.

Fixes #249

@tri-adam tri-adam self-assigned this Dec 9, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 9, 2022

Codecov Report

Merging #251 (0628e41) into main (1342bf0) will decrease coverage by 0.14%.
The diff coverage is 60.86%.

@@            Coverage Diff             @@
##             main     #251      +/-   ##
==========================================
- Coverage   72.78%   72.63%   -0.15%     
==========================================
  Files          35       35              
  Lines        2862     2880      +18     
==========================================
+ Hits         2083     2092       +9     
- Misses        626      632       +6     
- Partials      153      156       +3     
Impacted Files Coverage Δ
pkg/integrity/dsse.go 67.47% <60.86%> (-3.00%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@tri-adam tri-adam changed the title Use hash algorithm from Signer/Verifier Use hash algorithm from Signer Feb 3, 2023
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.

Hash algorithm in signature.Signer/Verifier ignored
2 participants