Skip to content

Commit

Permalink
bump universal-hash to 0.6.0-pre
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Feb 29, 2024
1 parent 6d51e01 commit 38707e7
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 26 deletions.
53 changes: 36 additions & 17 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ members = [
"polyval"
]
resolver = "2"

[patch.crates-io]
universal-hash = { git = "https://github.com/RustCrypto/traits.git", branch = "master" }
2 changes: 1 addition & 1 deletion ghash/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2021"

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

# optional dependencies
zeroize = { version = "1", optional = true, default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions poly1305/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "poly1305"
version = "0.8.0"
version = "0.9.0-pre"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
description = "The Poly1305 universal hash function and message authentication code"
Expand All @@ -14,7 +14,7 @@ edition = "2021"

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

[target.'cfg(any(target_arch = "x86_64", target_arch = "x86"))'.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions poly1305/src/backend/avx2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
// length to be known, which is incompatible with the streaming API of UniversalHash.

use universal_hash::{
array::Array,
consts::{U16, U4},
crypto_common::{BlockSizeUser, ParBlocksSizeUser},
generic_array::GenericArray,
UhfBackend,
};

Expand Down Expand Up @@ -160,7 +160,7 @@ impl State {
}

// Compute tag: p + k mod 2^128
let mut tag = GenericArray::<u8, _>::default();
let mut tag = Array::<u8, _>::default();
let tag_int = if let Some(p) = p {
self.k + p
} else {
Expand Down
4 changes: 2 additions & 2 deletions poly1305/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ extern crate std;
pub use universal_hash;

use universal_hash::{
array::Array,
consts::{U16, U32},
crypto_common::{BlockSizeUser, KeySizeUser},
generic_array::GenericArray,
KeyInit, UniversalHash,
};

Expand Down Expand Up @@ -146,7 +146,7 @@ impl Poly1305 {
pub fn compute_unpadded(mut self, data: &[u8]) -> Tag {
for chunk in data.chunks(BLOCK_SIZE) {
if chunk.len() == BLOCK_SIZE {
let block = GenericArray::from_slice(chunk);
let block = Array::from_slice(chunk);
self.state.compute_block(block, false);
} else {
let mut block = Block::default();
Expand Down
4 changes: 2 additions & 2 deletions polyval/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polyval"
version = "0.6.1"
version = "0.7.0-pre"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
description = """
Expand All @@ -18,7 +18,7 @@ edition = "2021"
[dependencies]
cfg-if = "1"
opaque-debug = "0.3"
universal-hash = { version = "0.5", default-features = false }
universal-hash = { version = "=0.6.0-pre", default-features = false }
zeroize = { version = "1", optional = true, default-features = false }

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

0 comments on commit 38707e7

Please sign in to comment.