Skip to content

Commit

Permalink
Replace ZeroizingAllocator
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-garcia committed Nov 25, 2024
1 parent 3cdf320 commit 9d0dd34
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 169 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions crates/bitwarden-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ uniffi = { workspace = true, optional = true }
uuid = { workspace = true }
wasm-bindgen = { workspace = true, optional = true }
zeroize = { version = ">=1.7.0, <2.0", features = ["derive", "aarch64"] }
zeroizing-alloc = ">=0.1.0, <0.2"

[dev-dependencies]
criterion = "0.5.1"
Expand Down
167 changes: 0 additions & 167 deletions crates/bitwarden-crypto/src/allocator.rs

This file was deleted.

3 changes: 1 addition & 2 deletions crates/bitwarden-crypto/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,7 @@ mod util;
pub use util::{generate_random_alphanumeric, generate_random_bytes, pbkdf2};
mod wordlist;
pub use wordlist::EFF_LONG_WORD_LIST;
mod allocator;
pub use allocator::ZeroizingAllocator;
pub use zeroizing_alloc::ZeroAlloc as ZeroizingAllocator;

#[cfg(feature = "uniffi")]
uniffi::setup_scaffolding!();
Expand Down

0 comments on commit 9d0dd34

Please sign in to comment.