Skip to content

Commit dc3909c

Browse files
committed
chore(deps): bump digest pin
digest doesn't provide `std` feature anymore
1 parent cf73665 commit dc3909c

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

Cargo.lock

+7-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+10
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@ members = [
1111

1212
[profile.dev]
1313
opt-level = 2
14+
15+
[patch.crates-io]
16+
crypto-common = { git = "https://github.com/RustCrypto/traits.git", branch = "digest/newtype" }
17+
cipher = { git = "https://github.com/RustCrypto/traits.git", branch = "digest/newtype" }
18+
digest = { git = "https://github.com/RustCrypto/traits.git", branch = "digest/newtype" }
19+
20+
streebog = { git = "https://github.com/RustCrypto/hashes.git", branch = "newtype" }
21+
md-5 = { git = "https://github.com/RustCrypto/hashes.git", branch = "newtype" }
22+
sha1 = { git = "https://github.com/RustCrypto/hashes.git", branch = "newtype" }
23+
sha2 = { git = "https://github.com/RustCrypto/hashes.git", branch = "newtype" }

belt-mac/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ digest = { version = "=0.11.0-pre.10", features = ["dev"] }
2222
hex-literal = "1"
2323

2424
[features]
25-
std = ["digest/std"]
2625
zeroize = ["cipher/zeroize"]
2726

2827
[package.metadata.docs.rs]

cbc-mac/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ aes = "0.9.0-pre.3"
2323
des = "0.9.0-pre.3"
2424

2525
[features]
26-
std = ["digest/std"]
2726
zeroize = ["cipher/zeroize"]
2827

2928
[package.metadata.docs.rs]

cmac/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ kuznyechik = "0.9.0-pre.3"
2828
magma = "0.10.0-pre.3"
2929

3030
[features]
31-
std = ["digest/std"]
3231
zeroize = ["cipher/zeroize"]
3332

3433
[package.metadata.docs.rs]

hmac/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ streebog = { version = "=0.11.0-pre.5", default-features = false }
2424
hex-literal = "1"
2525

2626
[features]
27-
std = ["digest/std"]
27+
std = []
2828
reset = [] # Enable ability to reset HMAC instances
2929

3030
[package.metadata.docs.rs]

hmac/src/optim.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use digest::{
44
HashMarker, InvalidLength, KeyInit, MacMarker, Output,
55
block_buffer::Eager,
66
core_api::{
7-
AlgorithmName, Block, BlockSizeUser, Buffer, BufferKindUser, CoreWrapper, FixedOutputCore,
8-
OutputSizeUser, UpdateCore,
7+
AlgorithmName, Block, BlockSizeUser, Buffer, BufferKindUser, CoreProxy, CoreWrapper,
8+
FixedOutputCore, OutputSizeUser, UpdateCore,
99
},
1010
crypto_common::{Key, KeySizeUser},
1111
};
@@ -24,8 +24,9 @@ pub trait EagerHash {
2424
+ Clone;
2525
}
2626

27-
impl<C> EagerHash for CoreWrapper<C>
27+
impl<D, C> EagerHash for D
2828
where
29+
D: CoreProxy<Core = C>,
2930
C: HashMarker
3031
+ UpdateCore
3132
+ FixedOutputCore

pmac/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ aes = "0.9.0-pre.3"
2222
digest = { version = "=0.11.0-pre.10", features = ["dev"] }
2323

2424
[features]
25-
std = ["digest/std"]
25+
std = []
2626
zeroize = ["cipher/zeroize"]
2727

2828
[package.metadata.docs.rs]

retail-mac/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ aes = "0.9.0-pre.2"
2323
des = "0.9.0-pre.2"
2424

2525
[features]
26-
std = ["digest/std"]
2726
zeroize = ["cipher/zeroize"]
2827

2928
[package.metadata.docs.rs]

0 commit comments

Comments
 (0)