mirror of
https://github.com/UneBaguette/blake3.wasm.git
synced 2026-08-18 00:00:16 +02:00
feat: add zeroize feature to wipe blake3 internal key material on drop
This commit is contained in:
Generated
+10
@@ -19,6 +19,9 @@ name = "arrayvec"
|
|||||||
version = "0.7.6"
|
version = "0.7.6"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
||||||
|
dependencies = [
|
||||||
|
"zeroize",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "async-trait"
|
name = "async-trait"
|
||||||
@@ -49,6 +52,7 @@ dependencies = [
|
|||||||
"cfg-if",
|
"cfg-if",
|
||||||
"constant_time_eq",
|
"constant_time_eq",
|
||||||
"cpufeatures",
|
"cpufeatures",
|
||||||
|
"zeroize",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -482,6 +486,12 @@ dependencies = [
|
|||||||
"windows-link",
|
"windows-link",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zeroize"
|
||||||
|
version = "1.8.2"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "zmij"
|
name = "zmij"
|
||||||
version = "1.0.21"
|
version = "1.0.21"
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ crate-type = ["cdylib", "rlib"]
|
|||||||
default = []
|
default = []
|
||||||
wasm = ["dep:wasm-bindgen"]
|
wasm = ["dep:wasm-bindgen"]
|
||||||
talc = ["dep:talc"]
|
talc = ["dep:talc"]
|
||||||
|
zeroize = ["blake3/zeroize"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
blake3 = { version = "1", features = ["wasm32_simd"] }
|
blake3 = { version = "1", features = ["wasm32_simd"] }
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ build: build-all node-esm
|
|||||||
|
|
||||||
build-all:
|
build-all:
|
||||||
@echo "Building all target..."
|
@echo "Building all target..."
|
||||||
RUSTFLAGS='-C opt-level=3 -C target-feature=+simd128' $(CARGO) build --target $(WASM_TARGET) --release --features wasm,talc
|
RUSTFLAGS='-C opt-level=3 -C target-feature=+simd128' $(CARGO) build --target $(WASM_TARGET) --release --features wasm,talc,zeroize
|
||||||
@mkdir -p $(ROOT)/bundler $(ROOT)/web $(ROOT)/node
|
@mkdir -p $(ROOT)/bundler $(ROOT)/web $(ROOT)/node
|
||||||
$(WASM_BINDGEN) --target bundler --out-dir $(ROOT)/bundler $(TARGET_DIR)/$(CRATE).wasm
|
$(WASM_BINDGEN) --target bundler --out-dir $(ROOT)/bundler $(TARGET_DIR)/$(CRATE).wasm
|
||||||
$(WASM_BINDGEN) --target web --out-dir $(ROOT)/web $(TARGET_DIR)/$(CRATE).wasm
|
$(WASM_BINDGEN) --target web --out-dir $(ROOT)/web $(TARGET_DIR)/$(CRATE).wasm
|
||||||
|
|||||||
Reference in New Issue
Block a user