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
17520aa7fa639b5f931ec63003b3aaa9abd08f02
Tony Arcieri
2026-01-14T19:17:12
kdf: impl `Display` and `core::error::Error` for `Error` (#2189) Minimum viable trait impls for an error type
diff --git a/kdf/src/lib.rs b/kdf/src/lib.rs index 4417af3..f65c41c 100644 --- a/kdf/src/lib.rs +++ b/kdf/src/lib.rs @@ -8,6 +8,8 @@ #![forbid(unsafe_code)] #![warn(missing_docs, unused_qualifications)] +use core::fmt; + /// Key Derivation Function. /// /// These functions deterministically produce uniformly ran...
1
10
0
d3f76295077a7cc1b4a1137569b35010f71238e1
Tony Arcieri
2026-01-12T20:34:12
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.16 (#2184)
diff --git a/Cargo.lock b/Cargo.lock index b2ab632..70c84cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -143,9 +143,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.15" +version = "0.7.0-rc.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a9e36ac79ac44...
2
3
3
49595a87ef38dffc1122c8d00447951fd1f0fc1f
Tony Arcieri
2026-01-11T23:13:38
password-hash v0.6.0-rc.8 (#2183)
diff --git a/Cargo.lock b/Cargo.lock index f111b41..b2ab632 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -341,7 +341,7 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.7" +version = "0.6.0-rc.8" dependencies = [ "getrandom", "phc", diff --git a/password-hash/Cargo.toml b/password-hash...
2
2
2
e90f599772cfeb6adf375eebf4ce3c320f9b7f1b
Tony Arcieri
2026-01-11T22:48:25
password-hash: improve PHC `PasswordVerifier` blanket impl (#2182) Rather than using the `FromStr` impl to parse the associated `Params` type, it instead bounds on a `TryFrom<phc::ParamsString>` impl, which provides a more explicit PHC-specific params conversion.
diff --git a/password-hash/src/error.rs b/password-hash/src/error.rs index e188e96..eb290b8 100644 --- a/password-hash/src/error.rs +++ b/password-hash/src/error.rs @@ -66,12 +66,6 @@ impl fmt::Display for Error { impl core::error::Error for Error {} -impl From<core::num::ParseIntError> for Error { - fn from(_:...
2
3
10
712bb90850124c0458df5c40a1427d80a20ceab2
Tony Arcieri
2026-01-11T22:32:12
password-hash: impl `From<ParseIntError>` for `Error` (#2181)
diff --git a/password-hash/src/error.rs b/password-hash/src/error.rs index eb290b8..e188e96 100644 --- a/password-hash/src/error.rs +++ b/password-hash/src/error.rs @@ -66,6 +66,12 @@ impl fmt::Display for Error { impl core::error::Error for Error {} +impl From<core::num::ParseIntError> for Error { + fn from(_:...
1
6
0
54f35d0bf73808010bfc7ea5d5825ee8e3a6210a
Tony Arcieri
2026-01-09T19:37:42
kem: fix `crypto-common` version pin in Cargo.toml The current code is not compatible with `v0.2.0-rc.8`
diff --git a/kem/Cargo.toml b/kem/Cargo.toml index 464a079..493b0df 100644 --- a/kem/Cargo.toml +++ b/kem/Cargo.toml @@ -17,7 +17,7 @@ Traits for Key Encapsulation Mechanisms (KEMs): public-key cryptosystems designe """ [dependencies] -crypto-common = { version = "0.2.0-rc.8", features = ["rand_core"], path = "../c...
1
1
1
a0dd565e4a74ea4386b907a6c21cc5890550c2b1
Tony Arcieri
2026-01-09T19:31:26
kem v0.4.0-rc.2 (#2180) Release which includes #2152
diff --git a/Cargo.lock b/Cargo.lock index dd848d5..f111b41 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -288,7 +288,7 @@ dependencies = [ [[package]] name = "kem" -version = "0.4.0-rc.1" +version = "0.4.0-rc.2" dependencies = [ "crypto-common", "rand_core", diff --git a/kem/Cargo.toml b/kem/Cargo.toml index 0e...
2
2
2
ae51f8daaad905a70481ba10716de156d9431208
Tony Arcieri
2026-01-08T16:44:35
elliptic-curve v0.14.0-rc.21 (#2178)
diff --git a/Cargo.lock b/Cargo.lock index 5c188bb..dd848d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -200,7 +200,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-rc.20" +version = "0.14.0-rc.21" dependencies = [ "base16ct", "crypto-bigint", diff --git a/elliptic-curve/Cargo.toml ...
2
2
2
f3f7feb394e9ced9e77ec7cd9ff5e4c832efbeb0
Tony Arcieri
2026-01-07T15:01:24
elliptic-curve: add `dev::bench_projective!` macro (#2177) Writes `criterion` benchmarks for `ProjectivePoint` using a macro which has been tested with both `criterion` v0.7 and v0.8, which means we can release on the former (for MSRV 1.85 compat) and then later upgrade to to the latter in a non-breaking manner
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index afe0be4..4093cc2 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -10,3 +10,49 @@ pub mod mock_curve; note = "import these types from the `dev::mock_curves` module" )] pub use mock_curve::*; + +/// Write a series of...
1
46
0
129d67b230abfc09b6ae79a2a6938aa318d5684e
Tony Arcieri
2026-01-06T18:04:12
elliptic-curve: impl `TryKeyInit` for `SecretKey<C>` (#2174) Impls the newly added trait from `crypto-common`. Also impls its supertrait `KeySizeUser`.
diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index fe9a26a..0bbf208 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -10,7 +10,7 @@ mod pkcs8; use crate::{Curve, Error, FieldBytes, Result, ScalarValue}; use array::typenum::Unsigned; -use com...
1
22
4
dc21c1a78d7a67c618373772457cd25a6c25d4fa
Tony Arcieri
2026-01-06T18:04:01
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.15 (#2175)
diff --git a/Cargo.lock b/Cargo.lock index 2c2a9c5..5c188bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -143,9 +143,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.14" +version = "0.7.0-rc.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9c6daa2049db6...
2
3
3
ffb6cf7d38ebca79309b7fca914394ef61235261
Tony Arcieri
2026-01-06T17:11:04
elliptic-curve: use `crypto_common::Generate` (#2173) Adds a dependency on `crypto-common` (all curve implementations pretty much have a transitive one already) and replaces all of the RNG functionality with the new `Generate` trait (#2096), for the following types: - `NonZeroScalar` - `ScalarValue` - `SecretKey` - `...
diff --git a/Cargo.lock b/Cargo.lock index 065c16d..2c2a9c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -204,6 +204,7 @@ version = "0.14.0-rc.20" dependencies = [ "base16ct", "crypto-bigint", + "crypto-common", "digest", "getrandom", "hex-literal", diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Carg...
9
135
123
95ced57b9b484bc462cf501d45bde0678161bcca
Tony Arcieri
2026-01-05T04:24:52
elliptic-curve v0.14.0-rc.20 (#2170)
diff --git a/Cargo.lock b/Cargo.lock index 7620fb1..792f196 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -143,9 +143,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.13" +version = "0.7.0-rc.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2bb4138de6db7...
2
5
5
74f95a5075b8ae409bda30c03b586968d4b89a50
Tony Arcieri
2026-01-05T03:58:28
elliptic-curve: add `Retrieve` bound to scalar (#2169) Provides a common API for retrieving the canonical representitive for a given field element
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index 47ea7b1..a1b96fe 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -7,6 +7,7 @@ use crate::{ point::{AffineCoordinates, NonIdentity}, scalar::{FromUintUnchecked, IsHigh}, }; +use bigin...
2
11
1
ea272ec0693e4b28fbb6b255d6b8b68230285f7b
Tony Arcieri
2026-01-04T14:31:29
crypto-common v0.2.0-rc.9 (#2167)
diff --git a/Cargo.lock b/Cargo.lock index 83629db..7620fb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -158,7 +158,7 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.8" +version = "0.2.0-rc.9" dependencies = [ "getrandom", "hybrid-array", @@ -200,7 +200,7 @@ dependencies = [ [[pa...
6
7
7
4303b14c933b7752ce2221e101363cae99801077
Tony Arcieri
2026-01-04T14:20:57
crypto-common: add deprecated `generate*` to `Key(Iv)Init` (#2162) I was myself confused by the breakages removing these methods caused the other week: https://github.com/RustCrypto/formats/pull/2140#issuecomment-3694361097 If it's confusing me as the person who made the changes, no doubt it will confuse others, as ...
diff --git a/crypto-common/src/lib.rs b/crypto-common/src/lib.rs index 54a1926..d991998 100644 --- a/crypto-common/src/lib.rs +++ b/crypto-common/src/lib.rs @@ -30,6 +30,9 @@ use hybrid_array::{ typenum::{Diff, Sum, Unsigned}, }; +#[cfg(feature = "rand_core")] +use rand_core::CryptoRng; + /// Block on which [`...
1
70
0
d51c29328583dad5888d479142c3ec23d58c909e
Tony Arcieri
2026-01-04T01:39:25
elliptic-curve v0.14.0-rc.19 (#2165)
diff --git a/Cargo.lock b/Cargo.lock index 2bb12b0..83629db 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -469,6 +469,7 @@ dependencies = [ "der", "hybrid-array", "serdect", + "subtle", "zeroize", ] diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index f39cedb..1f65bf0 100644 --- a/elliptic-...
2
3
2
ab6e3b52fa6869b4a86a3efe930563e2600db232
Tony Arcieri
2026-01-04T01:33:11
elliptic-curve: add `ctutils` traits to `arithmetic` bounds (#2166) Makes it possible to use the `CtEq` and `CtSelect` traits on the `CurveArithmetic::{AffinePoint, ProjectivePoint, Scalar}` associated types.
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index ef0d669..47ea7b1 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -2,6 +2,7 @@ use crate::{ Curve, CurveGroup, Error, FieldBytes, Group, NonZeroScalar, PrimeCurve, ScalarValue, + ctut...
3
91
7
443d4ee719c8a10fa3dedd3878a57fe9074496fc
Tony Arcieri
2026-01-04T00:03:33
elliptic-curve: bump `sec1` to v0.8.0-rc.11 (#2164)
diff --git a/Cargo.lock b/Cargo.lock index 1c36739..2bb12b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -36,12 +36,6 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" -[[package]] -name = "base16ct" -ve...
6
20
23
f33be2a7aa17169a408c602a6d16103da0a96a92
Tony Arcieri
2026-01-03T22:11:34
elliptic-curve: bump `base16ct` to v1 (#2163)
diff --git a/Cargo.lock b/Cargo.lock index 34a3724..1c36739 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -42,6 +42,12 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d8b59d472eab27ade8d770dcb11da7201c11234bef9f82ce7aa517be028d462b" +[[package]] +name = "base16ct" +ve...
2
12
6
7f0d7ec18ca1b7d49c1e90cae531de3b5af8f5e4
Tony Arcieri
2025-12-29T23:53:35
elliptic-curve v0.14.0-rc.18 (#2161)
diff --git a/Cargo.lock b/Cargo.lock index 319f7ed..1b724fb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -200,7 +200,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-rc.17" +version = "0.14.0-rc.18" dependencies = [ "base16ct", "crypto-bigint", diff --git a/elliptic-curve/Cargo.toml ...
2
2
2
8ea33477944453c67fc548ab5ce25e477800d732
Tony Arcieri
2025-12-29T23:49:57
elliptic-curve: use `Cargo.toml` for `array`/`bigint` imports (#2160) Names them `array` and `bigint` in `Cargo.toml`, using the `package` field to refer to `hybrid-array` and `crypto-bigint` respectively. This means they're consistently referred to as `array` and `bigint` from within the crate, and should also help ...
diff --git a/Cargo.lock b/Cargo.lock index 20b697b..319f7ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -148,6 +148,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2bb4138de6db76c8155b4423e967049fbef2cf84ad6af7f552f73a161941b72" dependencies = [ "ctutils", + "getrandom", "hybrid...
8
15
13
2261078578ec02408749e2d0d673ce9283a28b79
Tony Arcieri
2025-12-29T23:37:39
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.13 (#2158)
diff --git a/Cargo.lock b/Cargo.lock index de06663..20b697b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -143,9 +143,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.12" +version = "0.7.0-rc.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7ddf7876857d9...
2
5
5
96a144dc17c39d58cf31c36d1857e0185425842a
Tony Arcieri
2025-12-29T15:59:57
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.12 (#2155)
diff --git a/Cargo.lock b/Cargo.lock index 3d5d990..de06663 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -143,9 +143,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.11" +version = "0.7.0-rc.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1561a463186fad...
2
3
3
28bb5d487421f35eed714810a7f10fb091179e6f
Tony Arcieri
2025-12-29T03:45:25
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.11 (#2153) This includes a mostly-backwards-compatible migration from `subtle` to `ctutils`.
diff --git a/Cargo.lock b/Cargo.lock index 2e336b8..3d5d990 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,6 +109,12 @@ dependencies = [ "zeroize", ] +[[package]] +name = "cmov" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c11ed919bd3bae4af5ab56372b627dfc32622...
3
34
13
7db7413ea24846174bedf0c1cd1dd3f5b24f4d71
Tony Arcieri
2025-12-28T03:32:49
crypto-common: conditionally re-export `getrandom` (#2152) Removes bespoke re-exports and simply re-exports the whole crate, which replaces the following: - `crypto_common::RngError` => `crypto_common::getrandom::Error` - `crypto_common::SysRng` => `crypto_common::getrandom::SysRng`
diff --git a/crypto-common/src/generate.rs b/crypto-common/src/generate.rs index eb5ddaf..70f1ec0 100644 --- a/crypto-common/src/generate.rs +++ b/crypto-common/src/generate.rs @@ -1,9 +1,6 @@ use hybrid_array::{Array, ArraySize}; use rand_core::{CryptoRng, TryCryptoRng}; -#[cfg(feature = "getrandom")] -use crate::...
3
6
8
10ddeb0362aaee8f7a63d799e5bfe6f91ca2280e
Tony Arcieri
2025-12-28T02:46:54
password-hash v0.6.0-rc.7 (#2151) Includes `getrandom` v0.4.0-rc.0 upgrades
diff --git a/Cargo.lock b/Cargo.lock index 9df960c..2e336b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -322,7 +322,7 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.6" +version = "0.6.0-rc.7" dependencies = [ "getrandom", "phc", diff --git a/password-hash/Cargo.toml b/password-hash...
2
5
5
47739107c12120eec928e8774cab9551c3d7df3b
Tony Arcieri
2025-12-28T02:41:09
password-hash: bump `phc` to v0.6.0-rc.1 (#2150)
diff --git a/Cargo.lock b/Cargo.lock index 2e4b086..9df960c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -152,7 +152,7 @@ dependencies = [ name = "crypto-common" version = "0.2.0-rc.8" dependencies = [ - "getrandom 0.4.0-rc.0", + "getrandom", "hybrid-array", "rand_core", ] @@ -187,7 +187,7 @@ dependencies = [ ...
3
8
20
036bd8713eef3f666edb6eb18ceb544e20d50f39
Tony Arcieri
2025-12-27T21:03:56
aead+cipher: bump `inout` dependency to v0.2.2 (#2149) This requires `block-padding` v0.4.2 which ensures there aren't any incompatibilities with older, yanked versions
diff --git a/Cargo.lock b/Cargo.lock index 401bcf7..2e4b086 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -271,9 +271,9 @@ dependencies = [ [[package]] name = "inout" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7357b6e7aa75618c7864ebd0634b115a7...
3
4
4
eeac8f17e0bb1b6f9086d15073f605a3fe94a5c2
Tony Arcieri
2025-12-27T20:17:25
Cut new prereleases (#2148) Releases the following, with `getrandom` v0.4.0-rc.0 and `rand_core` v0.10.0-rc-3 as requirements: - `aead` v0.6.0-rc.5 - `cipher` v0.5.0-rc.3 - `crypto-common` v0.2.0-rc.8 - `digest` v0.11.0-rc.5 - `kem` v0.4.0-rc.1 - `signature` v0.3.0-rc.6 - `universal-hash` v0.6.0-rc.4 The `password-h...
diff --git a/Cargo.lock b/Cargo.lock index 791ac2a..401bcf7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.6.0-rc.4" +version = "0.6.0-rc.5" dependencies = [ "arrayvec", "blobby", @@ -99,7 +99,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111...
9
28
28
a9e1c42aed3e89c168a71ba08c88a6a833a42208
Tony Arcieri
2025-12-27T20:10:12
Bump `blobby` to v0.4 (#2147) We've already been using it due to the relaxed dependency, this just makes it official in: `aead`, `cipher`, `digest`
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index b35e916..6c5aa89 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -21,7 +21,7 @@ inout = "0.2" # optional dependencies arrayvec = { version = "0.7", optional = true, default-features = false } -blobby = { version = "0.4.0-pre.1", optional = true } +blobby = ...
3
3
3
870fec54143f68e6b9877fa66d5a519e855b0339
Tony Arcieri
2025-12-27T20:04:33
Bump `getrandom` to v0.4.0-rc.0 (#2146) This notably includes the new `sys_rng` feature / `SysRng` type, which is the replacement for `OsRng`, and allows us to delete the vendored version thereof from `crypto-common`.
diff --git a/Cargo.lock b/Cargo.lock index 897ae22..791ac2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -152,7 +152,7 @@ dependencies = [ name = "crypto-common" version = "0.2.0-rc.7" dependencies = [ - "getrandom", + "getrandom 0.4.0-rc.0", "hybrid-array", "rand_core", ] @@ -187,7 +187,7 @@ dependencies = [ ...
6
22
41
9e879011c62b3a6d3f4fcbd18aae80e21d082fd3
Tony Arcieri
2025-12-27T16:53:00
crypto-common: rename `Generate::*generate_from_rng` (#2145) Renames the following `Generate` methods: - `try_from_rng` => `try_generate_from_rng` - `from_rng` => `generate_from_rng` As I was writing impls of the `Generate` trait, I though it would be more consistent if all of the methods had `*generate*` in their na...
diff --git a/crypto-common/src/generate.rs b/crypto-common/src/generate.rs index c7fa376..477aae8 100644 --- a/crypto-common/src/generate.rs +++ b/crypto-common/src/generate.rs @@ -7,11 +7,11 @@ use crate::RngError; /// Secure random generation. pub trait Generate: Sized { /// Generate random key using the provi...
1
10
10
af052ce36dd0a0aa99c3f16272197db2984c3384
Tony Arcieri
2025-12-26T18:37:47
kem v0.4.0-rc.0 (#2144) Also cuts a `crypto-common` v0.2.0-rc.7
diff --git a/Cargo.lock b/Cargo.lock index eed10ec..897ae22 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -150,7 +150,7 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.6" +version = "0.2.0-rc.7" dependencies = [ "getrandom", "hybrid-array", @@ -268,7 +268,7 @@ dependencies = [ [[pa...
9
16
12
7e679ba70f8578e176335d402acbd9ddb2e2a805
Tony Arcieri
2025-12-26T18:19:22
kem: rustdoc fixups (#2142)
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index 25e7cff..7dd6f83 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -12,9 +12,10 @@ pub use crypto_common::{Generate, KeyInit, KeySizeUser, typenum::consts}; use rand_core::TryCryptoRng; -/// A value that can be encapsulated to. Often, this will just be a public ...
1
8
4
64084482ce11ae91a5fc6d2d1d09c532d1b9b475
Tony Arcieri
2025-12-26T18:05:45
kem: re-export `Generate`; add `getrandom` feature (#2140) Since KEMs require randomness and unconditionally enables the `rand_core` feature of `crypto-common`, this unconditionally re-exports the `Generate` trait, which can be used to generate decapsulation keys (though the bounds on `Decapsulate` remain unchanged). ...
diff --git a/Cargo.lock b/Cargo.lock index ae106ba..eed10ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -272,7 +272,6 @@ version = "0.4.0-pre.2" dependencies = [ "crypto-common", "rand_core", - "zeroize", ] [[package]] diff --git a/kem/Cargo.toml b/kem/Cargo.toml index 02ff31b..16fba56 100644 --- a/kem/Cargo.t...
3
6
4
84b88b20d090db99bf9c11bba0aad382f06a64b1
Tony Arcieri
2025-12-26T17:51:49
kem: change associated `Error` bounds to `core::error::Error` (#2139) Now that the `Error` trait is stable in `core`, we can bound on it instead of on `Debug` (where `Error` has a supertrait bound on `Debug`)
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index cd5314c..bdf09b1 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -10,7 +10,6 @@ pub use crypto_common::{KeyInit, KeySizeUser, typenum::consts}; -use core::fmt::Debug; use rand_core::TryCryptoRng; /// A value that can be encapsulated to. Often, this will ju...
1
2
3
034329f6432513c84252020f375d1eb8e3d33b87
Tony Arcieri
2025-12-26T15:02:51
aead v0.6.0-rc.4 (#2138) This includes the changes needed for the `Generate` trait to work
diff --git a/Cargo.lock b/Cargo.lock index 96b9e62..ae106ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" dependencies = [ "arrayvec", "blobby", diff --git a/aead/Cargo.toml b/aead/Cargo.toml index d17943a.....
2
3
3
0cfefa92557218132cd4d83d43c7cee74a1132a9
Tony Arcieri
2025-12-24T22:50:21
crypto-common v0.2.0-rc.6 (#2136)
diff --git a/Cargo.lock b/Cargo.lock index a8921a6..96b9e62 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -150,7 +150,7 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.5" +version = "0.2.0-rc.6" dependencies = [ "getrandom", "hybrid-array", diff --git a/crypto-common/Cargo.toml b/cryp...
2
2
2
09589dde370fe4677e6656177b282b3cc17e57ed
Tony Arcieri
2025-12-24T22:46:57
crypto-common: vendor `getrandom::SysRng` (#2135) It's now been a month since #2096 was merged and there still has not been a corresponding `getrandom` release. This commit temporarily internally vendors `SysRng` (which has a very small implementation) until there is a `getrandom` crate release which is usable. This ...
diff --git a/Cargo.lock b/Cargo.lock index 97bb871..a8921a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -212,12 +212,12 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "getrandom" version = "0.3.4" -source = "git+https://github.com/rust-random/getrandom#658bb1a43ca...
4
36
6
6c316b3327e6479f6ac28f4078b89782de5da46d
Tony Arcieri
2025-12-24T22:25:15
Bump `rand_core` dependency to v0.10.0-rc-3 (#2134)
diff --git a/Cargo.lock b/Cargo.lock index 2ee340b..97bb871 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -398,9 +398,9 @@ checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] name = "rand_core" -version = "0.10.0-rc-2" +version = "0.10.0-rc-3" source = "registry+https://github.c...
6
7
7
6a11701e6d580314653bf57768a07ef01768faf2
Tony Arcieri
2025-12-17T14:30:52
elliptic-curve: add `#[inline]` to LUT methods (#2131) Noticed a ~10% performance regression on basepoint multiplication, and this seemed to help
diff --git a/elliptic-curve/src/point/lookup_table.rs b/elliptic-curve/src/point/lookup_table.rs index ecdc85d..9e13daa 100644 --- a/elliptic-curve/src/point/lookup_table.rs +++ b/elliptic-curve/src/point/lookup_table.rs @@ -26,6 +26,7 @@ where pub const SIZE: usize = LUT_SIZE; /// Compute a new lookup tabl...
1
2
0
70faf0738c7afc64c298bc915b9e0efa1d047b94
Tony Arcieri
2025-12-14T15:47:21
password-hash: expose salt generating helper functions (#2128) Right now there's not a way to generate a random salt in the context of MCF password hashes when not using the high-level `PasswordHash::hash_password` API, e.g. for KDF usage, which is to say that for PHC password hashes `phc::Salt::generate` is fine for ...
diff --git a/password-hash/src/error.rs b/password-hash/src/error.rs index 7651883..6a8dd89 100644 --- a/password-hash/src/error.rs +++ b/password-hash/src/error.rs @@ -66,6 +66,14 @@ impl fmt::Display for Error { impl core::error::Error for Error {} +#[cfg(feature = "getrandom")] +impl From<getrandom::Error> for ...
2
28
3
7ecfdebf4beabb24db337a3ae7386d3b2f96bb02
Tony Arcieri
2025-12-13T20:28:02
password-hash v0.6.0-rc.6 (#2127) Adds `rand_core` feature
diff --git a/Cargo.lock b/Cargo.lock index 7ec68de..2ee340b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -322,7 +322,7 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.5" +version = "0.6.0-rc.6" dependencies = [ "getrandom", "phc", diff --git a/password-hash/Cargo.toml b/password-hash...
2
2
2
19aa016b72368f2635dfa712e9621f95e184df2a
Tony Arcieri
2025-12-13T15:36:56
password-hash: add `rand_core` feature (#2126) Adds a `PasswordHash::hash_password_with_rng` method gated on the `rand_core` feature which uses a `TryCryptoRng` to generate a random salt, analogous to the `getrandom`-based `PasswordHash::hash_password`.
diff --git a/Cargo.lock b/Cargo.lock index f78b545..7ec68de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -326,6 +326,7 @@ version = "0.6.0-rc.5" dependencies = [ "getrandom", "phc", + "rand_core", ] [[package]] @@ -345,6 +346,7 @@ checksum = "c61f960577aaac5c259bc0866d685ba315c0ed30793c602d7287f54980913863" de...
3
23
1
1cfd410eb623fb55473481e83e9a80bac2e8c547
Tony Arcieri
2025-12-11T21:29:20
password-hash v0.6.0-rc.5 (#2125)
diff --git a/Cargo.lock b/Cargo.lock index 0c493bc..f78b545 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -322,7 +322,7 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.4" +version = "0.6.0-rc.5" dependencies = [ "getrandom", "phc", diff --git a/password-hash/Cargo.toml b/password-hash...
2
2
2
94ae5be0a8320cab25e1833b212f66e7a3550751
Tony Arcieri
2025-12-11T21:15:51
password-hash: impl `From<phc::Error>` for `Error` (#2124) This is useful within the impls of traits like `PasswordHasher` where the return type is `password_hash::Result<phc::PasswordHash>` but various `phc::Error`s may occur when constructing the `PasswordHash` from the params, salt, and output
diff --git a/password-hash/src/error.rs b/password-hash/src/error.rs index d622943..7651883 100644 --- a/password-hash/src/error.rs +++ b/password-hash/src/error.rs @@ -65,3 +65,22 @@ impl fmt::Display for Error { } impl core::error::Error for Error {} + +#[cfg(feature = "phc")] +impl From<phc::Error> for Error { +...
1
19
0
c45480e68908f7f1b37624cd89be10b35ef63a59
Tony Arcieri
2025-12-11T03:46:16
password-hash: restore `getrandom` feature (#2123) Renames `PasswordHash::hash_password` to `hash_password_with_salt`, and adds a new `getrandom`-gated method to `PasswordHash` called `hash_password`, but which only takes `&self` and `password` as arguments, automatically generating a salt of the recommended length.
diff --git a/Cargo.lock b/Cargo.lock index 80f100a..0c493bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -324,6 +324,7 @@ dependencies = [ name = "password-hash" version = "0.6.0-rc.4" dependencies = [ + "getrandom", "phc", ] @@ -343,6 +344,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" c...
4
37
8
c1a92e9ac52f9201e1a3503b2ecd63007027b157
Tony Arcieri
2025-12-10T19:13:46
password-hash: make `PasswordVerifier<H: ?Sized>` (#2122) Changes the `H` generic parameter of `PasswordVerifier` to allow dynamically sized types. This is useful for `mcf::PasswordHashRef`, which is a newtype for `str`.
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 56719ce..fc71c3f 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -113,7 +113,7 @@ pub trait CustomizedPasswordHasher<H> { /// /// This trait is object safe and can be used to implement abstractions over /// multiple passwo...
1
1
1
875f21bab9580f8507b322bd0e00a8b8878a6980
Tony Arcieri
2025-12-10T16:57:41
password-hash: add `CustomizedPasswordHasher::hash_password_with_params` (#2121) Adds a method that just customizes the params, but using the default algorithm and version.
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 63b2e48..56719ce 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -92,6 +92,17 @@ pub trait CustomizedPasswordHasher<H> { version: Option<Version>, params: Self::Params, ) -> Result<H>; + + /// Comput...
1
11
0
8bb7b93bda624e57359711214b3f12696b2b1db6
Tony Arcieri
2025-12-10T16:50:26
password-hash: relax `FromStr` error bounds (#2120) Changes the bound on `CustomizedPasswordHasher::Params` to remove the `Err = Error` bound on `FromStr`. Instead, the blanket impl of `PasswordVerifier` has been updated to require `Error: From<E>` where `E` is `FromStr::Err`. This allows crates to still use custom ...
diff --git a/password-hash/src/error.rs b/password-hash/src/error.rs index 811072b..d622943 100644 --- a/password-hash/src/error.rs +++ b/password-hash/src/error.rs @@ -18,6 +18,9 @@ pub enum Error { /// Encoding errors (e.g. Base64). EncodingInvalid, + /// Internal error within a password hashing librar...
2
10
2
e7b9861c7890f21e830de96c244ffd253d807e34
Tony Arcieri
2025-12-10T00:39:06
password-hash v0.6.0-rc.4 (#2119)
diff --git a/Cargo.lock b/Cargo.lock index 6b52f5d..80f100a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -322,7 +322,7 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" dependencies = [ "phc", ] diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml ...
2
2
2
3e095217a44c4dbfdae9c874b58ed8558e10dc06
Tony Arcieri
2025-12-10T00:29:23
password-hash: remove `McfHasher::verify_mcf_hash` (#2118) The new way to verify an MCF hash is to use `PasswordVerifier` with `mcf::PasswordHash` as the generic parameter. The `McfHasher` trait is still useful for providing a way to upgrade MCF hashes to PHC, though (however arguably it should have a different name)
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index fe0af79..b99320d 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -152,12 +152,4 @@ pub trait McfHasher { /// MCF hashes are otherwise largely unstructured and parsed according to /// algorithm-specific rules so hash...
1
0
8
e49627e93e4a64fdb8edd96a02a6a0e3c39f7028
Tony Arcieri
2025-12-10T00:24:06
password-hash: use `phc` v0.6.0-rc.0 (#2117) Switches from obtaining the `phc` crate via git to using the initial crate release
diff --git a/Cargo.lock b/Cargo.lock index 5df257c..6b52f5d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -338,8 +338,9 @@ dependencies = [ [[package]] name = "phc" -version = "0.3.0-pre" -source = "git+https://github.com/RustCrypto/formats#1e7caeb8e57b89d5cff1fba6ab500928fb3eccf7" +version = "0.6.0-rc.0" +source = "...
4
5
4
0e4888ff35be0c0cd28ab57cbfad19893a60db14
Tony Arcieri
2025-12-07T04:07:43
password-hash v0.6.0-rc.3 (#2113)
diff --git a/Cargo.lock b/Cargo.lock index 59d940f..20d631b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -322,7 +322,7 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.2" +version = "0.6.0-rc.3" dependencies = [ "base64ct", "getrandom", diff --git a/password-hash/Cargo.toml b/password...
2
2
2
0e0c621161c9b23084855c06f53981ad7ac90ccd
Tony Arcieri
2025-12-07T04:03:44
password-hash: deprecate toplevel `PasswordHash(String)` (#2112) Changes the re-exports to deprecated type aliases, noting that the relevant types should be imported via `password_hash::phc` going forward
diff --git a/Cargo.lock b/Cargo.lock index 45c4eb8..59d940f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -44,9 +44,9 @@ checksum = "d8b59d472eab27ade8d770dcb11da7201c11234bef9f82ce7aa517be028d462b" [[package]] name = "base64ct" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/cr...
2
19
8
9c5a7f6b3c7dddfe1360c0245fb188697fe9e084
Tony Arcieri
2025-12-07T03:40:35
password-hash: add generic `H` param to traits (#2110) Adds a generic `H` parameter to the `(Customized)PasswordHasher` and `PasswordVerifier` traits which specifies the return type and the hash type respectively. A generic parameter is used instead of an associated constant in order to support overlapping impls. Not...
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 66a7078..d25b990 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -49,16 +49,20 @@ use core::{ pub type Version = u32; /// Trait for password hashing functions. -pub trait PasswordHasher { +/// +/// Generic around a passwo...
3
26
21
cc1362e87192a0ae9649e6fadf1bce37e8b21c98
Tony Arcieri
2025-12-07T02:43:23
password-hash: remove lifetime from `Salt` type (#2109) Following #2107, this also removes the lifetime from `Salt`, but also changes its internal representation to be raw bytes after "B64" decoding, with the `SaltString` type handling the "B64" encoded form. This was the last type with a lifetime on `PasswordHash`, ...
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index f6b0ad8..66a7078 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -54,7 +54,7 @@ pub trait PasswordHasher { /// salt value. /// /// Uses the default recommended parameters for a given algorithm. - fn hash_pas...
6
225
155
3f9639ae5edd4360d4efb387da1a213f8707be78
Tony Arcieri
2025-12-06T22:32:04
password-hash: use `StringBuf` for `SaltString` (#2108) Uses the same approach as other stack-allocated strings in this crate
diff --git a/password-hash/src/phc/salt.rs b/password-hash/src/phc/salt.rs index b7523b5..d4b4ae9 100644 --- a/password-hash/src/phc/salt.rs +++ b/password-hash/src/phc/salt.rs @@ -1,9 +1,10 @@ //! Salt string support. -use crate::{Error, Result, errors::InvalidValue, phc::Value}; +use super::{StringBuf, Value}; +us...
1
16
26
dcd3c66232e4c1953f2d7a4d5f5f54b7bacf90a2
Tony Arcieri
2025-12-06T21:40:49
password-hash: remove `phc::Ident` lifetime (#2107) `Ident` is a short string with a max length of 32-bytes. Instead of having a lifetime, we can simply store the 32-bytes as an owned type. This is an incremental step towards removing the lifetime from the `phc::PasswordHash` type. The implementation makes the previ...
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 2d9d966..efa72fb 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -21,6 +21,9 @@ pub enum Error { /// Cryptographic error. Crypto, + /// Out of memory (heap allocation failure). + OutOfMemory, + ...
5
174
93
ac8d6ed0cf25a467ce4f00a235d425ca68b4466a
Tony Arcieri
2025-12-06T00:19:45
password-hash: simplify `CustomizedPasswordHash::Params` (#2106) Uses core traits to handle string serialization, rather than relying on types in `password_hash::phc`
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 074467f..f6b0ad8 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -40,8 +40,10 @@ pub use phc::PasswordHash; #[cfg(feature = "alloc")] pub use phc::PasswordHashString; -use crate::phc::ParamsString; -use core::fmt::Debug; ...
2
32
23
85ce438cffe141361b36492d28e9784070c9df2d
Tony Arcieri
2025-12-05T00:31:33
password-hash: extract `CustomizedPasswordHasher` trait (#2105) Splits out `PasswordHasher::hash_password_customized` into its own separate `CustomizedPasswordHasher` trait. This trait retains the associated `Params` type since that's used as a method argument. This also adds a type alias `Version` for `u32` to use ...
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 6943543..074467f 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -40,11 +40,23 @@ pub use phc::PasswordHash; #[cfg(feature = "alloc")] pub use phc::PasswordHashString; -use crate::phc::{Decimal, Ident, ParamsString, Salt}...
3
34
27
489bb17b86b110535745e96915cbef8992ba3c60
Tony Arcieri
2025-12-04T23:54:26
password-hash: move trait definitions to toplevel (#2104) This change puts the traits front-and-center in the library's implementation, which is what you'd expect for a crate in the "traits" repository
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 66c4ad3..6943543 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -34,14 +34,108 @@ pub use rand_core; pub mod errors; pub mod phc; -mod traits; - -pub use crate::{ - errors::{Error, Result}, - traits::{McfHasher, Pa...
2
101
111
76e826d1dc6de1ad0edc05891b847285a99aefb7
Tony Arcieri
2025-12-04T23:27:54
password-hash: extract `phc` submodule (#2103) Extracts all functionality related to the Password Hashing Competition (PHC) string format into a `phc` submodule. The longer-term goal would be to extract this into its own crate, however that will need some trait redesign, which can be better accomplished by first addi...
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 50dc850..66c4ad3 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -32,335 +32,16 @@ extern crate alloc; pub use rand_core; pub mod errors; +pub mod phc; -mod ident; -mod output; -mod params; -mod salt; mod traits; -mod ...
12
348
336
5f0748747ad3655b07fef850ebf3d0937ae2f2d9
Tony Arcieri
2025-12-02T14:34:50
password-hash: remove `Encoding` enum (#2102) The encoding types in this crate are designed around the PHC String Format which uses "B64", a.k.a. unpadded non-URL-safe Base64. The `Encoding` type was designed to make it possible to use alternative encodings from Modular Crypt Format (MCF), but that doesn't actually m...
diff --git a/password-hash/src/encoding.rs b/password-hash/src/encoding.rs deleted file mode 100644 index 4147309..0000000 --- a/password-hash/src/encoding.rs +++ /dev/null @@ -1,85 +0,0 @@ -//! Base64 encoding variants. - -use base64ct::{ - Base64Bcrypt, Base64Crypt, Base64ShaCrypt, Base64Unpadded as B64, Encoding ...
6
47
170
f17bf09372ad34634b1a8bffb78729483fdfed89
Artyom Pavlov
2025-11-27T18:40:41
cipher: improve `encrypt_padded_vec` methods (#2101)
diff --git a/Cargo.lock b/Cargo.lock index 3ca9a67..45c4eb8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -78,9 +78,9 @@ dependencies = [ [[package]] name = "block-padding" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d28ed5f5f65056148fd25e1a59...
2
68
20
a0819e2fd58ad54459e96c616a473817d90123ec
Tony Arcieri
2025-11-26T03:14:29
crypto-common: add `TryKeyInit` trait (#2097) Adds a trait providing fallible key initialization, similar to the existing `KeyInit` trait, but designed to handle the case that not all bytestrings of a given length represent valid keys. This is primarily useful in the context of public-key cryptography, e.g. scalars r...
diff --git a/crypto-common/src/lib.rs b/crypto-common/src/lib.rs index 3a577fc..ace59a1 100644 --- a/crypto-common/src/lib.rs +++ b/crypto-common/src/lib.rs @@ -153,7 +153,7 @@ pub trait AlgorithmName { fn write_alg_name(f: &mut fmt::Formatter<'_>) -> fmt::Result; } -/// Types which can be initialized from key....
1
37
2
3b50e31f07da8d0d1c85c74324389f9b72f13278
Tony Arcieri
2025-11-24T15:51:15
aead: remove nonce generation APIs (#2098) Replaces them with the `Generate` trait introduced in #2096. Moves documentation about generating random nonces to the `Nonce` type.
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index e950a48..a7afa3c 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -29,7 +29,7 @@ pub use arrayvec; #[cfg(feature = "bytes")] pub use bytes; #[cfg(feature = "rand_core")] -pub use crypto_common::rand_core; +pub use crypto_common::{Generate, rand_core}; pub us...
2
50
75
b8679f5d67bcbfeb75d14d3e25421d7830266d75
Tony Arcieri
2025-11-22T03:44:53
elliptic-curve: enable `basepoint-table` feature on docs.rs (#2095) Ensures the `BasepointTable` type is documented
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 08be906..05d8a8c 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -71,4 +71,4 @@ pem = ["dep:pem-rfc7468", "alloc", "arithmetic", "pkcs8/pem", "sec1/pem"] serde = ["dep:serdect", "alloc", "pkcs8", "sec1/serde"] [packag...
1
1
1
ae425e90903d09e2a69968e209fb2a1f975d7987
Tony Arcieri
2025-11-22T01:26:55
elliptic-curve v0.14.0-rc.17 (#2094)
diff --git a/Cargo.lock b/Cargo.lock index 157ed35..773cb08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -182,7 +182,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-rc.16" +version = "0.14.0-rc.17" dependencies = [ "base16ct", "crypto-bigint", diff --git a/elliptic-curve/Cargo.toml ...
2
2
2
8a04f9de962a2bb1060a4c75c88d34ee9081c57e
Tony Arcieri
2025-11-22T00:17:04
elliptic-curve: use `rustcrypto-ff`/`rustcrypto-group` (#2093) Switches (hopefully temporarily) to our forks of the `ff` and `group` crates containing updates to `rand_core` v0.10.0 prereleases, which allows us to cut crate releases of `elliptic-curve` and all of its dependent crates
diff --git a/Cargo.lock b/Cargo.lock index 89b20de..157ed35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -187,9 +187,7 @@ dependencies = [ "base16ct", "crypto-bigint", "digest", - "ff", "getrandom", - "group", "hex-literal", "hkdf", "hybrid-array", @@ -197,37 +195,14 @@ dependencies = [ "pem-rfc7468", ...
3
42
42
a8701a4463d78a5fbb3cc8bb7f2c6af37a5d4f69
Tony Arcieri
2025-11-09T21:01:21
elliptic-curve: add back `SecretKey::random` with deprecation (#2086) Has people use either the `generate` or `try_from_rng` methods instead.
diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs index 966d06b..5105656 100644 --- a/elliptic-curve/src/scalar/nonzero.rs +++ b/elliptic-curve/src/scalar/nonzero.rs @@ -13,7 +13,7 @@ use core::{ str, }; use ff::{Field, PrimeField}; -use rand_core::TryCryptoRng; +use rand_c...
2
34
4
e12217542a3159d528bf97b5d57e60c6f5662687
Tony Arcieri
2025-11-09T20:23:08
elliptic-curve: `getrandom` feature (#2085) Adds support for generating `SecretKey` and `NonZeroScalar` using the system's cryptographically secure random number generator. Notably this renames the former `SecretKey::random` and `NonZeroScalar::random` methods to `SecretKey::generate` and `NonZeroScalar::generate`, wh...
diff --git a/Cargo.lock b/Cargo.lock index c6722f7..b92766b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -188,6 +188,7 @@ dependencies = [ "crypto-bigint", "digest", "ff", + "getrandom", "group", "hex-literal", "hkdf", diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 43e3acc..1a1cd8c ...
5
18
14
0f89497c9d27c24cc4529082846256acdb02637c
Artyom Pavlov
2025-11-07T17:19:22
Migrate to the released version of block-buffer v0.11 (#2082)
diff --git a/Cargo.lock b/Cargo.lock index be5f875..c6722f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,9 +68,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1" [[package]] name = "block-buffer" -version = "0.11.0-rc.5" +version = "0.11.0" source = "registry+https://github.com/r...
3
12
12
00a29f8f03ae0b32798ea666e4f11953d1480580
Artyom Pavlov
2025-11-07T17:03:09
cipher: fix seeking implementation in the stream cipher wrapper (#2052) The change forbids seeking to the last keystream block and its application. Additionally, unchecked methods added as an escape hatch.
diff --git a/cipher/src/stream.rs b/cipher/src/stream.rs index f616959..baa8fac 100644 --- a/cipher/src/stream.rs +++ b/cipher/src/stream.rs @@ -1,6 +1,6 @@ //! Traits which define functionality of stream ciphers. //! -//! See [RustCrypto/stream-ciphers](https://github.com/RustCrypto/stream-ciphers) +//! See the [Rus...
4
220
118
bd85081709e127b9fa9f885d38252a649f85b581
Tony Arcieri
2025-11-06T20:29:08
elliptic-curve: bump `pkcs8` dependency to v0.11.0-rc.8 (#2080)
diff --git a/Cargo.lock b/Cargo.lock index fb4f0ab..be5f875 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -375,9 +375,9 @@ dependencies = [ [[package]] name = "pkcs8" -version = "0.11.0-rc.7" +version = "0.11.0-rc.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93eac55f10aceed84769df...
2
3
3
1c34c140fda01c501c109d6efefe0ea58ba88369
Arthur Gautier
2025-11-06T05:05:49
password-hash: remove unnecessary expect (#2079)
diff --git a/password-hash/src/salt.rs b/password-hash/src/salt.rs index fca6734..b789181 100644 --- a/password-hash/src/salt.rs +++ b/password-hash/src/salt.rs @@ -197,7 +197,8 @@ impl SaltString { /// Generate a random B64-encoded [`SaltString`] from [`CryptoRng`]. #[cfg(feature = "rand_core")] pub fn ...
1
2
1
e8af70d7513422157590f3f764ddc8f8ca55bf72
Tony Arcieri
2025-11-06T03:08:27
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.10 (#2078)
diff --git a/Cargo.lock b/Cargo.lock index 5c352bc..fb4f0ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -137,8 +137,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.9" -source = "git+https://github.com/RustCrypto/crypto-bigint?branch=rand_core%2Fv0.10.0-rc-2#896b26cc24c96cad5edf957528d0...
3
4
4
166903b30642b3b3054593f8500f37943c1d88c7
Tony Arcieri
2025-11-06T01:14:59
elliptic-curve: bump `hkdf` to v0.13.0-rc.3 (#2077) This notably switches to `EagerHash` for the digest bound
diff --git a/Cargo.lock b/Cargo.lock index 602a247..5c352bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -262,18 +262,18 @@ checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1" [[package]] name = "hkdf" -version = "0.13.0-rc.2" +version = "0.13.0-rc.3" source = "registry+https://github.com/...
3
10
9
3f5fb163636d59f9aad45eacfe9ef4f5d329dc01
Tony Arcieri
2025-11-05T17:27:20
universal-hash v0.6.0-rc.3 (#2075)
diff --git a/Cargo.lock b/Cargo.lock index 8323872..602a247 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -543,7 +543,7 @@ checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5" [[package]] name = "universal-hash" -version = "0.6.0-rc.2" +version = "0.6.0-rc.3" dependencies = [ "crypto-commo...
2
2
2
75ed5ba2c218b4aaea7e268c9b1067ff55ab9993
Tony Arcieri
2025-11-05T15:59:11
signature v3.0.0-rc.5 (#2074) Includes update to `rand_core` v0.10.0 prereleases
diff --git a/Cargo.lock b/Cargo.lock index 74e506a..8323872 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -479,7 +479,7 @@ dependencies = [ [[package]] name = "signature" -version = "3.0.0-rc.4" +version = "3.0.0-rc.5" dependencies = [ "digest", "rand_core", diff --git a/signature/Cargo.toml b/signature/Cargo.to...
2
2
2
7ad6094bb6af07d959deead90fde2e9d91b3a3c1
Tony Arcieri
2025-11-05T15:45:41
password-hash v0.6.0-rc.2 (#2073)
diff --git a/Cargo.lock b/Cargo.lock index 15c0c6a..74e506a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -355,7 +355,7 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.1" +version = "0.6.0-rc.2" dependencies = [ "base64ct", "getrandom", diff --git a/password-hash/Cargo.toml b/password...
2
2
2
c4813e207d5364df394bfc7117f6e8f947c5f3c3
Tony Arcieri
2025-11-05T15:39:15
kem v0.4.0-pre.2 (#2072)
diff --git a/Cargo.lock b/Cargo.lock index cda86f4..15c0c6a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -301,7 +301,7 @@ dependencies = [ [[package]] name = "kem" -version = "0.4.0-pre.1" +version = "0.4.0-pre.2" dependencies = [ "crypto-common", "rand_core", diff --git a/kem/Cargo.toml b/kem/Cargo.toml index ...
2
2
2
e7e477a12fd2ec6e616645a2184c8feaaba4ab8e
Tony Arcieri
2025-11-05T15:33:52
digest v0.11.0-rc.4 (#2071)
diff --git a/Cargo.lock b/Cargo.lock index 8a694c3..cda86f4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "digest" -version = "0.11.0-rc.3" +version = "0.11.0-rc.4" dependencies = [ "blobby", "block-buffer", diff --git a/crypto/Cargo.toml b/crypto/Cargo.toml i...
5
7
7
f0a968544cc024542f8671dd441839704dfcc94f
Tony Arcieri
2025-11-05T15:27:42
password-hash: restore/fix `getrandom` feature (#2070) It seems it was never properly converted to `os_rng`. Adds (back) a `getrandom` feature and a way to generate `SaltString`s using the system random number generator.
diff --git a/Cargo.lock b/Cargo.lock index e51079b..8a694c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -358,6 +358,7 @@ name = "password-hash" version = "0.6.0-rc.1" dependencies = [ "base64ct", + "getrandom", "rand_core", "subtle", ] diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml index d172...
3
12
4
0ffd8455d730f3551f2a3fa2f3a6e783775c77f3
Tony Arcieri
2025-11-05T15:18:58
digest: `getrandom` feature (#2069) Renames the (seemingly broken?) `os_rng` feature back to `getrandom` and actually activates the corresponding feature in `crypto-common`
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 187a118..e24e3c7 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -27,7 +27,7 @@ default = ["block-api"] block-api = ["block-buffer"] # Enable block API traits mac = ["subtle"] # Enable MAC traits rand_core = ["crypto-common/rand_core"] # Enable rando...
1
1
1
4da7e93600423ed19d56ea5c359878cef7d577bd
Tony Arcieri
2025-11-05T15:12:33
cipher v0.5.0-rc.2 (#2068)
diff --git a/Cargo.lock b/Cargo.lock index 2f147a9..e51079b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.6.0-rc.2" +version = "0.6.0-rc.3" dependencies = [ "arrayvec", "blobby", @@ -99,7 +99,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111...
2
3
3
d9152e025e0c0bc7527eb6175b82d7c55bcca6fb
Tony Arcieri
2025-11-05T15:06:50
aead v0.6.0-rc.3 (#2067)
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index f5519dc..d17943a 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aead" -version = "0.6.0-rc.2" +version = "0.6.0-rc.3" authors = ["RustCrypto Developers"] edition = "2024" rust-version = "1.85"
1
1
1
5f240a5c26775fd694de783beeda13dbc0e594b2
Tony Arcieri
2025-11-05T14:37:32
aead+cipher: bump `inout` to v0.2 (#2066)
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index 54167ef..f5519dc 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -17,7 +17,7 @@ such as AES-GCM as ChaCha20Poly1305, which provide a high-level API [dependencies] crypto-common = { version = "0.2.0-rc.5", path = "../crypto-common" } -inout = "0.2.0-rc.6" +i...
2
2
2
7e2aaa5062d733dce2e726418f41266b87f9325c
Tony Arcieri
2025-11-05T14:30:51
crypto-common v0.2.0-rc.5 (#2065) Includes update to `rand_core` v0.10.0 prereleases
diff --git a/Cargo.lock b/Cargo.lock index bccc725..2f147a9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -149,7 +149,7 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.4" +version = "0.2.0-rc.5" dependencies = [ "getrandom", "hybrid-array", diff --git a/aead/Cargo.toml b/aead/Cargo.to...
8
8
8
db3d49d54a2e577c316f1473184e57ef409760e2
Tony Arcieri
2025-11-05T14:19:11
Bump `rand_core` to v0.10.0-rc-2 (#2063)
diff --git a/Cargo.lock b/Cargo.lock index 5c0a2dc..bccc725 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -138,8 +138,7 @@ dependencies = [ [[package]] name = "crypto-bigint" version = "0.7.0-rc.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f4b0fda9462026d53a3ef37c5ec283639ee8494a1...
8
19
21
d9606220a86fd4d5b8d1481fb5fc2485e06aa818
Tony Arcieri
2025-11-05T13:56:02
aead+cipher+crypto-common: depend on `getrandom` directly (#2064) Replaces usages of `OsRng` with `getrandom`, and `OsError` with `getrandom::Error`. In `rand_core` v0.10 prereleases, `OsRng` has been moved to the `rand` crate (at least for now). The `rand` crate also depends on `chacha20`, so if we were to depend on...
diff --git a/Cargo.lock b/Cargo.lock index 98dfc77..5c0a2dc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -152,6 +152,7 @@ dependencies = [ name = "crypto-common" version = "0.2.0-rc.4" dependencies = [ + "getrandom", "hybrid-array", "rand_core", ] diff --git a/aead/Cargo.toml b/aead/Cargo.toml index c1209c8..187...
7
26
25
726beba16415ae151697804f98c9a46508e59819
Tony Arcieri
2025-10-30T23:48:25
kem: add associated `Encapsulator` to `Decapsulate` (#2055) Otherwise there's no way to generically access one from the other
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index 2f58cc2..cd5314c 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -29,9 +29,15 @@ pub trait Encapsulate<EK, SS> { /// Often, this will just be a secret key. But, as with [`Encapsulate`], it can be a bundle /// of secret keys, or it can include a sender's private k...
1
6
0
0ba3c983654a31077b0f1da3a3233e58f4a2230a
Tony Arcieri
2025-10-30T20:24:25
kem: re-export `typenum::consts` (#2058) Access to typenum constants is needed to impl `KeySizeUser`
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index d945c7f..2f58cc2 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -8,7 +8,7 @@ #![forbid(unsafe_code)] #![warn(missing_docs, unused_qualifications, missing_debug_implementations)] -pub use crypto_common::{KeyInit, KeySizeUser}; +pub use crypto_common::{KeyInit, ...
1
1
1
d4e209545a45753c22718c3b81120376c4b4c383
Tony Arcieri
2025-10-30T20:16:44
kem: re-export `KeyInit` and `KeySizeUser` from `crypto-common` (#2057) Encourages the use of these traits for initializing decapsulators that impl the `Decapsulate` type. (This is effectively #2056 without the supertrait bound)
diff --git a/Cargo.lock b/Cargo.lock index c89e68a..4ffdcaf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -306,6 +306,7 @@ dependencies = [ name = "kem" version = "0.4.0-pre.0" dependencies = [ + "crypto-common", "rand_core", "zeroize", ] diff --git a/kem/Cargo.toml b/kem/Cargo.toml index d9920cb..29edabe 100644 ...
3
4
0
4948cb50fda6b6a8ce3f4115352b90fa79b8e922
Tony Arcieri
2025-10-30T18:04:39
kem: remove `html_root_url` This is auto-populated to point at docs.rs
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index 45a693e..efa2696 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -3,8 +3,7 @@ #![cfg_attr(docsrs, feature(doc_cfg))] #![doc( html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/8f1a9894/logo.svg", - html_favicon_url = "https://raw.githubus...
1
1
2
046afa0d2194e66e9f0c3c1184d7a0a56a2f4617
Tony Arcieri
2025-10-30T17:22:27
kem v0.4.0-pre.0 (#2054) Republishing with a bumped minor version to address #2053, since the current release of `ml-kem` (v0.2.x) depends on `v0.3.0-pre.0`.
diff --git a/Cargo.lock b/Cargo.lock index 15ca665..c89e68a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -304,7 +304,7 @@ dependencies = [ [[package]] name = "kem" -version = "0.3.0-pre.2" +version = "0.4.0-pre.0" dependencies = [ "rand_core", "zeroize", diff --git a/kem/Cargo.toml b/kem/Cargo.toml index 766048...
2
2
2
d4d18189b95320a135a97c90801521c7a68a5510
Tony Arcieri
2025-10-27T15:50:35
kem v0.3.0-pre.2 (#2051)
diff --git a/Cargo.lock b/Cargo.lock index 1cdb2f7..c3f601a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -303,7 +303,7 @@ dependencies = [ [[package]] name = "kem" -version = "0.3.0-pre.1" +version = "0.3.0-pre.2" dependencies = [ "rand_core", "zeroize", diff --git a/kem/Cargo.toml b/kem/Cargo.toml index d566b4...
2
2
2
13941dc62a207c34d0889ebe6e64ae0ae7616d4b
Tony Arcieri
2025-10-26T19:18:18
kem: use `TryCryptoRng` for `encapsulate` (#2049) The method is fallible anyway, so errors should be propagated rather than panicking
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index 5c7e892..45a693e 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -10,7 +10,7 @@ #![warn(missing_docs, unused_qualifications, missing_debug_implementations)] use core::fmt::Debug; -use rand_core::CryptoRng; +use rand_core::TryCryptoRng; /// A value that can b...
1
2
2
83720f22d832a57b9d1c619998aaacc65b2610b9
Tony Arcieri
2025-10-25T22:09:44
kem v0.3.0-pre.1 (#2050)
diff --git a/Cargo.lock b/Cargo.lock index 44f0951..1cdb2f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -303,7 +303,7 @@ dependencies = [ [[package]] name = "kem" -version = "0.3.0-pre.0" +version = "0.3.0-pre.1" dependencies = [ "rand_core", "zeroize", diff --git a/kem/Cargo.toml b/kem/Cargo.toml index 8c4167...
2
2
2