Modern Apps git

← Modern-Apps.git

passwords: pin keepass 0.13.22 + aes 0.9.2 to fix cipher conflict

Commit
bb23f4fcbcc31c4dddc0ce1e022f40a1db1eb308
Author
vayun-mathur <[email protected]>
When
2026-09-16 22:33 UTC (2 months ago)
Parents
f044dc4

Diff

Cargo.lock
diff --git a/Cargo.lock b/Cargo.lockindex f4b6b6a7a7..0f328bf618 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -81,6 +81,17 @@ dependencies = [  "cpufeatures 0.2.17", ] +[[package]]+name = "aes"+version = "0.9.2"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f8eb277bec05f56a0e0591f155a484cbd0f4f07ff2905051a48c72f004f7ed58"+dependencies = [+ "cipher 0.5.2",+ "cpubits",+ "cpufeatures 0.3.0",+]+ [[package]] name = "aes-gcm" version = "0.10.3"@@ -88,7 +99,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1" dependencies = [  "aead",- "aes",+ "aes 0.8.4",  "cipher 0.4.4",  "ctr",  "ghash",@@ -102,7 +113,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae0784134ba9375416d469ec31e7c5f9fa94405049cf08c5ce5b4698be673e0d" dependencies = [  "aead",- "aes",+ "aes 0.8.4",  "cipher 0.4.4",  "ctr",  "polyval",@@ -702,7 +713,7 @@ dependencies = [ name = "communicate_signal" version = "0.1.0" dependencies = [- "aes",+ "aes 0.8.4",  "curve25519-dalek",  "hmac 0.12.1",  "jni",@@ -736,6 +747,12 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" +[[package]]+name = "cpubits"+version = "0.1.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "15b85f9c39137c3a891689859392b1bd49812121d0d61c9caf00d46ed5ce06ae"+ [[package]] name = "cpufeatures" version = "0.2.17"@@ -897,7 +914,7 @@ name = "crypto_provider_rustcrypto" version = "0.1.0" dependencies = [  "aead",- "aes",+ "aes 0.8.4",  "aes-gcm",  "aes-gcm-siv",  "cbc 0.1.2",@@ -1962,11 +1979,11 @@ dependencies = [  [[package]] name = "keepass"-version = "0.13.25"+version = "0.13.22" source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "f8161ba5159f649a4899e46aa084130263a7af722116ead3faec24e5ee92a7b9"+checksum = "a845a36b656474a0e73e71bfb7dec34250244df364815b77abe1067f17e59e8e" dependencies = [- "aes",+ "aes 0.9.2",  "base64 0.23.1",  "block-modes",  "byteorder",@@ -2019,7 +2036,7 @@ dependencies = [ name = "ldt" version = "0.1.0" dependencies = [- "aes",+ "aes 0.8.4",  "anyhow",  "base64 0.22.1",  "blake2",@@ -2206,7 +2223,7 @@ version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59fa2559e99ba0f26a12458aabc754432c805bbb8cba516c427825a997af1fb7" dependencies = [- "aes",+ "aes 0.8.4",  "bitflags 2.13.1",  "cbc 0.1.2",  "ecb",@@ -2666,6 +2683,7 @@ dependencies = [ name = "passwords_kdbx" version = "0.1.0" dependencies = [+ "aes 0.9.2",  "jni",  "keepass",  "serde",@@ -2675,7 +2693,7 @@ dependencies = [ name = "pdf_render" version = "0.1.0" dependencies = [- "aes",+ "aes 0.8.4",  "der",  "fax",  "flate2",@@ -2977,7 +2995,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "03da047801ff44bb6a4d407d4860c05fd70bb81714e6b2f3812603d5b145b042" dependencies = [  "heck",- "itertools 0.10.5",+ "itertools 0.14.0",  "log",  "multimap",  "petgraph",@@ -3009,7 +3027,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b570b25f7617e43d59005d0990ccb79e950a423952cea19671b7a876da390adf" dependencies = [  "anyhow",- "itertools 0.10.5",+ "itertools 0.14.0",  "proc-macro2",  "quote",  "syn 2.0.119",@@ -3550,7 +3568,7 @@ dependencies = [ name = "share_nearby" version = "0.1.0" dependencies = [- "aes",+ "aes 0.8.4",  "bytes",  "cbc 0.1.2",  "cipher 0.4.4",@@ -4527,7 +4545,7 @@ dependencies = [ name = "xts_aes" version = "0.1.0" dependencies = [- "aes",+ "aes 0.8.4",  "anyhow",  "array_ref",  "base64 0.22.1",
Cargo.toml
diff --git a/Cargo.toml b/Cargo.tomlindex d9f673a31b..554f8aa696 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -123,8 +123,21 @@ sha2 = { version = "0.11.0", features = ["oid"] } # via fips203/fips204, so this only promotes it to a direct dependency. sha3 = "0.10" aes = "0.8.4"+# keepass 0.13.25 (passwords) requires aes 0.9.x (cipher 0.5 stack) to match its+# cbc 0.2 / cipher 0.5 deps. The default `aes` pin stays 0.8.4 (cipher 0.4 stack)+# for communicate/pdf/share/betocore. `aes09` forces aes 0.9.2 into the lock so+# keepass's `aes <0.9.3` edge resolves to 0.9.2 instead of unifying onto 0.8.4+# (which fails with `Aes256: BlockCipherEncrypt` unsatisfied, E0277).+aes09 = { package = "aes", version = "=0.9.2" } md-5 = "0.11.0"-keepass = { version = "0.13.17", default-features = false, features = ["save_kdbx4"] }+# keepass pinned to =0.13.22: last release whose `aes` edge is `^0.9` (cipher 0.5+# stack, matching its cbc 0.2 / cipher 0.5 deps). 0.13.23+ widened the edge to+# `aes <0.9.3`, which also accepts 0.8.x, so cargo unifies keepass onto the+# workspace aes 0.8.4 pin (cipher 0.4 stack) and keepass fails with+# `Aes256: BlockCipherEncrypt` unsatisfied (E0277). cbc/cipher/rust-version are+# identical between 0.13.22 and 0.13.25 per the registry index (cbc ^0.2,+# cipher ^0.5, rust 1.85.1). Only passwords uses keepass.+keepass = { version = "=0.13.22", default-features = false, features = ["save_kdbx4"] } # Classic Signal protocol (WhatsApp bridge) – X25519/XEdDSA + AES-CBC + HMAC. curve25519-dalek = { version = "4.1.3", default-features = false, features = ["alloc", "precomputed-tables", "zeroize"] } x25519-dalek = { version = "2.0.1", default-features = false, features = ["static_secrets"] }
passwords/src/main/rust/Cargo.toml
diff --git a/passwords/src/main/rust/Cargo.toml b/passwords/src/main/rust/Cargo.tomlindex e4e0ba5ee1..7a9d81188b 100644--- a/passwords/src/main/rust/Cargo.toml+++ b/passwords/src/main/rust/Cargo.toml@@ -11,6 +11,13 @@ crate-type = ["cdylib", "rlib"]  [dependencies] keepass.workspace = true+# keepass 0.13.22 needs aes 0.9.x (cipher 0.5 stack) to match its cbc 0.2 dep.+# Without this direct edge, cargo would reuse only the aes version keepass+# resolves and could drop the 0.9.2 line the `^0.9` edge needs (the workspace+# default is 0.8.4 / cipher 0.4 for communicate/pdf/share/betocore). With it,+# keepass unifies onto exactly 0.9.2 (cipher 0.5, under the <0.9.3 rationale+# that motivated 0.13.23+). See the workspace `aes09` pin.+aes09.workspace = true jni.workspace = true # serde_json now kept only for keepass internal serde, but passwords own flat map JSON was rewritten to std-only # (to_json_std/from_json_std) – single-function usage per "just write it ourselves" + "prefer stdlib".