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

Extend SHA2 implementation to support generic-length truncation #111

Open
3 tasks
marsella opened this issue Aug 7, 2024 · 0 comments
Open
3 tasks

Extend SHA2 implementation to support generic-length truncation #111

marsella opened this issue Aug 7, 2024 · 0 comments
Labels
improvement Addresses fixes or changes to existing specs Suite-B

Comments

@marsella
Copy link
Contributor

marsella commented Aug 7, 2024

Right now, we're planning to implement SHA2 per FIPS 180-4 for only the fixed-length algorithms defined in the spec (SHA-224, -256, -384, -512, -512/224, and -512/256). However, the spec also has details on implementing a SHA-512/$t$ for an arbitrary truncation length $t$. We'd like to support this functionality, too.

  • Identify which parts of the spec need to change to add support for t (e.g. initial hash value in 5.3.6). Update this ticket with a list
  • Implement the changes
  • Find test vectors for some sample lengths and implement them.
@mccleeary-galois mccleeary-galois added enhancement New feature or request Suite-B labels Aug 29, 2024
@marsella marsella added improvement Addresses fixes or changes to existing specs and removed enhancement New feature or request labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Addresses fixes or changes to existing specs Suite-B
Projects
None yet
Development

No branches or pull requests

2 participants