Skip to content

Commit 94366f1

Browse files
committed
Bump universal hashes
Uses `hybrid-array` v0.4-compatible versions
1 parent 90e1865 commit 94366f1

File tree

6 files changed

+17
-28
lines changed

6 files changed

+17
-28
lines changed

Cargo.lock

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

aes-gcm-siv/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ aead = { version = "0.6.0-rc.1", default-features = false }
2121
aes = { version = "0.9.0-rc.1", optional = true }
2222
cipher = "0.5.0-rc.1"
2323
ctr = "0.10.0-rc.1"
24-
polyval = { version = "0.7.0-rc.1", default-features = false }
24+
polyval = { version = "0.7.0-rc.2", default-features = false }
2525
subtle = { version = "2", default-features = false }
2626
zeroize = { version = "1", optional = true, default-features = false }
2727

aes-gcm/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ aead = { version = "0.6.0-rc.1", default-features = false }
2121
aes = { version = "0.9.0-rc.1", optional = true }
2222
cipher = "0.5.0-rc.1"
2323
ctr = "0.10.0-rc.1"
24-
ghash = { version = "0.6.0-rc.1", default-features = false }
24+
ghash = { version = "0.6.0-rc.2", default-features = false }
2525
subtle = { version = "2", default-features = false }
2626
zeroize = { version = "1", optional = true, default-features = false }
2727

benches/Cargo.toml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ rust-version = "1.56"
1313
[dependencies]
1414
criterion = "0.4.0"
1515
rand = "0.9.0"
16-
aes = "=0.9.0-pre.3"
16+
aes = "0.9.0-rc.1"
1717
aes-gcm = { path = "../aes-gcm/" }
1818
aes-gcm-siv = { path = "../aes-gcm-siv/" }
19-
ascon-aead = { path = "../ascon-aead/" }
19+
ascon-aead128 = { path = "../ascon-aead128/" }
2020
chacha20poly1305 = { path = "../chacha20poly1305/" }
2121
deoxys = { path = "../deoxys/" }
2222
eax = { path = "../eax/" }
@@ -35,8 +35,8 @@ path = "src/aes-gcm-siv.rs"
3535
harness = false
3636

3737
[[bench]]
38-
name = "ascon-aead"
39-
path = "src/ascon-aead.rs"
38+
name = "ascon-aead128"
39+
path = "src/ascon-aead128.rs"
4040
harness = false
4141

4242
[[bench]]
@@ -53,16 +53,3 @@ harness = false
5353
name = "eax"
5454
path = "src/eax.rs"
5555
harness = false
56-
57-
[patch.crates-io]
58-
aead-stream = { path = "../aead-stream" }
59-
60-
crypto-common = { git = "https://github.com/RustCrypto/traits.git" }
61-
aead = { git = "https://github.com/RustCrypto/traits.git" }
62-
63-
chacha20 = { git = "https://github.com/RustCrypto/stream-ciphers.git" }
64-
65-
ctr = { git = "https://github.com/baloo/block-modes.git", branch = "baloo/edition-2024" }
66-
67-
ghash = { git = "https://github.com/RustCrypto/universal-hashes.git" }
68-
polyval = { git = "https://github.com/RustCrypto/universal-hashes.git" }
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion, Throughput};
22

3-
use ascon_aead::aead::{AeadInPlaceDetached, KeyInit};
4-
use ascon_aead::AsconAead128;
3+
use ascon_aead128::aead::{AeadInOut, KeyInit};
4+
use ascon_aead128::AsconAead128;
55

66
const KB: usize = 1024;
77

@@ -10,23 +10,25 @@ type Benchmarker = Criterion;
1010
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
1111
type Benchmarker = Criterion<criterion_cycles_per_byte::CyclesPerByte>;
1212

13-
fn bench<A: AeadInPlaceDetached + KeyInit>(name: &str, c: &mut Benchmarker) {
13+
fn bench<A: AeadInOut + KeyInit>(name: &str, c: &mut Benchmarker) {
1414
let mut group = c.benchmark_group(name);
1515
let nonce = black_box(Default::default());
1616
let cipher = black_box(A::new(&Default::default()));
1717

1818
let mut buf = vec![0u8; 16 * KB];
1919
for size in [KB, 2 * KB, 4 * KB, 8 * KB, 16 * KB] {
2020
let buf = &mut buf[..size];
21-
let tag = cipher.encrypt_in_place_detached(&nonce, b"", buf).unwrap();
21+
let tag = cipher
22+
.encrypt_inout_detached(&nonce, b"", buf.into())
23+
.unwrap();
2224

2325
group.throughput(Throughput::Bytes(size as u64));
2426

2527
group.bench_function(BenchmarkId::new("encrypt-128", size), |b| {
26-
b.iter(|| cipher.encrypt_in_place_detached(&nonce, b"", buf))
28+
b.iter(|| cipher.encrypt_inout_detached(&nonce, b"", buf.into()))
2729
});
2830
group.bench_function(BenchmarkId::new("decrypt-128", size), |b| {
29-
b.iter(|| cipher.decrypt_in_place_detached(&nonce, b"", buf, &tag))
31+
b.iter(|| cipher.decrypt_inout_detached(&nonce, b"", buf.into(), &tag))
3032
});
3133
}
3234

chacha20poly1305/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ rust-version = "1.85"
2323
aead = { version = "0.6.0-rc.1", default-features = false }
2424
chacha20 = { version = "0.10.0-rc.1", default-features = false, features = ["xchacha"] }
2525
cipher = "0.5.0-rc.1"
26-
poly1305 = "0.9.0-rc.1"
26+
poly1305 = "0.9.0-rc.2"
2727
zeroize = { version = "1.8", optional = true, default-features = false }
2828

2929
[dev-dependencies]

0 commit comments

Comments
 (0)