Skip to content

Commit

Permalink
sha1 msrv fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Nov 12, 2023
1 parent bef6591 commit 3352f41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions sha1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
digest = "0.10.7"
cfg-if = "1.0"
zeroize = { version = "1", default-features = false, optional = true }
zeroize_crate = { package = "zeroize", version = "1", default-features = false, optional = true }

[target.'cfg(any(target_arch = "aarch64", target_arch = "x86", target_arch = "x86_64"))'.dependencies]
cpufeatures = "0.2"
Expand All @@ -26,15 +26,15 @@ hex-literal = "0.2.2"

[features]
default = ["std"]
std = ["digest/std", "zeroize?/std"]
std = ["digest/std", "zeroize_crate?/std"]
oid = ["digest/oid"] # Enable OID support. WARNING: Bumps MSRV to 1.57
asm = ["sha1-asm"] # WARNING: this feature SHOULD NOT be enabled by library crates
# Use assembly backend for LoongArch64 targets
# WARNING: Bumps MSRV to 1.72. This feature SHOULD NOT be enabled by library crates
loongarch64_asm = []
compress = [] # Expose compress function
force-soft = [] # Force software implementation
zeroize = ["dep:zeroize"] # Implement Zeroize for Digest implementors
zeroize = ["zeroize_crate"] # Implement Zeroize for Digest implementors

[package.metadata.docs.rs]
all-features = true
Expand Down
2 changes: 1 addition & 1 deletion sha1/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ impl AlgorithmName for Sha1Core {
}

#[cfg(feature = "zeroize")]
impl zeroize::Zeroize for Sha1Core {
impl zeroize_crate::Zeroize for Sha1Core {
fn zeroize(&mut self) {
self.h.zeroize();
self.block_len.zeroize();
Expand Down

0 comments on commit 3352f41

Please sign in to comment.