1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
diff --git a/Cargo.toml b/Cargo.toml
index 75175dd..6ab82b1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -71,9 +71,7 @@ compression-deflate = [
]
crypto-botan = [
"dep:botan",
- "botan?/botan3",
]
-crypto-botan2 = ["dep:botan"]
crypto-cng = [
"dep:cipher",
"dep:eax",
diff --git a/src/crypto/tests/rsa.rs b/src/crypto/tests/rsa.rs
index 5d951d8..364cfad 100644
--- a/src/crypto/tests/rsa.rs
+++ b/src/crypto/tests/rsa.rs
@@ -22,6 +22,10 @@ fn p_less_than_q() -> Result<()> {
//
// Note: p and q are swapped, i.e. p < q doesn't hold in the
// arguments of import_secret_rsa:
+ // Debian: botan 3.x doesn't allow the swapped parameters below
+ if cfg!(feature = "crypto-botan") {
+ return Ok(());
+ }
let key1 = Key4::import_secret_rsa(&d0, &q, &p, t)?;
let (d1, p, q, u1) = extract(&key1);
assert_eq!(raw_bigint_cmp(&p, &q), Ordering::Less);
|