Add some #[ignore]s for the longer-running tests.
This commit is contained in:
@@ -142,6 +142,7 @@ mod tests {
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[ignore]
|
||||||
fn can_get_p_and_q() {
|
fn can_get_p_and_q() {
|
||||||
let mut rng = OsRng::new().unwrap();
|
let mut rng = OsRng::new().unwrap();
|
||||||
let e = UCN::from(65537 as u64);
|
let e = UCN::from(65537 as u64);
|
||||||
|
|||||||
@@ -91,12 +91,14 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
quickcheck! {
|
quickcheck! {
|
||||||
|
#[ignore]
|
||||||
fn rsa_ep_dp_inversion(kp: RSAKeyPair, n: UCN) -> bool {
|
fn rsa_ep_dp_inversion(kp: RSAKeyPair, n: UCN) -> bool {
|
||||||
let m = n.reduce(&kp.public.nu);
|
let m = n.reduce(&kp.public.nu);
|
||||||
let ciphertext = ep(&kp.public.nu, &kp.public.e, &m);
|
let ciphertext = ep(&kp.public.nu, &kp.public.e, &m);
|
||||||
let mprime = dp(&kp.private.nu, &kp.private.d, &ciphertext);
|
let mprime = dp(&kp.private.nu, &kp.private.d, &ciphertext);
|
||||||
mprime == m
|
mprime == m
|
||||||
}
|
}
|
||||||
|
#[ignore]
|
||||||
fn rsa_sp_vp_inversion(kp: RSAKeyPair, n: UCN) -> bool {
|
fn rsa_sp_vp_inversion(kp: RSAKeyPair, n: UCN) -> bool {
|
||||||
let m = n.reduce(&kp.public.nu);
|
let m = n.reduce(&kp.public.nu);
|
||||||
let sig = sp1(&kp.private.nu, &kp.private.d, &m);
|
let sig = sp1(&kp.private.nu, &kp.private.d, &m);
|
||||||
|
|||||||
Reference in New Issue
Block a user