Add some #[ignore]s for the longer-running tests.

This commit is contained in:
2018-05-05 19:47:59 -07:00
parent 29a14b39e6
commit 213c75ad51
2 changed files with 3 additions and 0 deletions

View File

@@ -142,6 +142,7 @@ mod tests {
use super::*;
#[test]
#[ignore]
fn can_get_p_and_q() {
let mut rng = OsRng::new().unwrap();
let e = UCN::from(65537 as u64);

View File

@@ -91,12 +91,14 @@ mod tests {
}
quickcheck! {
#[ignore]
fn rsa_ep_dp_inversion(kp: RSAKeyPair, n: UCN) -> bool {
let m = n.reduce(&kp.public.nu);
let ciphertext = ep(&kp.public.nu, &kp.public.e, &m);
let mprime = dp(&kp.private.nu, &kp.private.d, &ciphertext);
mprime == m
}
#[ignore]
fn rsa_sp_vp_inversion(kp: RSAKeyPair, n: UCN) -> bool {
let m = n.reduce(&kp.public.nu);
let sig = sp1(&kp.private.nu, &kp.private.d, &m);