Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten committed Dec 20, 2024
1 parent c2dbb34 commit 2295098
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 14 deletions.
46 changes: 35 additions & 11 deletions Cargo.lock

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

13 changes: 11 additions & 2 deletions crates/bitwarden-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,18 @@ license-file.workspace = true
keywords.workspace = true

[features]
default = []
default = [] # Default features
wasm = ["dep:tsify-next", "dep:wasm-bindgen"] # WASM support

uniffi = ["dep:uniffi"] # Uniffi bindings
no-memory-hardening = [] # Disable memory hardening features

aead-crypto = []
aead-crypto = [
"dep:blake3",
"dep:chacha20",
"dep:chacha20poly1305",
"dep:poly1305",
]

[dependencies]
aes = { version = ">=0.8.2, <0.9", features = ["zeroize"] }
Expand All @@ -31,13 +36,17 @@ argon2 = { version = ">=0.5.0, <0.6", features = [
base64 = ">=0.22.1, <0.23"
blake3 = { version = "1.5.5", features = ["zeroize"], optional = true }
cbc = { version = ">=0.1.2, <0.2", features = ["alloc", "zeroize"] }
chacha20 = { version = ">=0.8.2, <0.9", features = [
"zeroize",
], optional = true }
chacha20poly1305 = { version = "0.10.1", optional = true }
generic-array = { version = ">=0.14.7, <1.0", features = ["zeroize"] }
hkdf = ">=0.12.3, <0.13"
hmac = ">=0.12.1, <0.13"
num-bigint = ">=0.4, <0.5"
num-traits = ">=0.2.15, <0.3"
pbkdf2 = { version = ">=0.12.1, <0.13", default-features = false }
poly1305 = { version = "0.8.0", features = ["zeroize"], optional = true }
rand = ">=0.8.5, <0.9"
rayon = ">=1.8.1, <2.0"
rsa = ">=0.9.2, <0.10"
Expand Down
2 changes: 1 addition & 1 deletion crates/bitwarden-crypto/src/chacha20.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use chacha20::{
cipher::{KeyIvInit, StreamCipher},
cipher::{NewCipher, StreamCipher},
XChaCha20,
};
use chacha20poly1305::{AeadCore, AeadInPlace, KeyInit, XChaCha20Poly1305};
Expand Down

0 comments on commit 2295098

Please sign in to comment.