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

when Jwk.generate_for_alg is called and a subclass reimplements this classmethod, it's called instead of .generate #6

Closed
wants to merge 1 commit into from

Conversation

alacham
Copy link

@alacham alacham commented Jan 3, 2023

when I tried to call

from jwskate import Jwk, Jwt
hmac_private_jwk = Jwk.generate_for_alg(alg="HS512")

I found out that extremely short key is generated - I found out that SymmetricJwk.generate_for_alg() method is ignored and because of that key_size is set to 128

…classmethod, it's called instead of .generate
@guillp
Copy link
Owner

guillp commented Jan 11, 2023

Fixed in #8

@guillp guillp closed this Jan 11, 2023
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.

None yet

2 participants