Skip to content

Commit 3fb4aa5

Browse files
authored
k12: add Kt256; rename KangarooTwelve to Kt128 (#756)
This implement KT256 as specified in RFC 9861: https://www.rfc-editor.org/rfc/rfc9861.html Also, rename existing types `KangarooTwelve*` to `Kt128*` (e.g. `KangarooTwelveReader` to `Kt128Reader`). This is because the KangarooTwelve instance is specified as the KT128 instance in RFC 9861.[1] NOTE: For compatibility reasons, the existing types are defined as deprecated aliases for `Kt128*`. [1]: https://www.rfc-editor.org/rfc/rfc9861.html#section-1-3
1 parent ed7a207 commit 3fb4aa5

File tree

4 files changed

+461
-258
lines changed

4 files changed

+461
-258
lines changed

k12/benches/mod.rs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ use digest::bench_update;
55
use test::Bencher;
66

77
bench_update!(
8-
k12::KangarooTwelve::default();
9-
k12_10 10;
10-
k12_100 100;
8+
k12::Kt128::default();
9+
kt128_10 10;
10+
kt128_100 100;
1111
// the bigger sizes result in OOM
12-
// k12_1000 1000;
13-
// k12_10000 10000;
12+
// kt128_1000 1000;
13+
// kt128_10000 10000;
14+
);
15+
16+
bench_update!(
17+
k12::Kt256::default();
18+
kt256_10 10;
19+
kt256_100 100;
20+
// the bigger sizes result in OOM
21+
// kt256_1000 1000;
22+
// kt256_10000 10000;
1423
);

0 commit comments

Comments
 (0)