4 Commits

Author SHA1 Message Date
Marek Vavrusa
f376d70669 Regenerated tests for rsa_pkcs1_sign_tests, rsa_pkcs1_verify_tests
I agree to license my contributions to each file under the terms given
at the top of each file I changed.
2020-04-28 11:23:00 -05:00
Brian Smith
a2694ea765 Temporarily stop checking whether p and q are too close in RSA.
Remove one use of `bit_length()` which will require non-trivial work to
replace.

This probably also improves compatibility to some extent since I doubt
many crypto libraries ensure that `p` and `q` are far enough apart
according to NIST's requirements.
2018-05-09 13:53:39 -10:00
Gavin Li
c95e96bb48 Add support for keys where p < q
Support them by swapping (p, dP) and (q, dQ) and recalculating qInv
ourselves. Added a few test vectors for |p < q|
parsing/signing/verification.

I agree to license my contributions to each file under the terms given
at the top of each file I changed.
2018-05-04 08:57:38 -10:00
Brian Smith
e52904256b Move RSA signing & verification functional tests to tests/. 2017-05-13 22:37:26 -10:00