Skip to content

Commit 38707e7

Browse files
committed
bump universal-hash to 0.6.0-pre
1 parent 6d51e01 commit 38707e7

File tree

7 files changed

+48
-26
lines changed

7 files changed

+48
-26
lines changed

Cargo.lock

Lines changed: 36 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ members = [
55
"polyval"
66
]
77
resolver = "2"
8+
9+
[patch.crates-io]
10+
universal-hash = { git = "https://github.com/RustCrypto/traits.git", branch = "master" }

ghash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ edition = "2021"
1717

1818
[dependencies]
1919
opaque-debug = "0.3"
20-
polyval = { version = "0.6", path = "../polyval" }
20+
polyval = { version = "=0.7.0-pre", path = "../polyval" }
2121

2222
# optional dependencies
2323
zeroize = { version = "1", optional = true, default-features = false }

poly1305/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "poly1305"
3-
version = "0.8.0"
3+
version = "0.9.0-pre"
44
authors = ["RustCrypto Developers"]
55
license = "Apache-2.0 OR MIT"
66
description = "The Poly1305 universal hash function and message authentication code"
@@ -14,7 +14,7 @@ edition = "2021"
1414

1515
[dependencies]
1616
opaque-debug = "0.3"
17-
universal-hash = { version = "0.5", default-features = false }
17+
universal-hash = { version = "=0.6.0-pre", default-features = false }
1818
zeroize = { version = "1", optional = true, default-features = false }
1919

2020
[target.'cfg(any(target_arch = "x86_64", target_arch = "x86"))'.dependencies]

poly1305/src/backend/avx2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
// length to be known, which is incompatible with the streaming API of UniversalHash.
1717

1818
use universal_hash::{
19+
array::Array,
1920
consts::{U16, U4},
2021
crypto_common::{BlockSizeUser, ParBlocksSizeUser},
21-
generic_array::GenericArray,
2222
UhfBackend,
2323
};
2424

@@ -160,7 +160,7 @@ impl State {
160160
}
161161

162162
// Compute tag: p + k mod 2^128
163-
let mut tag = GenericArray::<u8, _>::default();
163+
let mut tag = Array::<u8, _>::default();
164164
let tag_int = if let Some(p) = p {
165165
self.k + p
166166
} else {

poly1305/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ extern crate std;
5454
pub use universal_hash;
5555

5656
use universal_hash::{
57+
array::Array,
5758
consts::{U16, U32},
5859
crypto_common::{BlockSizeUser, KeySizeUser},
59-
generic_array::GenericArray,
6060
KeyInit, UniversalHash,
6161
};
6262

@@ -146,7 +146,7 @@ impl Poly1305 {
146146
pub fn compute_unpadded(mut self, data: &[u8]) -> Tag {
147147
for chunk in data.chunks(BLOCK_SIZE) {
148148
if chunk.len() == BLOCK_SIZE {
149-
let block = GenericArray::from_slice(chunk);
149+
let block = Array::from_slice(chunk);
150150
self.state.compute_block(block, false);
151151
} else {
152152
let mut block = Block::default();

polyval/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "polyval"
3-
version = "0.6.1"
3+
version = "0.7.0-pre"
44
authors = ["RustCrypto Developers"]
55
license = "Apache-2.0 OR MIT"
66
description = """
@@ -18,7 +18,7 @@ edition = "2021"
1818
[dependencies]
1919
cfg-if = "1"
2020
opaque-debug = "0.3"
21-
universal-hash = { version = "0.5", default-features = false }
21+
universal-hash = { version = "=0.6.0-pre", default-features = false }
2222
zeroize = { version = "1", optional = true, default-features = false }
2323

2424
[target.'cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86"))'.dependencies]

0 commit comments

Comments
 (0)