commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
4730c6fbba0b7a0766cb1a6d323f1412667eb6cf | Artyom Pavlov | 2023-08-19T16:24:47 | benches: remove criterion deps workaround (#60) | diff --git a/benches/Cargo.toml b/benches/Cargo.toml
index 1530430..f9d90d9 100644
--- a/benches/Cargo.toml
+++ b/benches/Cargo.toml
@@ -19,13 +19,9 @@ rand = { version = "0.8", default-features = false, features = [
"std_rng",
"getrandom",
] }
-# workaround for underspecified dependencies from criterion
-# ... | 1 | 1 | 5 |
e767312a21655183eec230d8ab0ecf6882cf2133 | Alexander Wagner | 2023-05-23T13:10:15 | ascon: Add Drop & ZeroizeOnDrop for State (#57)
Not zeroizing the state allows to recover any squeezed output. This is
because the `ascon` permutations can be inversed. Hence, access to the
complete state allows to perform this operation. | diff --git a/ascon/Cargo.toml b/ascon/Cargo.toml
index a6bef36..e9a2a1a 100644
--- a/ascon/Cargo.toml
+++ b/ascon/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ascon"
-version = "0.3.1"
+version = "0.4.0-pre"
description = "Pure rust implementation of the Ascon permutation"
authors = [
"Sebastian Ramacher <seba... | 2 | 18 | 3 |
6e512a3b1ad215a992532740124568a67c72988f | Alexander Wagner | 2023-04-30T16:25:27 | keccak: Add keccak_p fns for [200, 400, 800, 1600] (#55)
Due to the generics approach of the keccak_p routine, the performance
degrades significantly. To encounter this the commonly used functions
are now defined by macros. | diff --git a/keccak/src/lib.rs b/keccak/src/lib.rs
index f3c42db..0e35a3b 100644
--- a/keccak/src/lib.rs
+++ b/keccak/src/lib.rs
@@ -160,20 +160,32 @@ impl_lanesize!(u32, 22, |rc: u64| {
impl_lanesize!(u64, 24, |rc: u64| { rc });
macro_rules! impl_keccak {
- ($name:ident, $type:ty) => {
+ ($pname:ident, $fnam... | 1 | 21 | 9 |
dc103866d4d9c51ca4e2b1fb4b2f659d7f687f4d | Artyom Pavlov | 2023-03-01T10:37:39 | ascon: use `chunks_exact_mut` for encoding permutation output (#48) | diff --git a/ascon/src/lib.rs b/ascon/src/lib.rs
index b0415f5..708d34c 100644
--- a/ascon/src/lib.rs
+++ b/ascon/src/lib.rs
@@ -158,7 +158,9 @@ fn permutation(s: &mut [u8], start: usize, rounds: usize) {
x[4] ^= x[4].rotate_right(7) ^ x[4].rotate_right(41);
}
- for (i, &b) in x.iter().enumerate() {
... | 1 | 5 | 3 |
17519f46c6eb8df7bfa83b109f03433176d96b1a | Tony Arcieri | 2023-02-28T21:09:08 | ascon: use `chunks_exact` for decoding permutation input (#47) | diff --git a/ascon/src/lib.rs b/ascon/src/lib.rs
index 6a6a390..b0415f5 100644
--- a/ascon/src/lib.rs
+++ b/ascon/src/lib.rs
@@ -105,14 +105,20 @@ impl<const A: usize, const B: usize> Ascon<A, B> {
}
/// Ascon permutation.
+// TODO(tarcieri): change `s` to `&mut [u8; 40]`
fn permutation(s: &mut [u8], start: usize,... | 1 | 9 | 3 |
11cb7366da7bef43b2cfc2b09d93b0286b036c7c | Tony Arcieri | 2023-02-26T02:23:59 | ascon: add `Nonce` type alias (#43)
Adds a type alias for Ascon nonces, set to `[u8; 16]`.
From the Ascon paper section 2.4:
https://link.springer.com/article/10.1007/s00145-021-09398-9
> The 320-bit initial state of Ascon is formed by the secret key K of
> k bits and nonce N of 128 bits | diff --git a/ascon/src/aead.rs b/ascon/src/aead.rs
index 81c6dd6..e78caa9 100644
--- a/ascon/src/aead.rs
+++ b/ascon/src/aead.rs
@@ -1,6 +1,6 @@
//! Authenticated Encryption with Associated Data.
-use crate::{Ascon, Key, KEY_SIZE, RATE, S_SIZE};
+use crate::{Ascon, Key, Nonce, KEY_SIZE, RATE, S_SIZE};
use alloc::{v... | 2 | 17 | 12 |
37bc65830655ed97ce4e36f8f34d057942fb9c4e | Tony Arcieri | 2023-02-26T02:00:09 | ascon: `Key` type alias; cache key in `Ascon` state (#42)
- Adds a type alias for Ascon keys (16-byte)
- Stores key internally in `struct Ascon` so it doesn't need to be
passed separately to `Ascon::finalize`. | diff --git a/Cargo.lock b/Cargo.lock
index 7f62d02..680a29b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,25 +5,3 @@ version = 3
[[package]]
name = "ascon"
version = "0.2.0-pre"
-
-[[package]]
-name = "cpufeatures"
-version = "0.2.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "28d... | 3 | 26 | 41 |
8773f6a963a0100fff2636612380aa49fddf282e | Tony Arcieri | 2023-02-26T00:59:40 | CI: exclude `keccak` from toplevel workspace (#41)
The build is failing because `keccak` has a very old MSRV of 1.41, which
after merging #40 (which bumped the `ascon` edition to 2021) broke the
build because it can't handle the `edition` key.
As a workaround, this excludes `keccak` from the toplevel workspace so... | diff --git a/Cargo.toml b/Cargo.toml
index 58c5040..c139b19 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,6 @@
[workspace]
+exclude = ["keccak"] # TODO(tarcieri): add back to `members` when MSRV >= 1.56
members = [
"ascon",
- "keccak",
+ #"keccak",
]
diff --git a/keccak/Cargo.lock b/keccak/Cargo.loc... | 2 | 3 | 2 |
2a71bae6b2dfca73728da2c5c9f80b4d9cb04ae6 | Tony Arcieri | 2023-02-26T00:36:18 | ascon: 2021 edition (#40)
Since #39 bumped MSRV to 1.59, we can go ahead and do a 2021 edition
upgrade, including README.md in the toplevel rustdoc. | diff --git a/ascon/Cargo.toml b/ascon/Cargo.toml
index 861ff94..218ed2b 100644
--- a/ascon/Cargo.toml
+++ b/ascon/Cargo.toml
@@ -12,7 +12,8 @@ repository = "https://github.com/RustCrypto/sponges/tree/master/ascon"
keywords = ["crypto", "sponge"]
categories = ["cryptography", "no-std"]
readme = "README.md"
-edition =... | 2 | 3 | 23 |
d50fca63d26e92b39213b0bd3791dba5c03b951b | Tony Arcieri | 2023-02-25T23:36:54 | ascon: eliminate `util` module (#38)
Factors the `u8` <-> `u64` conversions to be inline | diff --git a/ascon/src/lib.rs b/ascon/src/lib.rs
index 3d59bec..4833db7 100644
--- a/ascon/src/lib.rs
+++ b/ascon/src/lib.rs
@@ -41,9 +41,7 @@ extern crate alloc;
#[cfg(feature = "alloc")]
pub mod aead;
-mod util;
-
-use crate::util::{u64_to_u8, u8_to_u64};
+use core::convert::TryInto;
/// Key length.
const KEY... | 2 | 9 | 21 |
6de759ac156a787eb3a89ea807df27590d810542 | Tony Arcieri | 2023-02-25T22:49:52 | ascon: remove `byteorder` dependency (#37)
We can use the support in `core` instead | diff --git a/Cargo.lock b/Cargo.lock
index cfbead2..7f62d02 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,15 +5,6 @@ version = 3
[[package]]
name = "ascon"
version = "0.2.0-pre"
-dependencies = [
- "byteorder",
-]
-
-[[package]]
-name = "byteorder"
-version = "1.4.3"
-source = "registry+https://github.com/rust-lang... | 4 | 5 | 17 |
ace9dd7723e3d1e58658d3d6242e8f6f6cfe2a0a | Tony Arcieri | 2023-02-11T19:12:58 | ascon: expose permutation (#35)
Provides raw access to the Ascon permutation, allowing it to be used for
more things than just AEAD. | diff --git a/ascon/benches/bench.rs b/ascon/benches/bench.rs
index 0f51000..9c3508d 100644
--- a/ascon/benches/bench.rs
+++ b/ascon/benches/bench.rs
@@ -1,9 +1,8 @@
#![feature(test)]
-extern crate ascon;
extern crate test;
-use ascon::{aead_decrypt, aead_encrypt};
+use ascon::aead;
use test::Bencher;
#[bench]... | 4 | 254 | 243 |
5831f8bd51b0539c7e9bdc9c9a2d1be62e49b1f5 | Tony Arcieri | 2023-02-11T18:40:15 | keccak: 2018 edition upgrade, lints, docs (#32)
- Bumps the crate's edition to 2018, which is MSRV-compatible.
- Adds a more expansive set of lints
- Adds the `missing_docs` lint, and adds docs where missing
- Fixes tests on ARMv8 | diff --git a/keccak/Cargo.toml b/keccak/Cargo.toml
index 23d5af3..0e567af 100644
--- a/keccak/Cargo.toml
+++ b/keccak/Cargo.toml
@@ -12,6 +12,7 @@ repository = "https://github.com/RustCrypto/sponges/tree/master/keccak"
keywords = ["crypto", "sponge", "keccak", "keccak-f", "keccak-p"]
categories = ["cryptography", "no... | 4 | 35 | 7 |
d82151aa0d6264cf0dfbc3a54427a56ed9dfa504 | Tony Arcieri | 2022-11-14T18:06:04 | keccak: remove `f1600_armv8_sha3_asm` re-export (#27)
As discussed in #24 | diff --git a/keccak/src/lib.rs b/keccak/src/lib.rs
index 381f2ff..e638256 100644
--- a/keccak/src/lib.rs
+++ b/keccak/src/lib.rs
@@ -52,9 +52,6 @@ mod unroll;
#[cfg(all(target_arch = "aarch64", feature = "asm"))]
mod armv8;
-#[cfg(all(target_arch = "aarch64", feature = "asm"))]
-pub use armv8::f1600_armv8_sha3_asm;... | 1 | 1 | 4 |
4e36eefaa0f8729fed1101f85bc491218ef556ad | Tony Arcieri | 2022-11-13T22:32:07 | keccak: rename `aarch64_sha3` module to `armv8` (#25)
This is more consistent with the other crates we have which implement
ARMv8 intrinsics, such as the `aes` and `polyal` crates. | diff --git a/keccak/src/aarch64_sha3.rs b/keccak/src/armv8.rs
similarity index 100%
rename from keccak/src/aarch64_sha3.rs
rename to keccak/src/armv8.rs
diff --git a/keccak/src/lib.rs b/keccak/src/lib.rs
index b5de246..8761140 100644
--- a/keccak/src/lib.rs
+++ b/keccak/src/lib.rs
@@ -50,10 +50,10 @@ use core::{
mod u... | 2 | 2 | 2 |
a687839512adf1cf7e8261a8bf8f31ca29b2c301 | Tony Arcieri | 2022-11-13T22:15:26 | keccak: add `asm` feature; use `cpufeatures` on `aarch64` (#24)
Gates `asm` support under a crate feature.
Uses the `cpufeatures` crate to detect the presence of the `sha3`
extension for ARMv8 CPUs, automatically falling back to a software
implementation if it isn't available.
When the `asm` feature is enabled... | diff --git a/keccak/Cargo.toml b/keccak/Cargo.toml
index 570db27..9cd542b 100644
--- a/keccak/Cargo.toml
+++ b/keccak/Cargo.toml
@@ -14,5 +14,9 @@ categories = ["cryptography", "no-std"]
readme = "README.md"
[features]
+asm = [] # Use optimized assembly when available (currently only ARMv8)
no_unroll = [] # ... | 3 | 133 | 118 |
0901b5f42061c44c4f782f058fa280824de3be3a | Artyom Pavlov | 2022-05-24T23:22:02 | Add description of features and remove the dependencies section (#17) | diff --git a/keccak/Cargo.toml b/keccak/Cargo.toml
index 9bed121..d25ec7b 100644
--- a/keccak/Cargo.toml
+++ b/keccak/Cargo.toml
@@ -13,8 +13,6 @@ keywords = ["crypto", "sponge", "keccak", "keccak-f", "keccak-p"]
categories = ["cryptography", "no-std"]
readme = "README.md"
-[dependencies]
-
[features]
-no_unroll =... | 1 | 2 | 4 |
a2ef49e5a6a4d2dbfe6d9a38e88fcea90de4d3d8 | Alexander Wagner | 2022-05-11T17:36:17 | Add generic keccak-p and keccak-f {200, 400, 800} (#7) | diff --git a/keccak/Cargo.toml b/keccak/Cargo.toml
index bef8d52..1368f99 100644
--- a/keccak/Cargo.toml
+++ b/keccak/Cargo.toml
@@ -3,10 +3,10 @@ name = "keccak"
version = "0.1.1"
authors = ["RustCrypto Developers"]
license = "CC0-1.0"
-description = "Keccak-f sponge function"
+description = "Keccak sponge function... | 3 | 234 | 18 |
35ac0f140ffc6589966aee81f7edee0f784346f3 | newpavlov | 2018-04-03T16:54:43 | small code cleanup | diff --git a/keccak/Cargo.toml b/keccak/Cargo.toml
index 0cc92db..2747543 100644
--- a/keccak/Cargo.toml
+++ b/keccak/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "keccak"
-version = "0.1.0"
+version = "0.1.1"
authors = ["RustCrypto Developers"]
license = "CC0-1.0"
description = "Keccak-f sponge function"
diff --gi... | 2 | 12 | 21 |
fcb42fe8d12780744f6c5bd90596ad8881816d94 | newpavlov | 2018-03-27T16:28:37 | do not unroll the rounds loop | diff --git a/keccak/src/lib.rs b/keccak/src/lib.rs
index 15ec21f..8c9a41f 100644
--- a/keccak/src/lib.rs
+++ b/keccak/src/lib.rs
@@ -1,8 +1,5 @@
//! Keccak [sponge function](https://en.wikipedia.org/wiki/Sponge_function).
//!
-//! The function code is fully unrolled and is nearly as fast as the Keccak
-//! team's opt... | 1 | 4 | 5 |
dd9f552e618fba2bb5aee064bb7c31f1b32e83be | newpavlov | 2018-03-21T14:10:26 | disable rustfmt | diff --git a/keccak/src/lib.rs b/keccak/src/lib.rs
index a9fe77e..15ec21f 100644
--- a/keccak/src/lib.rs
+++ b/keccak/src/lib.rs
@@ -82,26 +82,13 @@ const RC: [u64; 24] = [
#[cfg(not(feature = "no_unroll"))]
macro_rules! unroll5 {
- ($var: ident, $body: block) => {{
- const $var: usize = 0;
- $body... | 1 | 33 | 116 |
e98652435094f23614b4f46434d99d52f1279028 | newpavlov | 2018-03-21T13:18:35 | updated keccak Cargo.toml | diff --git a/keccak/Cargo.toml b/keccak/Cargo.toml
index 7cb919b..0cc92db 100644
--- a/keccak/Cargo.toml
+++ b/keccak/Cargo.toml
@@ -5,9 +5,12 @@ authors = ["RustCrypto Developers"]
license = "CC0-1.0"
description = "Keccak-f sponge function"
documentation = "https://docs.rs/keccak"
-repository = "https://github.com... | 1 | 4 | 1 |
12a6b74d6e53f6385d18047546babf60d91b5562 | Tony Arcieri | 2026-04-14T17:28:24 | Cargo.lock: update dependencies (#200) | diff --git a/Cargo.lock b/Cargo.lock
index 519b4f9..0006456 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,13 +4,13 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.4"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "04097e08a47d9ad181c2e1f4a5fabc9ae06ce8... | 1 | 13 | 22 |
31982b094505022e19184b983b4a796dbae21f53 | Tony Arcieri | 2026-03-30T23:48:11 | bake-kdf: bump `belt-hash` dependency to v0.2 (#197) | diff --git a/bake-kdf/Cargo.toml b/bake-kdf/Cargo.toml
index 2fc3053..9ba6c08 100644
--- a/bake-kdf/Cargo.toml
+++ b/bake-kdf/Cargo.toml
@@ -13,7 +13,7 @@ keywords = ["crypto", "bake", "stb", "kdf"]
categories = ["cryptography", "no-std"]
[dependencies]
-belt-hash = { version = "0.2.0-rc.5", default-features = fals... | 1 | 1 | 1 |
9d0a675c7f64220b430af784acd175f082bfa880 | Tony Arcieri | 2026-03-29T23:56:33 | hkdf v0.13.0-rc.6 (#192) | diff --git a/Cargo.lock b/Cargo.lock
index a29d37c..5b31314 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -170,7 +170,7 @@ checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1"
[[package]]
name = "hkdf"
-version = "0.13.0-rc.5"
+version = "0.13.0-rc.6"
dependencies = [
"blobby",
"hex-lite... | 2 | 2 | 2 |
c46732a2b639cfd733cc57ab302903008db1bf31 | Tony Arcieri | 2026-03-29T23:44:26 | Bump `hmac` to v0.13 (#191)
Release PR: RustCrypto/MACs#263 | diff --git a/Cargo.lock b/Cargo.lock
index c3078bc..a29d37c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -182,9 +182,9 @@ dependencies = [
[[package]]
name = "hmac"
-version = "0.13.0-rc.6"
+version = "0.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "60017b071c523c9e5a55dd125358... | 3 | 4 | 4 |
29c07ab1eda075096e1b5397be7160ded3b97ae8 | Tony Arcieri | 2026-03-29T23:37:20 | Bump `digest` to v0.11 (#190)
Release PR: RustCrypto/traits#2300 | diff --git a/Cargo.lock b/Cargo.lock
index f0b8c5c..c3078bc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -244,12 +244,12 @@ dependencies = [
[[package]]
name = "sha1"
-version = "0.11.0-rc.5"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b167252f3c126be0d8926639c... | 5 | 12 | 12 |
450a0db9b126c0df8e4b32e8089c2dea64653f4d | Tony Arcieri | 2026-01-25T04:31:34 | hkdf v0.13.0-rc.4 (#181) | diff --git a/Cargo.lock b/Cargo.lock
index adf04e9..a41cee0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -140,7 +140,7 @@ checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1"
[[package]]
name = "hkdf"
-version = "0.13.0-rc.3"
+version = "0.13.0-rc.4"
dependencies = [
"blobby",
"hex-lite... | 2 | 2 | 2 |
f451133d7b6625f514f1f1dfe6aa1c9c61879c7c | Tony Arcieri | 2026-01-25T04:28:24 | Bump dependencies (#180)
Updates the following dependencies:
- `belt-hash` v0.2.0-rc.4
- `digest` v0.11.0-rc.9
- `hmac` v0.13.0-rc.4
- `sha1` v0.11.0-rc.4
- `sha2` v0.11.0-rc.4 | diff --git a/Cargo.lock b/Cargo.lock
index 835cc1d..adf04e9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -38,9 +38,9 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-rc.3"
+version = "0.2.0-rc.4"
source = "registry+https://github.com/r... | 6 | 24 | 24 |
f0c76082ca7f9564d995b76e64572581a86c37c5 | Artyom Pavlov | 2026-01-21T16:53:51 | Update Cargo.lock (#176) | diff --git a/Cargo.lock b/Cargo.lock
index 39487f2..835cc1d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -69,9 +69,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "cipher"
-version = "0.5.0-rc.3"
+version = "0.5.0-rc.5"
source = "registry+https://github.com/rust... | 1 | 8 | 8 |
cd6df6d96be49a4f784a04939ebce014b4274f61 | Tony Arcieri | 2026-01-15T17:34:37 | hkdf: impl `kdf::Kdf` for `GenericHkdfExtract` (#173)
Due to the `&self` requirement in the `Kdf` trait, this seems like the
only existing type that a `Kdf` impl makes sense for, since `derive_key`
needs to be able to input IKM.
The "salt" parameter of `Kdf::derive_key` has been mapped to the HKDF
`info` parameter, a... | diff --git a/Cargo.lock b/Cargo.lock
index b07bf72..39487f2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -145,6 +145,7 @@ dependencies = [
"blobby",
"hex-literal",
"hmac",
+ "kdf",
"sha1",
"sha2",
]
@@ -190,6 +191,12 @@ dependencies = [
"sha2",
]
+[[package]]
+name = "kdf"
+version = "0.1.0-pre.1"
+sourc... | 3 | 23 | 0 |
15694b30f8fb22265cf53a55bc9e8c40440d78a2 | Tony Arcieri | 2025-12-27T21:29:05 | Bump `cipher` and `digest` dependencies (#169)
Bumps these dependencies to the following versions:
- `cipher` v0.5.0-rc.3
- `digest` v0.11.0-rc.5 | diff --git a/Cargo.lock b/Cargo.lock
index 588b97d..caf0be3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -69,9 +69,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "cipher"
-version = "0.5.0-rc.2"
+version = "0.5.0-rc.3"
source = "registry+https://github.com/rust... | 4 | 9 | 9 |
cb0714fef09b4a6d401c0260b35447cbeba8ea88 | Alexandr Kitaev | 2025-11-23T15:23:43 | bake-kdf: fix spec references (#166) | diff --git a/bake-kdf/src/lib.rs b/bake-kdf/src/lib.rs
index 461a69f..0cf3354 100644
--- a/bake-kdf/src/lib.rs
+++ b/bake-kdf/src/lib.rs
@@ -11,7 +11,7 @@
use belt_hash::digest::FixedOutput;
use belt_hash::{BeltHash, Digest, block_api::belt_compress};
-/// `belt-keyexpand` key expansion algorithm described in STB 3... | 1 | 2 | 2 |
bdaf60c624330261ec72090893df8ce66cfa0d74 | Tony Arcieri | 2025-11-05T18:46:23 | Cut new prereleases (#162)
Releases the following:
- `ansi-x963-kdf` v0.1.0-rc.1
- `bake-kdf` v0.1.0-rc.0
- `hkdf` v0.13.0-rc.3
- `kbkdf` v0.1.0-rc.0
- `one-step-kdf` v0.1.0-rc.0 | diff --git a/Cargo.lock b/Cargo.lock
index de8012b..98e50ae 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -15,7 +15,7 @@ dependencies = [
[[package]]
name = "ansi-x963-kdf"
-version = "0.1.0-rc.0"
+version = "0.1.0-rc.1"
dependencies = [
"digest",
"hex-literal",
@@ -24,7 +24,7 @@ dependencies = [
[[package]]
... | 6 | 10 | 10 |
8da1f4a831629545b93507acd060e2645951bb8f | Tony Arcieri | 2025-11-05T18:22:08 | Bump dependencies (#160)
Updates the following dependencies, mostly to handle the `rand_core`
v0.10 upgrade:
- `aes` v0.9.0-rc.2
- `belt-hash` v0.2.0-rc.3
- `cipher` v0.5.0-rc.2
- `cmac` v0.8.0-rc.3
- `crypto-common` v0.2.0-rc.5
- `digest` v0.11.0-rc.4
- `hmac` v0.13.0-rc.3
- `sha1` v0.11.0-rc.3
- `sha2` v0.11.0-rc.3 | diff --git a/Cargo.lock b/Cargo.lock
index 4435220..7f0a723 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.1"
+version = "0.9.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e713c57c2a2b19159e7be83b9194600d7e... | 6 | 32 | 32 |
127c5aca6714da3aec225f94fe7766d82b108a72 | Artyom Pavlov | 2025-10-13T12:58:42 | hkdf: simplify generic signatures (#155)
This PR renames `Hkdf` and `HkdfExtract` to `GenericHkdf` and
`GenericHkdfExtract` respectively and simplifies their generic
signature. Now the types are generic over single type `H: HmacImpl`. It
also removes the generic parameter from the `HmacImpl` trait.
Finally, it introd... | diff --git a/hkdf/src/hmac_impl.rs b/hkdf/src/hmac_impl.rs
index a5bcd6f..e3b7b9a 100644
--- a/hkdf/src/hmac_impl.rs
+++ b/hkdf/src/hmac_impl.rs
@@ -7,7 +7,7 @@ use hmac::{EagerHash, Hmac, SimpleHmac};
/// Trait representing a HMAC implementation.
///
/// Most users should use [`Hmac`] or [`SimpleHmac`].
-pub trait ... | 3 | 54 | 101 |
2d1977a60e5fe69226d1153a5b8d5b3114a7af35 | Artyom Pavlov | 2025-10-13T04:10:46 | Switch from `doc_auto_cfg` to `doc_cfg` (#156)
See https://github.com/RustCrypto/traits/issues/2028 | diff --git a/ansi-x963-kdf/src/lib.rs b/ansi-x963-kdf/src/lib.rs
index 7dddb75..36dea83 100644
--- a/ansi-x963-kdf/src/lib.rs
+++ b/ansi-x963-kdf/src/lib.rs
@@ -4,7 +4,7 @@
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg",
html_favicon_url = "https://raw.githubusercontent... | 5 | 5 | 5 |
a3b12440cc6bbb21747c33176afa124b44c9d2f0 | Артём Павлов [Artyom Pavlov] | 2025-10-13T01:54:47 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 26b4e45..6de2f22 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -178,9 +178,9 @@ dependencies = [
[[package]]
name = "inout"
-version = "0.2.0-rc.6"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1603f76010ff924b616c8f44815a4... | 1 | 6 | 6 |
a4de77208754898a1882a84b6a2c1f09a83e9835 | Tony Arcieri | 2025-09-18T15:31:52 | hkdf v0.13.0-rc.2 (#149) | diff --git a/Cargo.lock b/Cargo.lock
index 54a330b..f6223d2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -149,7 +149,7 @@ checksum = "bcaaec4551594c969335c98c903c1397853d4198408ea609190f420500f6be71"
[[package]]
name = "hkdf"
-version = "0.13.0-rc.1"
+version = "0.13.0-rc.2"
dependencies = [
"blobby",
"hex-lite... | 2 | 2 | 2 |
462893bd770c7661312e1f9eb76b151d58537f15 | daxpedda | 2025-09-17T10:35:02 | Update to `digest::EagerHash` (#148) | diff --git a/Cargo.lock b/Cargo.lock
index cd7beb8..54a330b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -126,9 +126,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.11.0-rc.1"
+version = "0.11.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a4aae35a0fcbe22ff1be... | 5 | 9 | 9 |
1639427282b74f31a7dc464d8b7e9b1b524837e0 | Tony Arcieri | 2025-09-03T03:14:05 | hkdf v0.13.0-rc.1 (#146) | diff --git a/Cargo.lock b/Cargo.lock
index 4fe748e..cd7beb8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -149,7 +149,7 @@ checksum = "bcaaec4551594c969335c98c903c1397853d4198408ea609190f420500f6be71"
[[package]]
name = "hkdf"
-version = "0.13.0-rc.0"
+version = "0.13.0-rc.1"
dependencies = [
"blobby",
"hex-lite... | 2 | 2 | 2 |
f2f5c039407a37e40f8ff1e79bd3b33f71d14496 | Tony Arcieri | 2025-09-03T02:56:56 | Bump cipher and hash dependencies (#145)
Uses `hybrid-array` v0.4-compatible versions | diff --git a/Cargo.lock b/Cargo.lock
index f986821..4fe748e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,8 +4,9 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.0"
-source = "git+https://github.com/RustCrypto/block-ciphers#cbc75f837701a1114bd50748cff6cdb65e8d3c1d"
+version = "0.9.0-rc.1"
+source = "re... | 7 | 29 | 35 |
e519f5a936c6c06194d491a664f8f6a9f3eb292b | Tony Arcieri | 2025-09-02T22:05:31 | Bump `cipher` v0.5.0-rc.1; `digest` v0.11.0-rc.1 (#144)
These notably support `hybrid-array` v0.4 | diff --git a/Cargo.lock b/Cargo.lock
index 399d894..f986821 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,8 +5,7 @@ version = 4
[[package]]
name = "aes"
version = "0.9.0-rc.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd4838e4ad37bb032dea137f441d5f71c16c26c068af512e64c5bc13a88cd... | 5 | 22 | 25 |
4a76a095cf3e314abaa6b30487367c19bf4dfe31 | Tony Arcieri | 2025-09-02T01:13:20 | Bump `hybrid-array` to v0.4 (#143) | diff --git a/Cargo.lock b/Cargo.lock
index 28d4e2c..399d894 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-pre.3"
+version = "0.9.0-rc.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38e4da00d9978020ddaa556c1747cfcafc... | 4 | 34 | 25 |
9948460be5dd2fed87edf52076e65dd6ce871c54 | Tony Arcieri | 2025-05-31T02:26:48 | ansi-x963-kdf v0.1.0-rc.0 (#135) | diff --git a/Cargo.lock b/Cargo.lock
index c91f6f8..68fc83e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -15,7 +15,7 @@ dependencies = [
[[package]]
name = "ansi-x963-kdf"
-version = "0.0.1"
+version = "0.1.0-rc.0"
dependencies = [
"digest",
"hex-literal",
diff --git a/ansi-x963-kdf/Cargo.toml b/ansi-x963-kdf/C... | 2 | 2 | 2 |
406af93e37255bcb9d33354bf1a783f55f60c7ca | Pavlo Myroniuk | 2025-05-30T17:40:21 | kbkdf: enable `missing_docs` lint (#132) | diff --git a/kbkdf/src/lib.rs b/kbkdf/src/lib.rs
index 50381e1..9773fb5 100644
--- a/kbkdf/src/lib.rs
+++ b/kbkdf/src/lib.rs
@@ -6,6 +6,7 @@
)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![forbid(unsafe_code)]
+#![warn(missing_docs)]
use core::{fmt, marker::PhantomData, ops::Mul};
use digest::{
@@ -18,8 +19,10... | 2 | 32 | 5 |
f7bc0fd52ef840f018c271dd39118c0310ead1a1 | Tony Arcieri | 2025-05-29T14:53:04 | hkdf v0.13.0-rc.0 (#134) | diff --git a/Cargo.lock b/Cargo.lock
index b8cf91b..c91f6f8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -149,7 +149,7 @@ checksum = "bcaaec4551594c969335c98c903c1397853d4198408ea609190f420500f6be71"
[[package]]
name = "hkdf"
-version = "0.13.0-pre.5"
+version = "0.13.0-rc.0"
dependencies = [
"blobby",
"hex-lit... | 2 | 2 | 2 |
1368fc5bd9dde44cacf32c98cf134290e1cd5b1d | Tony Arcieri | 2025-05-29T14:49:54 | Bump `digest` dependency to v0.11.0-rc.0 (#133)
NOTE: no releases with this PR | diff --git a/Cargo.lock b/Cargo.lock
index 448d602..b8cf91b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -38,8 +38,9 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.5"
-source = "git+https://github.com/RustCrypto/hashes.git#d9ad085... | 7 | 36 | 40 |
07b4d9ddd25923c342bae24b504ae2b36f955d80 | Artyom Pavlov | 2025-05-28T12:27:40 | Use `doc_auto_cfg` (#127)
Some crates do not have any crate features, but it's still worth to
enable `doc_auto_cfg` for them for consistency and to future-proof them. | diff --git a/ansi-x963-kdf/src/lib.rs b/ansi-x963-kdf/src/lib.rs
index 9d9213b..dd02419 100644
--- a/ansi-x963-kdf/src/lib.rs
+++ b/ansi-x963-kdf/src/lib.rs
@@ -1,4 +1,5 @@
#![no_std]
+#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![doc = include_str!("../README.md")]
use core::fmt;
diff --git a/concat-kdf/src/lib.... | 4 | 4 | 1 |
af21691a2783da48ed6b21018a92c9e4208d2ae2 | Artyom Pavlov | 2025-05-28T12:24:30 | Remove `--cfg docsrs` (#126)
The flag is passed automatically by docs.rs. | diff --git a/bake-kdf/Cargo.toml b/bake-kdf/Cargo.toml
index 84db905..90e6871 100644
--- a/bake-kdf/Cargo.toml
+++ b/bake-kdf/Cargo.toml
@@ -20,4 +20,3 @@ hex-literal = "1"
[package.metadata.docs.rs]
all-features = true
-rustdoc-args = ["--cfg", "docsrs"]
diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 5237a2e... | 3 | 0 | 3 |
21a018dc049c1ea121c8578a18506877f66de83a | Artyom Pavlov | 2025-05-28T11:50:48 | Update `hmac` (#124)
The `EagerHash` trait was moved to the `hmac` root. | diff --git a/Cargo.lock b/Cargo.lock
index e39adea..448d602 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,7 +39,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
version = "0.2.0-pre.5"
-source = "git+https://github.com/RustCrypto/hashes.git#7d44caf06... | 3 | 17 | 20 |
2e2dbcd45b8678696e85dcbef922345f3ca04dbf | Arthur Gautier | 2025-05-27T18:40:33 | chore(deps): bump `digest` to `master` (#123) | diff --git a/Cargo.lock b/Cargo.lock
index 94ed173..e39adea 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,8 +39,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
version = "0.2.0-pre.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"... | 6 | 33 | 60 |
94bec6d438eaea431296bcf524cdca6b6a52e781 | Artyom Pavlov | 2025-03-07T14:51:27 | Release hmac v0.13.0-pre.5 (#120) | diff --git a/Cargo.lock b/Cargo.lock
index 6cdedc7..94ed173 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -18,7 +18,7 @@ name = "ansi-x963-kdf"
version = "0.0.1"
dependencies = [
"digest",
- "hex-literal 1.0.0",
+ "hex-literal",
"sha2",
]
@@ -27,7 +27,7 @@ name = "bake-kdf"
version = "0.0.1"
dependencies = [
... | 2 | 8 | 14 |
c009073c3460fff42d8299f9fa96d95e4f87a7de | Artyom Pavlov | 2025-03-07T14:43:56 | kbkdf: use pre.3 releases of `cmac` and `aes` (#119) | diff --git a/Cargo.lock b/Cargo.lock
index 921f1fe..6cdedc7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,8 +4,9 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-pre.2"
-source = "git+https://github.com/RustCrypto/block-ciphers.git#bb7623cf85b416c8c61d89dd11573e6e7f961720"
+version = "0.9.0-pre.3"
+source... | 3 | 8 | 12 |
a724b73ce881a0fc0ede0583f75b69ae4565dc3d | Artyom Pavlov | 2025-03-07T14:12:58 | Release kbkdf v0.1.0-pre.0 (#118) | diff --git a/Cargo.lock b/Cargo.lock
index b76454d..921f1fe 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -191,7 +191,7 @@ dependencies = [
[[package]]
name = "kbkdf"
-version = "0.0.1"
+version = "0.1.0-pre.0"
dependencies = [
"aes",
"cmac",
diff --git a/kbkdf/Cargo.toml b/kbkdf/Cargo.toml
index 4802ad1..101395... | 2 | 2 | 2 |
1899a40930fb9da65a16a626e56674f6ba88846c | Artyom Pavlov | 2025-03-07T14:10:21 | kbkdf: fix new lints (#117) | diff --git a/kbkdf/src/lib.rs b/kbkdf/src/lib.rs
index b5e1a42..96c3f16 100644
--- a/kbkdf/src/lib.rs
+++ b/kbkdf/src/lib.rs
@@ -127,7 +127,7 @@ where
/// - Prf - the Pseudorandom Function to derive keys from
/// - K - the expected output length of the newly derived key
/// - R - An integer (1 <= r <= 32) that in... | 3 | 25 | 22 |
367cef84caf8a03e5dfd4cc2b464bfb09135da0f | Artyom Pavlov | 2025-03-07T14:04:10 | Use released versions of hmac and hash crates (#116) | diff --git a/Cargo.lock b/Cargo.lock
index 114041f..b76454d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17,7 +17,7 @@ name = "ansi-x963-kdf"
version = "0.0.1"
dependencies = [
"digest",
- "hex-literal",
+ "hex-literal 1.0.0",
"sha2",
]
@@ -26,7 +26,7 @@ name = "bake-kdf"
version = "0.0.1"
dependencies = [
... | 7 | 40 | 35 |
02c319c2f5eed1f4749ff4d7f73fff273569b40f | Artyom Pavlov | 2024-12-04T05:58:08 | Remove `alloc` crate feature from `concat-kdf` and `ansi-x963-kdf` (#106)
The crate feature is used only for the 3-line convenience functions,
which can be easily written by users and probably extremely rarely used
in practice. | diff --git a/ansi-x963-kdf/Cargo.toml b/ansi-x963-kdf/Cargo.toml
index f1bee58..e4e20ae 100644
--- a/ansi-x963-kdf/Cargo.toml
+++ b/ansi-x963-kdf/Cargo.toml
@@ -18,11 +18,3 @@ digest = "=0.11.0-pre.9"
[dev-dependencies]
hex-literal = "0.4"
sha2 = { version = "=0.11.0-pre.4", default-features = false }
-
-[features]
... | 4 | 45 | 117 |
bff8ad42f95dcaa5d61f1b3b6fdae686e48f9755 | Tony Arcieri | 2024-07-26T23:12:06 | hkdf v0.13.0-pre.4 (#100) | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 124fb73..ca5d7fe 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.13.0-pre.3"
+version = "0.13.0-pre.4"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/RustC... | 1 | 1 | 1 |
250ef3120b51c97b69004f40e6f978c65a1c1bcd | Tony Arcieri | 2024-07-26T23:10:38 | Cargo.lock: bump dependencies (#99)
Updates the following dependencies:
$ cargo update
Updating crates.io index
Locking 4 packages to latest compatible versions
Updating cpufeatures v0.2.11 -> v0.2.12
Updating getrandom v0.2.11 -> v0.2.15
Updating libc v0.2.151 -> v0.2.155
Updatin... | diff --git a/Cargo.lock b/Cargo.lock
index 14db440..7c002ca 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -34,9 +34,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.11"
+version = "0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce420fe07aecd3e67c5f910618fe... | 1 | 8 | 8 |
25417f14da504695918747ed6e89d7ff3f7573b9 | Tony Arcieri | 2024-07-26T23:08:16 | Bump `digest` to v0.11.0-pre.9 (#98) | diff --git a/Cargo.lock b/Cargo.lock
index ebd344a..14db440 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,9 +10,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-buffer"
-version = "0.11.0-pre.5"
+version = "0.11.0-rc.0"
source = "registry+https://github... | 4 | 21 | 19 |
5240a858054b2a6ef1a0a2819a0f1ce11c8d3a85 | Artyom Pavlov | 2024-06-19T13:07:54 | hkdf: tweak tests (#97) | diff --git a/hkdf/tests/rfc5869.rs b/hkdf/tests/rfc5869.rs
new file mode 100644
index 0000000..f4bd8d9
--- /dev/null
+++ b/hkdf/tests/rfc5869.rs
@@ -0,0 +1,182 @@
+use hex_literal::hex;
+use hkdf::{hmac::EagerHash, Hkdf};
+use sha1::Sha1;
+use sha2::{digest::OutputSizeUser, Sha256};
+
+struct Test<'a> {
+ ikm: &'a [... | 3 | 242 | 276 |
31004c9e716d46cb58419daa302ecf8e5d9da7ec | Tony Arcieri | 2024-02-01T21:49:04 | Bump `digest` to v0.11.0-pre.8 (#95)
Also cuts a `hkdf` v0.13.0-pre.3 prerelease | diff --git a/Cargo.lock b/Cargo.lock
index 35713dc..ebd344a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,9 +10,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-buffer"
-version = "0.11.0-pre.4"
+version = "0.11.0-pre.5"
source = "registry+https://githu... | 3 | 21 | 21 |
5b9c2bd534c6e16b7e9fda5ef6499d73e91f0d3d | Tony Arcieri | 2024-01-10T19:21:42 | hkdf: bump `hmac` dependency to v0.13.0-pre.1 (#93)
Also cuts an `hkdf` v0.13.0-pre.1 release | diff --git a/Cargo.lock b/Cargo.lock
index 4df18d5..3872151 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,9 +10,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-buffer"
-version = "0.11.0-pre.3"
+version = "0.11.0-pre.4"
source = "registry+https://githu... | 3 | 20 | 20 |
c4498ba0838419607fe7d19430264212b7757075 | Tony Arcieri | 2024-01-09T14:44:13 | hkdf v0.13.0-pre.0 (#92) | diff --git a/Cargo.lock b/Cargo.lock
index 1b5892e..4df18d5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -82,7 +82,7 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
[[package]]
name = "hkdf"
-version = "0.13.0-pre"
+version = "0.13.0-pre.0"
dependencies = [
"blobby",
"hex-litera... | 2 | 2 | 2 |
1ac16e8b9d4ee7a67613c9396c6cc1327652eaba | Artyom Pavlov | 2023-12-13T13:33:30 | hkdf: fix `Debug` impls (#90) | diff --git a/Cargo.lock b/Cargo.lock
index 1d81c45..b885785 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -34,9 +34,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.9"
+version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a17b76ff3a4162b0b27f354a0c870... | 4 | 20 | 12 |
302320314252b36eb1fff404b6a49af1e0b2ccf5 | Артём Павлов [Artyom Pavlov] | 2023-09-26T16:17:16 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 29c609a..1d81c45 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -34,9 +34,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.8"
+version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03e69e28e9f7f77debdedbaafa2866... | 1 | 8 | 8 |
7753c7e024d66cb399eb3c14287b93f2bb394be4 | Артём Павлов [Artyom Pavlov] | 2023-06-16T13:35:08 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index cf53c44..0bacdb5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,9 +10,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-buffer"
-version = "0.10.3"
+version = "0.10.4"
source = "registry+https://github.com/rust-l... | 1 | 16 | 16 |
3b375ceb65c2ac64a8dffa282d10b0279042e9fe | zSchoen | 2023-03-04T18:49:12 | hkdf: add salt recommendations to docs (#78) | diff --git a/hkdf/src/lib.rs b/hkdf/src/lib.rs
index ca05bf7..a2d0b9f 100644
--- a/hkdf/src/lib.rs
+++ b/hkdf/src/lib.rs
@@ -6,6 +6,13 @@
//! Material (IKM) and an optional salt, then you expand it (perhaps multiple times)
//! into some Output Key Material (OKM) bound to an "info" context string.
//!
+//! There are ... | 1 | 9 | 0 |
e48fc535c2e257ca25398d3fed16bc69f7941b0c | Tony Arcieri | 2022-11-29T17:10:22 | hkdf: switch from `sha-1` to `sha1` (#77)
As a `dev-dependency`. The former is deprecated. | diff --git a/Cargo.lock b/Cargo.lock
index 02e55b3..dbf984e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -104,7 +104,7 @@ dependencies = [
"blobby",
"hex-literal 0.2.2",
"hmac",
- "sha-1",
+ "sha1",
"sha2",
]
@@ -130,10 +130,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d... | 2 | 5 | 5 |
0ef32bc186218b6703e3c3d5455050689b3649a7 | Артём Павлов [Artyom Pavlov] | 2022-11-17T01:01:47 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 61f3b44..02e55b3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,9 +53,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.10.5"
+version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "adfbc57365a37acbd2ebf2b64d7e69bb7... | 1 | 4 | 4 |
5ded96bfc392806ebc6187542d27d0ea879d29c4 | Артём Павлов [Artyom Pavlov] | 2022-09-16T03:14:52 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index bc80929..61f3b44 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,9 +53,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.10.3"
+version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2fb860ca6fafa5552fb6d0e816a69c8e... | 1 | 4 | 4 |
98bc33fd750ec47ddab6eacd631e3d2baac7eab9 | Artyom Pavlov | 2022-09-13T00:57:58 | concat-kdf: remove criterion dependency (#72) | diff --git a/Cargo.lock b/Cargo.lock
index f3eb03d..bc80929 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,29 +2,6 @@
# It is not intended for manual editing.
version = 3
-[[package]]
-name = "atty"
-version = "0.2.14"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9b39be18770d11421... | 3 | 26 | 609 |
00b9ad3cdd223beb9cf780b6f39edf62976b1a26 | Артём Павлов | 2022-08-22T17:01:39 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index e68e193..f12b90e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -15,9 +15,9 @@ dependencies = [
[[package]]
name = "autocfg"
-version = "1.0.1"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdb031dd78e28731d87d56cc8ffef4a8f3... | 1 | 97 | 109 |
af5e995bab7052ecbcee36f1622e11cc65e4d1e2 | Remoun Metyas | 2022-01-27T18:50:24 | Re-export error types. (#59) | diff --git a/hkdf/src/lib.rs b/hkdf/src/lib.rs
index 3dbc690..fa99460 100644
--- a/hkdf/src/lib.rs
+++ b/hkdf/src/lib.rs
@@ -104,7 +104,7 @@ use hmac::{Hmac, SimpleHmac};
mod errors;
mod sealed;
-use errors::{InvalidLength, InvalidPrkLength};
+pub use errors::{InvalidLength, InvalidPrkLength};
/// [`HkdfExtract`... | 1 | 1 | 1 |
ec1591fcb90699f223ff43be0f545f361aa782e1 | Tony Arcieri | 2021-04-29T19:21:27 | hkdf: bump `hmac` crate dependency to v0.11 (#50) | diff --git a/Cargo.lock b/Cargo.lock
index ed4952e..697a841 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,9 +60,9 @@ dependencies = [
[[package]]
name = "crypto-mac"
-version = "0.10.0"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4857fd85a0c34b3c3297875b747c1... | 3 | 8 | 11 |
77c221d941a8180a3c67fc6147ad6d6dddc47097 | 寧靜 | 2020-12-08T05:37:08 | fix HKDF-Extract with empty salt #45 (#46) | diff --git a/hkdf/src/hkdf.rs b/hkdf/src/hkdf.rs
index e61d658..1a6cfd4 100644
--- a/hkdf/src/hkdf.rs
+++ b/hkdf/src/hkdf.rs
@@ -69,11 +69,9 @@ where
{
/// Initiates the HKDF-Extract context with the given optional salt
pub fn new(salt: Option<&[u8]>) -> HkdfExtract<D> {
- let hmac = match salt {
- ... | 2 | 15 | 7 |
e413e0a41087f78db73901c6553e502b71885d6b | Tony Arcieri | 2020-10-26T18:10:58 | hkdf v0.10.0 (#44) | diff --git a/Cargo.lock b/Cargo.lock
index 089cf76..1f06362 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -120,7 +120,7 @@ checksum = "644f9158b2f133fd50f5fb3242878846d9eb792e445c893805ff0e3824006e35"
[[package]]
name = "hkdf"
-version = "0.9.1-alpha.0"
+version = "0.10.0"
dependencies = [
"bencher",
"crypto-tes... | 2 | 2 | 2 |
21f5b0cc9c1f34d049e40e4fe5776d61e731f877 | Tony Arcieri | 2020-10-26T18:06:24 | hkdf v0.10.0-alpha.0 (#41) | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index b27561e..6ad6132 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.9.1-alpha.0"
+version = "0.10.0-alpha.0"
authors = ["vladikoff", "warner", "RustCrypto Developers"]
license = "MIT/Apache-2.0"
homepage = "h... | 1 | 1 | 1 |
8729e573d5cb5783c509eab6e8f1302c6c8bd70a | Tony Arcieri | 2020-10-19T16:44:57 | Bump `hmac` dependency to v0.10 (#40)
There shouldn't be any changes that actually impact `hkdf`. This version
uses a newer `crypto-mac` release which has a new optional `cipher`
feature that uses the new `cipher` crate. | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 4455bdd..b27561e 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -19,7 +19,7 @@ path = "src/hkdf.rs"
[dependencies]
digest = "0.9"
-hmac = "0.8"
+hmac = "0.10"
[dev-dependencies]
crypto-tests = "0.5.*" | 1 | 1 | 1 |
f9297c5b719ace9ff630b3f995f1de0544683f2a | Vlad Filippov | 2020-06-22T14:19:31 | (cargo-release) start next development iteration 0.9.1-alpha.0 | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 5a80a48..4455bdd 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.9.0"
+version = "0.9.1-alpha.0"
authors = ["vladikoff", "warner", "RustCrypto Developers"]
license = "MIT/Apache-2.0"
homepage = "https://gi... | 1 | 1 | 1 |
b81b7646f6d5f446f94a9e81d0dfb55179e15810 | Vlad Filippov | 2020-06-22T14:19:14 | (cargo-release) version 0.9.0 | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index bf3b8e1..5a80a48 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.9.0-alpha.0"
+version = "0.9.0"
authors = ["vladikoff", "warner", "RustCrypto Developers"]
license = "MIT/Apache-2.0"
homepage = "https://gi... | 1 | 1 | 1 |
4a76cfcf6a72c9a6a65f8aa2904304b2e181875c | Michael Rosenberg | 2020-06-11T23:28:13 | Implemented multipart features for HKDF-Extract and HKDF-Expand (#34) | diff --git a/hkdf/src/hkdf.rs b/hkdf/src/hkdf.rs
index d7557db..34df8a6 100644
--- a/hkdf/src/hkdf.rs
+++ b/hkdf/src/hkdf.rs
@@ -6,10 +6,8 @@
//! # extern crate hex;
//! # extern crate hkdf;
//! # extern crate sha2;
-//!
//! # use sha2::Sha256;
//! # use hkdf::Hkdf;
-//!
//! # fn main() {
//! let ikm = hex::deco... | 2 | 167 | 22 |
9dc64c9329b8f8e81df7557735a9825ed3028f0a | Artyom Pavlov | 2020-06-11T23:16:10 | minor doc addition | diff --git a/hkdf/src/hkdf.rs b/hkdf/src/hkdf.rs
index 8d97271..d7557db 100644
--- a/hkdf/src/hkdf.rs
+++ b/hkdf/src/hkdf.rs
@@ -99,6 +99,8 @@ where
}
/// The RFC5869 HKDF-Expand operation
+ ///
+ /// If you don't have any `info` to pass, use an empty slice.
pub fn expand(&self, info: &[u8], okm:... | 1 | 2 | 0 |
454f2f4de59f1bbc5bf6be24ef2946bc13995c56 | Tony Arcieri | 2020-06-10T15:59:11 | hkdf v0.9.0-alpha.0 | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 0e41497..bf3b8e1 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.8.1-alpha.0"
+version = "0.9.0-alpha.0"
authors = ["vladikoff", "warner", "RustCrypto Developers"]
license = "MIT/Apache-2.0"
homepage = "ht... | 1 | 1 | 1 |
6c4f10a4595fd18ce2cde4f43786167b2150b88d | Tony Arcieri | 2020-06-10T13:38:01 | hkdf: upgrade to `digest` v0.9; `hmac` v0.9 (#35)
Removes the prerelease dependencies and replaces them with the final
crate releases. One small API change had occurred
(`result` -> `finalize`) | diff --git a/Cargo.toml b/Cargo.toml
index 3dec279..4c8ef2c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,11 +2,3 @@
members = [
"hkdf",
]
-
-[patch.crates-io]
-block-buffer = { git = "https://github.com/RustCrypto/utils" }
-crypto-mac = { git = "https://github.com/RustCrypto/traits" }
-digest = { git = "https:... | 2 | 5 | 13 |
4d690ffbaaa86ff169c3cd65977a0ba7808abd55 | Tony Arcieri | 2020-06-02T23:49:48 | Rename `*result*` to `finalize`
Implements the API changes from:
https://github.com/RustCrypto/traits/pull/161
The `hmac` crate now uses `update` and `finalize` nomenclature
ala the Initialize-Update-Finalize (IUF) interface naming scheme. | diff --git a/hkdf/src/hkdf.rs b/hkdf/src/hkdf.rs
index 33e78dc..8d97271 100644
--- a/hkdf/src/hkdf.rs
+++ b/hkdf/src/hkdf.rs
@@ -93,7 +93,7 @@ where
hmac.update(ikm);
- let prk = hmac.result().into_bytes();
+ let prk = hmac.finalize().into_bytes();
let hkdf = Hkdf::from_prk(&prk).exp... | 1 | 2 | 2 |
023a60a9fc440e173f8375e1707367876ab3f8f0 | Tony Arcieri | 2020-06-01T20:17:32 | hkdf: 2018 edition upgrade
Updates the codebase to Rust 2018 edition.
Updates performed largely automatically using `cargo fix --edition` and
`cargo fix --edition-idioms`. | diff --git a/hkdf/examples/extract.rs b/hkdf/examples/extract.rs
index 6135ecd..6797843 100644
--- a/hkdf/examples/extract.rs
+++ b/hkdf/examples/extract.rs
@@ -1,5 +1,3 @@
-use hex;
-
use hkdf::Hkdf;
use sha2::Sha256;
diff --git a/hkdf/examples/from_prk.rs b/hkdf/examples/from_prk.rs
index b96bcd8..7636da8 100644
... | 4 | 2 | 8 |
d40c326f9fc080b73b111828f7e8f298b3d77e21 | Tony Arcieri | 2020-06-01T20:13:49 | hkdf: 2018 edition upgrade | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 2cfaa1c..59e9ff4 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -8,6 +8,7 @@ repository = "https://github.com/RustCrypto/KDFs/"
description = "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)"
keywords = [ "HKDF", "Crypto" ]
readme = "README.md"... | 7 | 11 | 21 |
6f20c88899707252d334de08825fce8e47645952 | Tony Arcieri | 2020-06-01T19:11:20 | hkdf: upgrade to pre-release upstream crates
Updates the `digest` and `hmac` crates to the new (2018 edition)
upstream crates (v0.9.0-pre and v0.8.0-pre respectively). | diff --git a/Cargo.toml b/Cargo.toml
index 4c8ef2c..3dec279 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,3 +2,11 @@
members = [
"hkdf",
]
+
+[patch.crates-io]
+block-buffer = { git = "https://github.com/RustCrypto/utils" }
+crypto-mac = { git = "https://github.com/RustCrypto/traits" }
+digest = { git = "https:... | 3 | 23 | 15 |
6c61c600ec03f02d36a301f320fe6a957711e6a7 | Vlad Filippov | 2019-07-26T17:29:05 | (cargo-release) start next development iteration 0.8.0 | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 8509c32..da1e3d9 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.8.0"
+version = "0.8.1-alpha.0"
authors = ["vladikoff", "warner", "RustCrypto Developers"]
license = "MIT/Apache-2.0"
homepage = "https://gi... | 1 | 1 | 1 |
63c1ffbe6e73834e7c87e25fe4e7429f8d3b7a37 | Vlad Filippov | 2019-07-26T17:28:59 | (cargo-release) version 0.8.0 | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 1140f76..8509c32 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.7.1"
+version = "0.8.0"
authors = ["vladikoff", "warner", "RustCrypto Developers"]
license = "MIT/Apache-2.0"
homepage = "https://github.com... | 1 | 1 | 1 |
b779d0e73ab7f04d6fb3a3cd6a9fe45859382015 | Brian Warner | 2019-07-19T01:17:21 | docs: encourage new() over extract(), but have examples of both | diff --git a/hkdf/examples/extract.rs b/hkdf/examples/extract.rs
new file mode 100644
index 0000000..48ba75d
--- /dev/null
+++ b/hkdf/examples/extract.rs
@@ -0,0 +1,29 @@
+extern crate hex;
+extern crate hkdf;
+extern crate sha2;
+
+use hkdf::Hkdf;
+use sha2::Sha256;
+
+// Normally the PRK (Pseudo-Random Key) remains h... | 4 | 69 | 7 |
f1e174e16ea7dce318f6bd7bb556f037dba37ad5 | Brian Warner | 2019-07-18T08:34:18 | cargo fmt | diff --git a/hkdf/benches/hkdf.rs b/hkdf/benches/hkdf.rs
index 02a16b6..940df97 100644
--- a/hkdf/benches/hkdf.rs
+++ b/hkdf/benches/hkdf.rs
@@ -27,8 +27,5 @@ fn sha256_8k(b: &mut Bencher) {
// note: SHA-256 output limit is 255*32=8160 bytes
-benchmark_group!(benches,
- sha256_10,
- ... | 4 | 122 | 110 |
87659b145de58938c145054903add09efad452e1 | Without Boats | 2019-07-11T16:00:45 | Update version | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index e3797bb..1140f76 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.7.0"
+version = "0.7.1"
authors = ["vladikoff", "warner", "RustCrypto Developers"]
license = "MIT/Apache-2.0"
homepage = "https://github.com... | 1 | 1 | 1 |
e22ac8f550d9d8576ce4b35e67115ba9d7cb3384 | Without Boats | 2019-07-11T15:59:48 | Remove unnecessary clone bound. | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 6cb250e..e3797bb 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -18,7 +18,7 @@ path = "src/hkdf.rs"
[dependencies]
digest = "0.8"
-hmac = "0.7"
+hmac = "0.7.1"
[dev-dependencies]
crypto-tests = "0.5.*"
diff --git a/hkdf/src/hkdf.rs b/hkdf/src/hkdf.rs
i... | 2 | 2 | 2 |
c9d2fcdcfa6dbda997f8604ea6e477d7b0805204 | nlordell | 2019-02-15T11:26:53 | Support HKDF-Expand with different sized PRKs | diff --git a/hkdf/benches/hkdf.rs b/hkdf/benches/hkdf.rs
index c1a5492..02a16b6 100644
--- a/hkdf/benches/hkdf.rs
+++ b/hkdf/benches/hkdf.rs
@@ -9,19 +9,19 @@ use sha2::Sha256;
fn sha256_10(b: &mut Bencher) {
let mut okm = vec![0u8; 10];
- b.iter(|| Hkdf::<Sha256>::extract(Some(&[]), &[]).expand(&[], &mut ok... | 4 | 103 | 38 |
dcdcf683a68b5ad15ecc4550bb823535baee2d38 | vladikoff | 2018-10-16T19:54:36 | (cargo-release) version 0.7.0 | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index ebfbefb..6cb250e 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.6.1-alpha.0"
+version = "0.7.0"
authors = ["vladikoff", "warner", "RustCrypto Developers"]
license = "MIT/Apache-2.0"
homepage = "https://gi... | 1 | 1 | 1 |
eaef0e383a7d75510ce2e4ac13d10096115c7274 | Tim Visée | 2018-10-16T15:42:39 | Update digest to 0.8, refactor for API changes, remove redundant crate (#21) r=@vladikoff,@warner,@newpavlov
Fixes #20
This PR updates the digest dependency to version 0.8 (newest), and includes various refactorings to support this change. More crates start depending on these newer digest and hmac versions, thus a... | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 0f9ff3f..ebfbefb 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -17,15 +17,14 @@ name = "hkdf"
path = "src/hkdf.rs"
[dependencies]
-generic-array = "0.9"
-digest = "0.7"
-hmac = "0.6"
+digest = "0.8"
+hmac = "0.7"
[dev-dependencies]
crypto-tests = "0.5... | 2 | 13 | 14 |
0148962cad7c35dac5b5c035fbf8596068e98f67 | vladikoff | 2018-08-21T00:30:11 | (cargo-release) start next development iteration 0.6.1-alpha.0 | diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml
index 4b72b09..0f9ff3f 100644
--- a/hkdf/Cargo.toml
+++ b/hkdf/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "hkdf"
-version = "0.6.0"
+version = "0.6.1-alpha.0"
authors = ["vladikoff", "warner", "RustCrypto Developers"]
license = "MIT/Apache-2.0"
homepage = "https://gi... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.