Brian Smith 5ed0a45c65 RSA: Rearrange private prime validity checks.
Move all the checks that are done for each private prime into
the `PrivatePrime` constructor, to eliminate duplication.

This causes the 512-bit-ness check to be done earlier than before,
which affects some of the tests..
2023-11-07 16:59:10 -08:00
..
2017-06-09 17:47:34 -10:00
2023-10-14 16:50:18 -07:00
2023-10-14 16:50:18 -07:00
2023-10-14 16:50:18 -07:00
2023-10-14 16:50:18 -07:00
2023-10-14 16:50:18 -07:00
2023-10-14 16:50:18 -07:00