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

Key size on generation is not always computed correctly #302

Closed
simo5 opened this issue Sep 14, 2022 · 0 comments · Fixed by #324
Closed

Key size on generation is not always computed correctly #302

simo5 opened this issue Sep 14, 2022 · 0 comments · Fixed by #324

Comments

@simo5
Copy link
Member

simo5 commented Sep 14, 2022

For algorithms like A256CBC-HS512 the output keysize is 256 bits, but the input keysize is expected to be 512 bits.

When a JWK(generate='oct', alg='A256CBC-HS512') command is invoked the code tries to determine the default key size to be used, and it does that by inquiring the JWA algorithm for its keysize.

Unfortunately the reported key size for these algorithms is the output key size and not the input keysize ...

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 a pull request may close this issue.

1 participant