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

Enforce minimum length for HMAC keys #85

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Enforce minimum length for HMAC keys #85

merged 1 commit into from
Dec 18, 2023

Conversation

jsha
Copy link
Collaborator

@jsha jsha commented Dec 14, 2023

Update the test cases that were using undersized keys. For hmacSignedToken, since it had to be regenerated anyhow, move generation into an init() function.

For the example tests, replace panics with print and exit. This allows multiple tests to fail during a given run, since example tests do not catch panics in the same way ordinary tests do.

Fixes #83

Update the test cases that were using undersized keys.
For `hmacSignedToken`, since it had to be regenerated anyhow, move
generation into an `init()` function.

For the example tests, replace panics with print and exit. This allows
multiple tests to fail during a given run, since example tests do not
catch panics in the same way ordinary tests do.
@jsha jsha merged commit 29a78c8 into main Dec 18, 2023
3 checks passed
@jsha jsha deleted the hmac-key-size branch December 18, 2023 22:27
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.

Enforce minimum length for HMAC keys
3 participants