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

[crypto] Enforce minimum key size for HMAC. #19321

Closed
jadephilipoom opened this issue Jul 28, 2023 · 1 comment
Closed

[crypto] Enforce minimum key size for HMAC. #19321

jadephilipoom opened this issue Jul 28, 2023 · 1 comment
Assignees
Labels
Priority:P2 Priority: medium SW:cryptolib Crypto library
Milestone

Comments

@jadephilipoom
Copy link
Contributor

Description

The HMAC specification doesn't provide a minimum size for HMAC keys, but short keys (specifically, keys shorter than the hash function output size) degrade security. We should set a minimum size (probably the hash function output size) and return an error if the caller-provided key is too short.

CC @moidx @y-srini

@jadephilipoom
Copy link
Contributor Author

Resolved by #19745

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:P2 Priority: medium SW:cryptolib Crypto library
Projects
None yet
Development

No branches or pull requests

1 participant