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

Properly check key size or bits type as int #196

Merged
merged 1 commit into from
Jan 3, 2024
Merged

Properly check key size or bits type as int #196

merged 1 commit into from
Jan 3, 2024

Conversation

ericwb
Copy link
Contributor

@ericwb ericwb commented Jan 3, 2024

The key_size or bits as passed to key generation functions must of type int.

Previous code was raising an exception when the key size was a string as a result of being a variable of a function argument. Since variable values are not known when passed through functions, it defaulted to a string of the name of the function arg.

The key_size or bits as passed to key generation functions
must of type int.

Previous code was raising an exception when the key size was
a string as a result of being a variable of a function argument.
Since variable values are not known when passed through functions,
it defaulted to a string of the name of the function arg.

Signed-off-by: Eric Brown <[email protected]>
@ericwb ericwb merged commit ea61bde into securesauce:main Jan 3, 2024
5 checks passed
@ericwb ericwb deleted the key_type branch January 3, 2024 19:01
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.

1 participant