Skip to content

RS256: Generated RSA Keys(2048bit) have sometimes 2047 modulus length #493

Answered by panva
breadbakerman asked this question in Q&A
Discussion options

You must be logged in to vote

The key is either 2048 and above or it isnt, and the private key's modulus is the same as the public key's modulus, so their lengths are always the same :)

This check is entirely intentional and per the JWA specification.

Please share more details if you can.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by breadbakerman
Comment options

You must be logged in to vote
2 replies
@panva
Comment options

@breadbakerman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants