Enforce strict RSA key length checking in existing RSA crypto constructors, add new legacy constructor to permit keys shorter than 2018 bits

Issue #219 resolved
Former user created an issue

Chapter 3.3 and 3.5 of the JWA specification require RSA keys to have a length of at least 2048 bit.

This requirement is currently not enforced by the library. I attached a test case that illustrates the behaviour.

Comments (4)

  1. Vladimir Dzhuvinov

    That's true, we've had developers who insisted on support 1024 bit RSA keys for various reasons.

    I'm thinking of adding a second 'legacy' constructor to permit shorter keys, while making the original constructor strict (require 2048+ bits).

  2. Log in to comment