Public-key construction checks the modulus size and parity, not its factorization.
(bits: u32)
| 10 | |
| 11 | // Public-key construction checks the modulus size and parity, not its factorization. |
| 12 | fn modulus(bits: u32) -> BoxedUint { |
| 13 | let one = BoxedUint::one_with_precision(bits); |
| 14 | (&one << (bits - 1)) | one |
| 15 | } |
| 16 | |
| 17 | #[test] |
| 18 | #[allow(deprecated)] |
no outgoing calls