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 30 31 32 33 34 35 36 37 38
|
Index: sequoia-openpgp/Cargo.toml
===================================================================
--- sequoia-openpgp.orig/Cargo.toml
+++ sequoia-openpgp/Cargo.toml
@@ -87,7 +87,7 @@ features = ["zeroize"]
optional = true
[dependencies.botan]
-version = "0.10.6"
+version = "0.12"
optional = true
[dependencies.buffered-reader]
@@ -348,9 +348,7 @@ compression-deflate = [
]
crypto-botan = [
"dep:botan",
- "botan?/botan3",
]
-crypto-botan2 = ["dep:botan"]
crypto-fuzzing = []
crypto-nettle = ["dep:nettle"]
crypto-openssl = [
Index: sequoia-openpgp/src/crypto/tests/rsa.rs
===================================================================
--- sequoia-openpgp.orig/src/crypto/tests/rsa.rs
+++ sequoia-openpgp/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);
|