Skip to content

Commit

Permalink
replace pqcrypto-kyber with pqcrypto-mlkem and update dependencies
Browse files Browse the repository at this point in the history
add required sha3/keccak dependency to turn ml-kem into kyber
we turn ml-kem into kyber for backwards compatibility with TutaCrypt
#tutadb1950
  • Loading branch information
vaf-hub committed Jan 29, 2025
1 parent 9ee42a1 commit d7a3239
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 59 deletions.
33 changes: 26 additions & 7 deletions packages/node-mimimi/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 26 additions & 7 deletions tuta-sdk/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 4 additions & 9 deletions tuta-sdk/rust/sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,10 @@ zeroize = { version = "1.8.1", features = ["zeroize_derive"] }
hkdf = "0.12.4"
argon2 = { version = "0.5.3", features = ["zeroize"] }
curve25519-dalek = "4.1.2"
pqcrypto-kyber = { version = "0.7.9", default-features = false, features = [
pqcrypto-mlkem = { version = "0.1.0", default-features = false, features = [
"std",
] }
# Pin the version explicitly as pqcrypto-kyber depends on pqcrypto-internals ^0.2, but
# 0.2.6 and 0.2.7 do not compile for iOS
# updating march flag in pqcrypto-internals/build.rs from armv8-a to armv8.2-a might help,
# but since pqcrypto-kyber was retired it's not easy to test.
# see https://github.com/rustpq/pqcrypto/issues/68
pqcrypto-internals = "=0.2.5"
pqcrypto-traits = "0.3.4"
pqcrypto-traits = "0.3.5"
rsa = "0.9.6"
rand_core = { version = "0.6.4", features = ["getrandom"] }
serde_bytes = "0.11.15"
Expand All @@ -48,6 +42,7 @@ rustls = { version = "*", optional = true }
form_urlencoded = "1"
# allow initializing a simple_logger if the consuming application (or examples) want to do that.
simple_logger = { version = "5.0.0", optional = true }
sha3 = "0.10.8"

[target.'cfg(target_os = "android")'.dependencies]
android_log = "0.1.3"
Expand Down Expand Up @@ -91,4 +86,4 @@ implicit_clone = "warn"
explicit_iter_loop = "warn"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci)'] }
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci)'] }
Loading

0 comments on commit d7a3239

Please sign in to comment.