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
d4c0d469169b2c8238efdb99fe7ecc7288de710c
Tony Arcieri
2026-04-09T14:49:12
elliptic-curve: add `ops::MulVartime` trait and bound `Scalar` (#2379) Adds a variable-time equivalent of the `Mul` trait with a corresponding `mul_vartime` method. This provides a place to plug in wNAF which is otherwise always available (and can fall back on constant-time operations if the `alloc` feature isn't enab...
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index 7a0025e..8622d4b 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -3,7 +3,7 @@ use crate::{ Curve, CurveGroup, Error, FieldBytes, Group, NonZeroScalar, PrimeCurve, ScalarValue, ctutil...
3
48
3
4f084d393e5ed3fdff56dc4cf3093e815516842a
Tony Arcieri
2026-04-09T14:15:10
elliptic-curve: use `*Vartime` as a suffix (#2378) As suggested in #2377, this follows precedent from `crypto-bigint` and makes `*Vartime` a suffix in trait and type names, so we can use `*_vartime` method names and they will be consistent with the trait names.
diff --git a/elliptic-curve/src/point.rs b/elliptic-curve/src/point.rs index e57491b..bcc7616 100644 --- a/elliptic-curve/src/point.rs +++ b/elliptic-curve/src/point.rs @@ -5,7 +5,7 @@ mod lookup_table; mod non_identity; #[cfg(all(feature = "alloc", feature = "basepoint-table"))] -pub use self::basepoint_table::var...
2
8
8
caa96381bcdf6de5ffaaa49114c05aa5d33ce98f
Tony Arcieri
2026-04-09T13:28:23
elliptic-curve: add `VartimeBasepointTable` (#2374) Uses the same strategy as our existing `BasepointTable` type, i.e. using either `std::sync::LazyLock` if `std` is available, or if not optionally falling back on `once_cell` with the `critical-section` feature enabled, to enable a lazily computed basepoint table with...
diff --git a/elliptic-curve/src/point.rs b/elliptic-curve/src/point.rs index 916d6f3..e57491b 100644 --- a/elliptic-curve/src/point.rs +++ b/elliptic-curve/src/point.rs @@ -4,11 +4,12 @@ mod basepoint_table; mod lookup_table; mod non_identity; -#[cfg(feature = "arithmetic")] -pub use {self::non_identity::NonIdentit...
2
76
10
ac679706c5fd0255a5b585ffe4303c7daa4b7a5c
Tony Arcieri
2026-04-09T03:46:32
elliptic-curve: add `PointWithBasepointTable` trait (#2376) Adds a trait with an associated `BASEPOINT_TABLE` constant which provides a place to access a particular curve group's `BasepointTable` from a generic context.
diff --git a/elliptic-curve/src/point.rs b/elliptic-curve/src/point.rs index e3153cf..916d6f3 100644 --- a/elliptic-curve/src/point.rs +++ b/elliptic-curve/src/point.rs @@ -8,7 +8,7 @@ mod non_identity; pub use {self::non_identity::NonIdentity, lookup_table::LookupTable}; #[cfg(feature = "basepoint-table")] -pub us...
2
8
2
cf5b81033c8179707d54d560b9185fca458fe5e3
Tony Arcieri
2026-04-08T22:07:11
elliptic-curve v0.14.0-rc.30 (#2373) Includes preliminary support for wNAF
diff --git a/Cargo.lock b/Cargo.lock index 37be0be..0b50954 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -229,7 +229,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-rc.29" +version = "0.14.0-rc.30" dependencies = [ "base16ct", "crypto-bigint", diff --git a/elliptic-curve/Cargo.toml ...
2
2
2
2b8c0c5e058885ec3da91de9d7249fd5529f7393
Tony Arcieri
2026-04-08T21:36:28
elliptic-curve: bump `ff`/`group` dependencies to v0.14.0-rc.1 (#2372) These notably include the workarounds to make wNAF work
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 04d08ea..2b0155b 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -27,8 +27,8 @@ zeroize = { version = "1.7", default-features = false } # optional dependencies digest = { version = "0.11", optional = true } -ff = { ve...
1
2
2
2501d4f5454caaf2a22de6ccc33467b9c3282260
Tony Arcieri
2026-04-07T20:23:11
password-hash: change bounds for PHC verify blanket impl [BREAKING] (#2370) Changes the `TryFrom` bound for constructing `T::Params` to accept a full `phc::PasswordHash` as the input type, rather than just its `phc::ParamsString`. This is actually how it used to work in prior releases, but regressed: https://docs.rs...
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 98b9ed9..e411715 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -196,7 +196,7 @@ pub trait PasswordVerifier<H: ?Sized> { #[cfg(feature = "phc")] impl<T: CustomizedPasswordHasher<phc::PasswordHash>> PasswordVerifier<phc::Pa...
1
2
2
13beea5bab69eccd5ecf45081c0541a3175d5f02
Tony Arcieri
2026-04-03T01:30:46
kem: add serialization docs (#2355)
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index bd9a9a5..508005b 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -49,6 +49,17 @@ //! # } //! ``` //! +//! ## Serialization +//! +//! The [`KeyInit`] and [`KeyExport`] traits can be used to load and store encoded decapsulation +//! and encapsulation keys from the...
1
11
0
ea57736ece709174832ff7be0c1ff4f777b9a9f1
Tony Arcieri
2026-04-03T01:18:28
kem: add basic usage with example (#2354)
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index 5a1e64f..bd9a9a5 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -8,6 +8,49 @@ #![forbid(unsafe_code)] #![warn(missing_docs, unused_qualifications, missing_debug_implementations)] +//! # Usage +//! +//! There are two roles in a KEM: +//! +//! - Encapsulator: th...
1
43
0
1c96506e27d9e6bb8531f7c19b06112597692d02
Tony Arcieri
2026-03-30T14:48:29
elliptic-curve: bump `hkdf` dependency to v0.13 (#2349) Release PR: RustCrypto/KDFs#195
diff --git a/Cargo.lock b/Cargo.lock index fb09e38..521a4c6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -311,17 +311,18 @@ checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1" [[package]] name = "hkdf" -version = "0.13.0-rc.5" +version = "0.13.0" source = "registry+https://github.com/rust-...
3
6
6
b7c764a79f8e6863d9284823e7cb4a5223acebfa
Tony Arcieri
2026-03-25T19:30:23
Cargo.lock: bump `crypto-bigint` to v0.7.3 (#2346) This clears the security audit
diff --git a/Cargo.lock b/Cargo.lock index a6d0935..fb09e38 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -170,9 +170,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.1" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fde2467e74147f492aebb8349...
1
2
2
a573881c03e38423d0ce24a8a908c26d22125bb5
Tony Arcieri
2026-03-25T18:45:08
digest: bump `sha2` `dev-dependency` to v0.11 (#2345)
diff --git a/Cargo.lock b/Cargo.lock index 211d383..a6d0935 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -141,9 +141,9 @@ checksum = "5ef0c543070d296ea414df2dd7625d1b24866ce206709d8a4a424f28377f5861" [[package]] name = "cpufeatures" -version = "0.2.17" +version = "0.3.0" source = "registry+https://github.com/rust-l...
2
5
5
2465f98a7ebc9f1c8d10dab0e5f30113505a1826
Artyom Pavlov
2026-03-13T16:45:28
digest: bump version to v0.11.2 (#2343)
diff --git a/Cargo.lock b/Cargo.lock index 1af1edc..211d383 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -216,7 +216,7 @@ dependencies = [ [[package]] name = "digest" -version = "0.11.1" +version = "0.11.2" dependencies = [ "blobby", "block-buffer", diff --git a/digest/Cargo.toml b/digest/Cargo.toml index bc08a...
2
2
2
6954eabaafdc52bb01a9a15644327bc33ffe2434
Tony Arcieri
2026-03-10T17:10:48
elliptic-curve v0.14.0-rc.29 (#2340)
diff --git a/Cargo.lock b/Cargo.lock index 04e120b..5dce6f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -170,9 +170,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f438b626cb7c9dd48a613a982...
2
4
4
a250cbd123625097feaab33d479ab10381c88775
Tony Arcieri
2026-03-10T16:58:50
elliptic-curve: bump `sec1` to v0.8 (#2339) Release PR: RustCrypto/formats#2259
diff --git a/Cargo.lock b/Cargo.lock index a33486e..04e120b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -579,9 +579,9 @@ dependencies = [ [[package]] name = "sec1" -version = "0.8.0-rc.13" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2400ed44a13193820aa528a19f3...
2
3
3
866ef69a45640fbc206f6d76caed0a173428f9d4
Tony Arcieri
2026-03-09T23:21:56
password-hash: add `Error::RngFailure` (#2337) Fixes a TODO by adding a specific error variant for RNG failures
diff --git a/password-hash/src/error.rs b/password-hash/src/error.rs index eb290b8..d807c25 100644 --- a/password-hash/src/error.rs +++ b/password-hash/src/error.rs @@ -39,6 +39,9 @@ pub enum Error { /// Invalid password. PasswordInvalid, + /// Random number generator failure. + RngFailure, + ///...
1
5
2
ae7d4bee2aebed8c7f1a2dcae82db37ab02b3714
Tony Arcieri
2026-03-09T23:18:17
password-hash: rustdoc fixups (#2336)
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index c24f8ec..98b9ed9 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -133,12 +133,12 @@ pub trait PasswordHasher<H> { /// Trait for password hashing functions which support customization. /// -/// Generic around a password ha...
1
10
10
35e0e9ab4a9c8d79ae256f41ccb167e8405a50ba
Tony Arcieri
2026-03-09T22:54:18
password-hash: remove `McfHasher` trait (#2334) The crate is now generic around password hash string formats, so having an MCF-specific trait like this doesn't make sense. The functionality for upgrading MCF hashes to PHC hashes using algorithm-specific rules is worth retaining, but we can probably move this trait or...
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index adde8fd..c24f8ec 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -224,26 +224,6 @@ where } } -/// Trait for password hashing algorithms which support the legacy -/// [Modular Crypt Format (MCF)][MCF]. -/// -/// [MCF]:...
1
0
20
604171bdd8d123356a2897488e573435ff37a555
Tony Arcieri
2026-03-09T22:34:18
password-hash: enable and fix workspace-level lints (#2333) Note: lint config was added in #2270
diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml index 0793e91..38ba951 100644 --- a/password-hash/Cargo.toml +++ b/password-hash/Cargo.toml @@ -26,5 +26,8 @@ alloc = ["phc?/alloc"] getrandom = ["dep:getrandom", "phc?/getrandom"] rand_core = ["dep:rand_core", "phc?/rand_core"] +[lints] +workspace = ...
3
52
7
42f8110b60130ee04605f866ed8b75caec980829
Tony Arcieri
2026-03-09T22:14:48
password-hash: bump `phc` dependency to v0.6 (#2332) Release PR: RustCrypto/formats#2255
diff --git a/Cargo.lock b/Cargo.lock index f070b14..9eddf78 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -467,14 +467,14 @@ dependencies = [ [[package]] name = "phc" -version = "0.6.0-rc.1" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71d390c5fe8d102c2c18ff39f1e72...
2
4
4
efe6df2d250bd69724d471fe0c26d232e2768c2a
Tony Arcieri
2026-03-08T19:55:52
elliptic-curve: bump `digest` requirement to v0.11 (#2331) Release PR: #2300
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 8159052..994ab22 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -26,7 +26,7 @@ subtle = { version = "2.6", default-features = false } zeroize = { version = "1.7", default-features = false } # optional dependencies -d...
1
1
1
464b5edea27ad0d354c354bd7ee08eb4b1c90bde
Tony Arcieri
2026-03-08T19:38:17
elliptic-curve: bump `crypto-bigint` to v0.7 final release (#2330) Release PR: RustCrypto/crypto-bigint#1218
diff --git a/Cargo.lock b/Cargo.lock index 0b85488..f070b14 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -170,9 +170,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.28" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96dacf199529fb801ae6...
2
3
8
37ae13c883aea527cc4f06fecbdff2f79fbdc776
Tony Arcieri
2026-02-27T15:43:56
universal-hash: replace `subtle` with `ctutils` (#2324) See #2275
diff --git a/Cargo.lock b/Cargo.lock index 103c133..9c8e787 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -736,7 +736,7 @@ name = "universal-hash" version = "0.6.0" dependencies = [ "crypto-common", - "subtle", + "ctutils", ] [[package]] diff --git a/universal-hash/Cargo.toml b/universal-hash/Cargo.toml index ccf...
3
3
3
b7a3bbfef1bea8fe765a9203c3956f997c9a43f9
Tony Arcieri
2026-02-26T15:30:04
universal-hash: enable and fix workspace-level lints (#2318) Note: lint config was added in #2270
diff --git a/universal-hash/Cargo.toml b/universal-hash/Cargo.toml index b9c1de2..975a9ac 100644 --- a/universal-hash/Cargo.toml +++ b/universal-hash/Cargo.toml @@ -16,5 +16,8 @@ description = "Traits which describe the functionality of universal hash functio common = { version = "0.2", package = "crypto-common" } su...
2
6
0
931a70d27cad7c434654e3e0ccf8f0696f896c42
Artyom Pavlov
2026-02-25T15:32:32
aead: bump `bytes` dependency to v1.11.1 (#2315) The lower versions are subject to [RUSTSEC-2026-0007], which results in a warning from deps.rs. [RUSTSEC-2026-0007]: https://rustsec.org/advisories/RUSTSEC-2026-0007.html
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index 9dc4772..c3937a9 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -22,7 +22,7 @@ inout = "0.2.2" # optional dependencies arrayvec = { version = "0.7", optional = true, default-features = false } blobby = { version = "0.4", optional = true } -bytes = { version...
1
1
1
3ffdc4eababb1a0454d441b08e6637e367762cee
Artyom Pavlov
2026-02-25T15:25:44
elliptic-curve: fix `clippy::unnecessary_safety_comment` lint (#2314)
diff --git a/elliptic-curve/src/point/non_identity.rs b/elliptic-curve/src/point/non_identity.rs index 4717ab3..f6fee94 100644 --- a/elliptic-curve/src/point/non_identity.rs +++ b/elliptic-curve/src/point/non_identity.rs @@ -23,7 +23,8 @@ use crate::{BatchNormalize, CurveArithmetic, CurveGroup, NonZeroScalar, Scalar}; ...
2
4
2
e42238d7f7513ec8a956526614abf071f3857188
Tony Arcieri
2026-02-18T00:33:02
elliptic-curve: enable and fix workspace-level lints (#2308) Note: lint config was added in #2270
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 8f1dc10..d3b48dd 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -75,5 +75,8 @@ pkcs8 = ["dep:pkcs8", "sec1"] pem = ["dep:pem-rfc7468", "alloc", "arithmetic", "pkcs8/pem", "sec1/pem"] serde = ["dep:serdect", "alloc", "p...
14
72
37
f239f731b1d7a1f65225f64bc036374287af4a30
Tony Arcieri
2026-02-17T23:06:36
aead: remove lints from `lib.rs` (#2307) These are being sourced from the workspace-level as of #2306
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index 628b4e1..bc69494 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -6,12 +6,6 @@ html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/8f1a9894/logo.svg" )] #![forbid(unsafe_code)] -#![warn( - clippy::unwrap_used, - missing_docs, - ...
1
0
6
d92139eba71e3b06f33aecd4981f961dc50cbc7c
Tony Arcieri
2026-02-17T22:20:49
aead: enable and fix workspace-level lints (#2306) Added in #2270. See also: #2279, #2298
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index b123162..9dc4772 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -31,5 +31,8 @@ dev = ["blobby", "alloc"] getrandom = ["common/getrandom"] rand_core = ["common/rand_core"] +[lints] +workspace = true + [package.metadata.docs.rs] all-features = true diff --...
4
50
3
cb66cffc54ca3d61d993f165452bd0a4c03e06bc
Tony Arcieri
2026-02-13T00:34:48
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.27 (#2303)
diff --git a/Cargo.lock b/Cargo.lock index 575b405..f9f1a6b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -170,9 +170,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.25" +version = "0.7.0-rc.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cba9eeeb213f7f...
2
3
3
0d0fdbee8ad67b033108406bee34c5a8b612ffde
Tony Arcieri
2026-02-12T19:06:43
digest: use `dep:` for `block-buffer` and `const-oid` (#2302) These were previously implicitly features, even though the actual features that activate them are `block-api` and `oid` respectively. This commit makes them just dependencies so they have no associated crate features except `block-api` and `oid`.
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 252d03d..cfd73a8 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -27,14 +27,14 @@ sha2 = "0.11.0-rc.5" [features] default = ["block-api"] -block-api = ["block-buffer"] # Enable block API traits +alloc = [] +block-api = ["dep:block-buffer"] # Enable ...
3
9
9
5802c8f8ee7f4f6632e8c93f91b9de89c6f79bf3
Tony Arcieri
2026-02-12T00:24:03
digest v0.11.0-rc.12 (#2299) I think it'd be good to get one last release candidate out with the change from #2292 to ensure that's not going to cause any unanticipated issues prior to a final release
diff --git a/Cargo.lock b/Cargo.lock index 4291687..d4de953 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -216,7 +216,7 @@ dependencies = [ [[package]] name = "digest" -version = "0.11.0-rc.11" +version = "0.11.0-rc.12" dependencies = [ "blobby", "block-buffer", diff --git a/digest/Cargo.toml b/digest/Cargo.toml...
2
2
2
81316035ddbd559d2c62dfafd65989b17b0e774f
Tony Arcieri
2026-02-11T22:32:30
digest: enable and fix workspace-level lints (#2298)
diff --git a/digest/Cargo.toml b/digest/Cargo.toml index 8fb938b..18a7938 100644 --- a/digest/Cargo.toml +++ b/digest/Cargo.toml @@ -36,5 +36,8 @@ zeroize = ["dep:zeroize", "block-buffer?/zeroize"] alloc = [] dev = ["blobby"] +[lints] +workspace = true + [package.metadata.docs.rs] all-features = true diff --git a...
8
35
14
8e9803243bc2295f5b93a4ec8af7f72564e4a95f
GarmashAlex
2026-02-11T22:16:41
elliptic-curve: optimize ScalarValue parsing by using from_bytes directly (#2297) Previously, FromStr and Deserialize impls for ScalarValue were calling from_slice(&bytes) even though bytes was already a FieldBytes<C> array. This caused unnecessary runtime length checks via Array::try_from(), which always succeeds for...
diff --git a/elliptic-curve/src/scalar/value.rs b/elliptic-curve/src/scalar/value.rs index 4c431b6..ba1a896 100644 --- a/elliptic-curve/src/scalar/value.rs +++ b/elliptic-curve/src/scalar/value.rs @@ -451,7 +451,7 @@ where fn from_str(hex: &str) -> Result<Self> { let mut bytes = FieldBytes::<C>::default()...
1
4
2
6514b1fd39c3195ef46022366a72258692752f08
sashass1315
2026-02-10T14:49:48
refactor: eliminate byte round-trip in NonZeroScalar to ScalarValue conversion (#2296) The `From<&NonZeroScalar<C>>` for `ScalarValue<C>` implementation was converting through a byte representation: `to_repr` -> `from_bytes`, which performs unnecessary encode-decode-validate steps. Since `CurveArithmetic::Scalar` alr...
diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs index 318bab6..a5a4ac2 100644 --- a/elliptic-curve/src/scalar/nonzero.rs +++ b/elliptic-curve/src/scalar/nonzero.rs @@ -212,7 +212,7 @@ where C: CurveArithmetic, { fn from(scalar: &NonZeroScalar<C>) -> ScalarValue<C> { -...
1
1
1
af1262ba526375186e6ea5400cf406ebad371770
Artyom Pavlov
2026-02-09T14:52:30
aead: remove broken dyn-compatibility tests (#2289) The "tests" fail on Nightly and did nothing on existing stable toolchains. It looks like specifying prefix using associated constants completely breaks dyn-compatibility since it's currently impossible to pin associated constant in the same way as we do with associat...
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index 4e8daf3..f12cddc 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -484,17 +484,3 @@ impl<const N: usize> Buffer for arrayvec::ArrayVec<u8, N> { arrayvec::ArrayVec::truncate(self, len); } } - -#[cfg(test)] -mod tests { - use super::*; - - ///...
1
0
14
c2deb38fd96991e9d6496481b044e3244471e3af
Jack Lloyd
2026-02-06T21:44:22
Add lincomb_vartime function to LinearCombination trait (#2286) See RustCrypto/elliptic-curves#1656
diff --git a/elliptic-curve/src/ops.rs b/elliptic-curve/src/ops.rs index de87b58..84dddd6 100644 --- a/elliptic-curve/src/ops.rs +++ b/elliptic-curve/src/ops.rs @@ -172,6 +172,15 @@ where .map(|(point, scalar)| point * scalar) .sum() } + + /// Calculates `x1 * k1 + ... + xn * kn`. + ...
1
9
0
6a95ecca40d2471f362df0ddc637905cf1695377
Tony Arcieri
2026-02-05T22:39:58
kem v0.3.0-rc.6 (#2285) One more release for the `FromSeed` trait (#2284), but this should really hopefully be it, with every part of KEMs as a construction now finally covered
diff --git a/Cargo.lock b/Cargo.lock index 349e331..4291687 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -378,7 +378,7 @@ version = "0.1.0" [[package]] name = "kem" -version = "0.3.0-rc.5" +version = "0.3.0-rc.6" dependencies = [ "crypto-common", "rand_core", diff --git a/kem/Cargo.toml b/kem/Cargo.toml index f...
2
2
2
544e92822f4c59c597d5225dd88f1c064f771c9f
Tony Arcieri
2026-02-05T22:16:24
kem: add `FromSeed` trait (#2284) Adds a trait for initializing a KEM keypair deterministically and infallibly from a seed value, as is supported by pretty much all of the NIST PQcrypto KEM submissions. The trait is blanket impl'd for any type which impls the `Kem` trait and has a `DecapsulationKey` which supports `K...
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index ccdadc5..5a1e64f 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -20,6 +20,9 @@ use rand_core::CryptoRng; #[cfg(feature = "getrandom")] use common::getrandom::{SysRng, rand_core::UnwrapErr}; +/// Seed value which can be used to deterministically initialize a KE...
1
49
18
ccd4c3dec0a6d535c96bdef8680bd89a591c985f
Tony Arcieri
2026-02-05T17:40:21
kem v0.3.0-rc.5 (#2283) Includes `Decapsulate`/`Encapsulate` changes from #2282 This should hopefully be the last `.rc` before a final stable release, as I'm otherwise happy with the API now
diff --git a/Cargo.lock b/Cargo.lock index f964fb6..349e331 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -378,7 +378,7 @@ version = "0.1.0" [[package]] name = "kem" -version = "0.3.0-rc.4" +version = "0.3.0-rc.5" dependencies = [ "crypto-common", "rand_core", diff --git a/kem/Cargo.toml b/kem/Cargo.toml index 3...
2
2
2
62a42bccc4d0d3934a0d7e9e737127fab8585e83
Tony Arcieri
2026-02-05T15:55:09
kem: move `Kem` for `*Decapsulate`/`Encapsulate` to associated type (#2282) Also adds (back) a `Decapsulator` trait. This is effectively a followup to #2243 which added the `Kem` trait but made it a generic argument to `*Decapsulate`/`Encapsulate`, and removed the previous `Decapsulator` trait. Having it be a generi...
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index da02d50..ccdadc5 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -43,11 +43,11 @@ pub type Ciphertext<K> = array::Array<u8, <K as Kem>::CiphertextSize>; pub trait Kem: Copy + Clone + Debug + Default + Eq + Ord + Send + Sync + 'static { /// KEM decryption key ...
1
34
16
8e54074360e0fcf4082c8666e10c98f009985081
Tony Arcieri
2026-02-04T17:41:58
cipher: use workspace level `clippy` config (#2279) Enables the workspace-level config added in #2270 and fixes violations
diff --git a/cipher/Cargo.toml b/cipher/Cargo.toml index b5013ff..cd73127 100644 --- a/cipher/Cargo.toml +++ b/cipher/Cargo.toml @@ -28,11 +28,13 @@ hex-literal = "1" alloc = [] block-padding = ["inout/block-padding"] stream-wrapper = ["block-buffer"] -# Enable random key and IV generation methods getrandom = ["com...
11
93
32
bb81d90f9069a50b19a0afa9aed8b1682b022c22
Artyom Pavlov
2026-02-03T21:29:28
crypto-common: tweak `TryKeyInit` docs (#2274)
diff --git a/crypto-common/src/lib.rs b/crypto-common/src/lib.rs index 3bf27e4..43f3816 100644 --- a/crypto-common/src/lib.rs +++ b/crypto-common/src/lib.rs @@ -277,14 +277,13 @@ pub trait TryKeyInit: KeySizeUser + Sized { /// Create new value from a fixed-size key. /// /// # Errors - /// - if the key...
1
2
3
31e0c9d46304f8c64b54b33940f816a6d4e1494a
Tony Arcieri
2026-02-03T21:16:46
crypto-common: remove commented-out code (#2272) ...regarding a currently impossible blanket impl. I moved it to a tracking issue here: #2271
diff --git a/crypto-common/src/lib.rs b/crypto-common/src/lib.rs index 2ee4fe5..3bf27e4 100644 --- a/crypto-common/src/lib.rs +++ b/crypto-common/src/lib.rs @@ -368,29 +368,6 @@ where } } -// Unfortunately this blanket impl is impossible without mutually -// exclusive traits, see: https://github.com/rust-lang/r...
1
0
23
9189c83ca86f2809e3ffd3becd1da678b7e73959
Tony Arcieri
2026-02-03T15:19:21
crypto-common: bump `hybrid-array` to v0.4.7 (#2268) Ensures every crate depending on `crypto-common` gets the functionality of this release at a baseline (e.g. in a `minimal-versions` scenario)
diff --git a/Cargo.lock b/Cargo.lock index 76d40a8..8bce408 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -319,9 +319,9 @@ dependencies = [ [[package]] name = "hybrid-array" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b41fb3dc24fe72c2e3a4685eed5...
2
3
3
3e8d875ea7170fe10376676ec5d8277a7a4a43bd
Tony Arcieri
2026-02-02T18:48:21
elliptic-curve v0.14.0-rc.28 (#2265) Includes `getrandom` v0.4 bump and `*EncodedPoint` => `*Sec1Point` changes
diff --git a/Cargo.lock b/Cargo.lock index 925e477..76d40a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -219,7 +219,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-rc.27" +version = "0.14.0-rc.28" dependencies = [ "base16ct", "crypto-bigint", diff --git a/elliptic-curve/Cargo.toml ...
2
2
2
ded2cc230d3f5f460568c94770bdbfcac83d1858
Tony Arcieri
2026-02-02T18:41:52
elliptic-curve: rename `*EncodedPoint` => `*Sec1Point` (#2264) There are a lot of point encodings! Especially as we start to support non-prime-order curves like `ed448-goldilocks` that don't use SEC1 encoding at all, we should use a more distinctive name that actually identifies the point encoding as SEC1. Renames th...
diff --git a/elliptic-curve/src/dev/mock_curve.rs b/elliptic-curve/src/dev/mock_curve.rs index a053a3c..39c5d06 100644 --- a/elliptic-curve/src/dev/mock_curve.rs +++ b/elliptic-curve/src/dev/mock_curve.rs @@ -14,7 +14,7 @@ use crate::{ point::{AffineCoordinates, NonIdentity}, rand_core::{TryCryptoRng, TryRng}...
6
167
114
d3d905560a4dc1fd856116d01032f89cff935a0f
Tony Arcieri
2026-02-02T18:25:20
elliptic-curve: bump dependency requirements (#2263) Updates the following requirements: - `crypto-bigint` v0.7.0-rc.25 - `digest` v0.11.0-rc.11 - `hkdf` v0.13.0-rc.5 - `rustcrypto-ff` v0.14.0-rc.0 - `rustcrypto-group` v0.14.0-rc.0
diff --git a/Cargo.lock b/Cargo.lock index a11b681..925e477 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -161,9 +161,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.24" +version = "0.7.0-rc.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51312f2b7fae18...
3
18
18
ce3d46b0d83b33a1eed467961e05331d1ed86892
Tony Arcieri
2026-02-02T16:08:21
Cut new prereleases (#2262) Releases the following, which now depend on `crypto-common` v0.2.0-rc.15 which includes a `getrandom` v0.4 bump: - `aead` v0.6.0-rc.10 - `cipher` v0.5.0-rc.8 - `digest` v0.11.0-rc.11 - `universal-hash` v0.6.0-rc.10 Note that these releses also remove the re-exports of `crypto_common` in f...
diff --git a/Cargo.lock b/Cargo.lock index 0b58e5b..a11b681 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.6.0-rc.9" +version = "0.6.0-rc.10" dependencies = [ "arrayvec", "blobby", @@ -111,7 +111,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35...
5
8
8
110ae6697b326f6c7e79ecb99b713b8429a6fc70
Tony Arcieri
2026-02-02T16:00:14
crypto-common: remove legacy `Cargo.lock` (#2261) This appears to be leftover from when it wasn't in the workspace
diff --git a/crypto-common/Cargo.lock b/crypto-common/Cargo.lock deleted file mode 100644 index 05f61c2..0000000 --- a/crypto-common/Cargo.lock +++ /dev/null @@ -1,65 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 3 - -[[package]] -name = "cfg-if" -versio...
1
0
65
c95f0514ea4fd26c76fba6bb0fd567e909e0c01f
Tony Arcieri
2026-02-02T15:46:26
Remove deprecated `crypto_common` re-exports (#2260) It was re-exported as `common` from `aead`, `cipher`, and `universal-hash` in #2237, with the old name re-exported and "deprecated". Unfortuntaely, those deprecations don't work as expected, e.g. #![allow(unused_imports)] use digest::core_api::Eage...
diff --git a/Cargo.lock b/Cargo.lock index b0a7d1d..0b58e5b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -177,7 +177,7 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.14" +version = "0.2.0-rc.15" dependencies = [ "getrandom", "hybrid-array", diff --git a/cipher/src/lib.rs b/cipher/sr...
4
1
17
ecc4e076c0387a76b90444a5e9af380c6cc48e8d
Tony Arcieri
2026-02-02T15:09:53
crypto-common v0.2.0-rc.15 (#2259) Includes `getrandom` v0.4 update
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index a4fe47a..552cb7b 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -16,7 +16,7 @@ such as AES-GCM as ChaCha20Poly1305, which provide a high-level API """ [dependencies] -common = { version = "0.2.0-rc.14", package = "crypto-common" } +common = { version = "0....
8
8
8
78b7b56c2221a6b34a09eed0860dd5cace24f208
Tony Arcieri
2026-02-02T03:37:20
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.24 (#2257) Uses `cpubits` for 32/64-bit detection
diff --git a/Cargo.lock b/Cargo.lock index c3d271f..d293d86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -133,6 +133,12 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" +[[package]] +name = "cpubits" +...
2
14
7
f4773c7bb49517f3151631d4509bfeb10b5b7526
Tony Arcieri
2026-02-01T20:18:45
elliptic-curve v0.14.0-rc.26 (#2255) Includes `rand_core` v0.10 upgrade
diff --git a/Cargo.lock b/Cargo.lock index cc2bd94..7c5fd42 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -212,7 +212,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-rc.25" +version = "0.14.0-rc.26" dependencies = [ "base16ct", "crypto-bigint", diff --git a/elliptic-curve/Cargo.toml ...
2
2
2
1b7c4df03916e1b9dc825219b5ea1a183de5d0fd
Tony Arcieri
2026-02-01T18:28:42
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.23 (#2254)
diff --git a/Cargo.lock b/Cargo.lock index 2a45036..cc2bd94 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -155,9 +155,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.22" +version = "0.7.0-rc.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "053c3561863ce5...
2
3
3
9f85378ef8b36a9d77ac77d19edd4297169dd213
Tony Arcieri
2026-02-01T16:11:32
elliptic-curve: remove direct `getrandom` dependency (#2252) We depend on it via `crypto-common` now
diff --git a/Cargo.lock b/Cargo.lock index 1733c65..d472537 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -218,7 +218,6 @@ dependencies = [ "crypto-bigint", "crypto-common", "digest", - "getrandom", "hex-literal", "hkdf", "hybrid-array", diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index...
2
1
3
4ee73a2482db4b1b88180ca3cb927ca4bb0a07ab
Tony Arcieri
2026-02-01T14:43:42
Bump `rand_core` to v0.10 (#2250) Release PR: https://github.com/rust-random/rand_core/pull/64
diff --git a/Cargo.lock b/Cargo.lock index 9f8a4e6..55bfa28 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -519,9 +519,9 @@ checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] name = "rand_core" -version = "0.10.0-rc-6" +version = "0.10.0" source = "registry+https://github.com/ru...
6
7
7
a3354ce19f238d20e2cdd8edf7c8e76c703b08b8
Tony Arcieri
2026-01-31T16:02:21
elliptic-curve v0.14.0-rc.25 (#2249)
diff --git a/Cargo.lock b/Cargo.lock index c33f4e4..9f8a4e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -212,7 +212,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-rc.24" +version = "0.14.0-rc.25" dependencies = [ "base16ct", "crypto-bigint", diff --git a/elliptic-curve/Cargo.toml ...
2
2
2
43d020754c46cd81ca8d13c980f48215aa362627
Tony Arcieri
2026-01-31T03:04:00
elliptic-curve: `SecretKey::diffie_hellman` borrow `&self`
diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index 87d2513..ee21606 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -179,7 +179,7 @@ where /// /// See the documentation in the [`ecdh`] module for more information. #[cfg(feature =...
1
1
1
35ec00aee7b28b66d208a2764444a13de46a9113
Tony Arcieri
2026-01-31T03:02:32
elliptic-curve: add `SecretKey::diffie_hellman` (#2248) I found myself wanting this working on `dhkem`
diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index 0bbf208..87d2513 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -19,6 +19,9 @@ use zeroize::{Zeroize, ZeroizeOnDrop, Zeroizing}; #[cfg(feature = "arithmetic")] use crate::{CurveArithmetic, N...
1
14
0
ee2a279ad77a4aae20f0146ffa97b5e65f567306
Tony Arcieri
2026-01-31T02:48:26
elliptic-curve: add `From<SecretKey<C>> for PublicKey<C>` impls (#2247) Surprised these didn't exist already
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index 2e3906a..251089e 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -2,7 +2,7 @@ use crate::{ AffinePoint, CurveArithmetic, CurveGroup, Error, NonZeroScalar, ProjectivePoint, Result, - ...
1
19
1
b5cfb05642ed23996199f34cca99a3ccc4a683ea
Tony Arcieri
2026-01-30T19:04:05
kem: `Kem` trait for the whole algorithm type family (#2243) Adds a `Kem` trait intended to be impl'd by ZSTs that describe the whole type family, including the decapsulation key, encapsulation key, and the sizes of the ciphertext and shared secret previously defined on the `KemParams` trait (which this subsumes). Th...
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index cbb5722..da02d50 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -13,74 +13,82 @@ pub use common::{ }; use common::array::{self, ArraySize}; +use core::fmt::Debug; use core::{array::TryFromSliceError, convert::Infallible}; use rand_core::CryptoRng; #[cfg(f...
1
58
49
0e210cd1f7d145b3482bdae59fd8be35dd65c2ce
Artyom Pavlov
2026-01-30T16:22:04
crypto-common: remove weak key test methods (#2244)
diff --git a/crypto-common/src/lib.rs b/crypto-common/src/lib.rs index 164db41..20181b5 100644 --- a/crypto-common/src/lib.rs +++ b/crypto-common/src/lib.rs @@ -167,19 +167,6 @@ pub trait KeyInit: KeySizeUser + Sized { /// Create new value from fixed size key. fn new(key: &Key<Self>) -> Self; - /// Check...
1
1
55
d8803d4616026f4f3a78594ad2bcc72078cb855c
Tony Arcieri
2026-01-25T04:03:05
digest v0.11.0-rc.9 (#2239)
diff --git a/Cargo.lock b/Cargo.lock index 006d1f1..8600182 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -200,7 +200,7 @@ dependencies = [ [[package]] name = "digest" -version = "0.11.0-rc.8" +version = "0.11.0-rc.9" dependencies = [ "blobby", "block-buffer", diff --git a/digest/Cargo.toml b/digest/Cargo.toml i...
2
2
2
5b2a4b9ad53f0bf7239fe11a4d20bb573d191e57
Tony Arcieri
2026-01-25T03:51:48
universal-hash v0.6.0-rc.8 (#2238)
diff --git a/Cargo.lock b/Cargo.lock index ea8b7da..006d1f1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -706,7 +706,7 @@ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" [[package]] name = "universal-hash" -version = "0.6.0-rc.7" +version = "0.6.0-rc.8" dependencies = [ "crypto-commo...
2
2
2
fcd5baee94b81c7d2d329032b531ed6f619f5a9d
Tony Arcieri
2026-01-24T23:33:04
kem v0.3.0-rc.2 (#2236)
diff --git a/Cargo.lock b/Cargo.lock index 7a1094b..ea8b7da 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -362,7 +362,7 @@ version = "0.1.0-pre.1" [[package]] name = "kem" -version = "0.3.0-rc.1" +version = "0.3.0-rc.2" dependencies = [ "crypto-common", "rand_core", diff --git a/kem/Cargo.toml b/kem/Cargo.toml i...
2
2
2
a830d9a72a0e2b3975486fc82d6896e19610a749
Tony Arcieri
2026-01-24T23:14:43
kem: make `Encapsulate` fully infallible (#2235) Switches from `TryCryptoRng` back to `CryptoRng` for `encapsulate_with_rng`. We originally switched to #2049 with the rationale that the whole trait was fallible anyway, so we might as well handle the RNG errors. But then in #2216 we made the rest of the trait infallib...
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index cd47118..cbb5722 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -14,7 +14,7 @@ pub use common::{ use common::array::{self, ArraySize}; use core::{array::TryFromSliceError, convert::Infallible}; -use rand_core::TryCryptoRng; +use rand_core::CryptoRng; #[cfg(...
1
5
8
665f36b811a27f285ef5485746d4c1f486c01319
Tony Arcieri
2026-01-24T22:25:15
crypto-common: use `UnwrapErr` in `Generate` (#2234) Replaces `expect` with the `UnwrapErr` type
diff --git a/crypto-common/src/generate.rs b/crypto-common/src/generate.rs index 70f1ec0..79ab632 100644 --- a/crypto-common/src/generate.rs +++ b/crypto-common/src/generate.rs @@ -1,6 +1,9 @@ use hybrid_array::{Array, ArraySize}; use rand_core::{CryptoRng, TryCryptoRng}; +#[cfg(feature = "getrandom")] +use getrand...
1
5
2
67b0cd6ccb782a4bf6732b330f95d363f05789a5
Tony Arcieri
2026-01-24T21:13:15
elliptic-curve v0.14.0-rc.24 (#2233) Includes `rand_core` v0.10.0-rc-6 update that renamed `(Try)RngCore` => `RngCore`
diff --git a/Cargo.lock b/Cargo.lock index 7152dd8..7a1094b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -212,7 +212,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-rc.23" +version = "0.14.0-rc.24" dependencies = [ "base16ct", "crypto-bigint", diff --git a/elliptic-curve/Cargo.toml ...
2
2
2
49f06cdf4f7852ed3edf9e2d31e23e4fd5a0fbd9
Tony Arcieri
2026-01-24T20:07:14
elliptic-curve: upgrade dependencies (includes `pem*` V1) (#2232) Upgrades the following dependency requirements in Cargo.toml: - `digest` v0.11.0-rc.8 - `pem-rfc7468` v1 - `pkcs8` v0.11.0-rc.9 - `rustcrypto-ff` v0.14.0-pre.1 - `rustcrypto-group` v0.14.0-pre.1 - `sec1` v0.8.0-rc.13
diff --git a/Cargo.lock b/Cargo.lock index 073f660..7152dd8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -525,8 +525,9 @@ checksum = "70765ff7112b0fb2d272d24d9a2f907fc206211304328fe58b2db15a5649ef28" [[package]] name = "rustcrypto-ff" -version = "0.14.0-pre.0" -source = "git+https://github.com/RustCrypto/ff?branch=r...
3
16
16
17aef3adde8e4b0f9d8840897e4679372a7bffb6
Tony Arcieri
2026-01-24T19:28:27
Bump `crypto-bigint` to v0.7.0-rc.22 (#2231)
diff --git a/Cargo.lock b/Cargo.lock index c25c52a..073f660 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -155,8 +155,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.21" -source = "git+https://github.com/RustCrypto/crypto-bigint#f69f020e67c115be8626c98472716133f7acdd60" +version = "0.7.0...
3
6
6
ce4a638ee7be1ac21cdceb5b93b0281cc834bc61
Tony Arcieri
2026-01-24T15:57:27
Cut new prereleases (#2230) Releases the following new versions that include an upgrade to `rand_core` v0.10.0-rc-6, which includes the `(Try)RngCore` => `(Try)Rng` rename: - `aead` v0.6.0-rc.8 - `cipher` v0.5.0-rc.6 - `digest` v0.11.0-rc.8 - `kem` v0.3.0-rc.1 - `password-hash` v0.6.0-rc.11 - `signature` v3.0.0-rc.9 ...
diff --git a/Cargo.lock b/Cargo.lock index ea70e4d..c25c52a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.6.0-rc.7" +version = "0.6.0-rc.8" dependencies = [ "arrayvec", "blobby", @@ -111,7 +111,7 @@ checksum = "9330f8b2ff13f34540b44e946ef351...
8
15
15
bf6f0a9703e0a9ef83c35e34965c5cefbb15c1ba
Tony Arcieri
2026-01-24T15:48:54
crypto-common v0.2.0-rc.13 (#2229) Includes `rand_core` v0.10.0-rc-6 upgrade with `(Try)RngCore` => `(Try)Rng` changes.
diff --git a/Cargo.lock b/Cargo.lock index fc836d9..ea70e4d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -169,7 +169,7 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.12" +version = "0.2.0-rc.13" dependencies = [ "getrandom", "hybrid-array", diff --git a/aead/Cargo.toml b/aead/Cargo....
9
9
9
b5cbbb8eea193f1bb91656277b987f9441cec898
Tony Arcieri
2026-01-24T15:42:42
Bump `getrandom` to v0.4.0-rc.1 (#2228) Includes `rand_core` v0.10.0-rc-6 compatibility
diff --git a/Cargo.lock b/Cargo.lock index 9e1878f..fc836d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -253,8 +253,9 @@ checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" [[package]] name = "getrandom" -version = "0.4.0-rc.0" -source = "git+https://github.com/rust-random/getrandom?branch...
5
6
6
aeb90691ad99983823eabdc2c2c1eedb8645d233
Tony Arcieri
2026-01-24T15:35:30
Bump `rand_core` to v0.10.0-rc-6 (#2227) Renames `(Try)RngCore` => `(Try)Rng`
diff --git a/Cargo.lock b/Cargo.lock index 02e95b7..9e1878f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -24,6 +24,12 @@ dependencies = [ "inout", ] +[[package]] +name = "anyhow" +version = "1.0.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a23eb6b1614318a8071c9b2521f36b424b2c8...
9
283
23
ea0bf1f76eb4764a02d24f67fa7a7495b8c1c37e
Tony Arcieri
2026-01-23T17:26:00
kem v0.3.0-rc.0 (#2225) See #2224 for context It seems at some point I (accidentally?) bumped the crate's prerelease version from v0.3.0-pre.2 to v0.4.0-pre.0. We've never had a v0.3 stable release. I'm dropping the version down to v0.3.0-rc*, and will yank the existing v0.4.0-* prereleases.
diff --git a/Cargo.lock b/Cargo.lock index 267098a..02e95b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -292,7 +292,7 @@ version = "0.1.0-pre.1" [[package]] name = "kem" -version = "0.4.0-rc.5" +version = "0.3.0-rc.0" dependencies = [ "crypto-common", "rand_core", diff --git a/kem/Cargo.toml b/kem/Cargo.toml i...
2
2
2
5aa4a85ec85233ddd923a1d4b0376c5e7c5e6b09
Tony Arcieri
2026-01-23T17:15:41
kem v0.4.0-rc.5 (#2223) NOTE: will fill out the changelog when I think the trait design is closer to finished
diff --git a/Cargo.lock b/Cargo.lock index 9642510..267098a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -292,7 +292,7 @@ version = "0.1.0-pre.1" [[package]] name = "kem" -version = "0.4.0-rc.4" +version = "0.4.0-rc.5" dependencies = [ "crypto-common", "rand_core", diff --git a/kem/Cargo.toml b/kem/Cargo.toml i...
2
2
2
ff1cdb671d40f025788eaa0130558010a0258227
Tony Arcieri
2026-01-23T16:52:42
kem: use byte arrays for `EK` and `SS` (#2220) Some terminology: - `EK`: encapsulated key, i.e. ciphertext, not to be confused with "encapsulation key", the public key - `SS`: shared secret, output of the decapsulator when given a ciphertext a.k.a. encapsulated key `EK` and `SK` were previously generic parameters on ...
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index ac2be9b..697ae2b 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -12,44 +12,131 @@ pub use common::{ self, Generate, InvalidKey, Key, KeyExport, KeyInit, KeySizeUser, TryKeyInit, typenum::consts, }; +use common::array::{self, ArraySize}; +use core::{array::...
1
101
14
55376359fd1375ebd63825a4c1394d3c3ee3e6de
Tony Arcieri
2026-01-23T02:23:55
kem: additional re-exports from `crypto-common` (#2222) - re-exports `crypto-common` itself as `common` - re-exports `KeyInit`, which is useful for seeds - re-exports `Key` as the type for representing serialized encapsulation and decapsulation keys - re-exports `InvalidKey` as the error when `TryKeyInit` fails
diff --git a/kem/Cargo.toml b/kem/Cargo.toml index 9b8f8cd..ce63a38 100644 --- a/kem/Cargo.toml +++ b/kem/Cargo.toml @@ -17,11 +17,11 @@ Traits for Key Encapsulation Mechanisms (KEMs): public-key cryptosystems designe """ [dependencies] -crypto-common = { version = "0.2.0-rc.12", features = ["rand_core"] } +common ...
2
9
6
0fa1faabca3fcf744682f86e3c24ecc8115c3b71
Tony Arcieri
2026-01-23T00:37:29
elliptic-curve: provide `**EncodedPoint::from/to_sec1_bytes` (#2221) Adds the following provided methods to these traits: - `sec1::FromEncodedPoint::from_sec1_bytes` - `sec1::ToEncodedPoint::to_compressed_point` - `sec1::ToEncodedPoint::to_uncompressed_point` - `sec1::ToEncodedPoint::to_sec1_bytes` These methods were...
diff --git a/elliptic-curve/src/sec1.rs b/elliptic-curve/src/sec1.rs index c9088f0..53bdeda 100644 --- a/elliptic-curve/src/sec1.rs +++ b/elliptic-curve/src/sec1.rs @@ -4,11 +4,12 @@ pub use sec1::point::{Coordinates, ModulusSize, Tag}; -use crate::{Curve, FieldBytesSize, Result, SecretKey, ctutils::CtOption}; -us...
1
45
13
0dabd78a7a0f66ca254ec20becb5259dfb48cbd3
Tony Arcieri
2026-01-22T19:25:42
kem: remove associated `Error` types (#2216) All of our `kem` implementations either use `type Error = Infallible` or use the error type exclusively for handling RNG errors. That's good, because having an error case for decapsulation introduces a potential sidechannel, which can be eliminated by instead using implici...
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index e89a9e2..6827c66 100644 --- a/kem/src/lib.rs +++ b/kem/src/lib.rs @@ -12,24 +12,24 @@ pub use crypto_common::{Generate, KeyExport, KeySizeUser, TryKeyInit, typenum::c use rand_core::TryCryptoRng; +#[cfg(feature = "getrandom")] +use {crypto_common::getrandom::SysRn...
1
10
13
4e195b4fc5062a9ccd0080070d2b05202b2b3108
Tony Arcieri
2026-01-22T18:57:38
crypto-common v0.2.0-rc.12 (#2218) Includes the `KeyExport` trait
diff --git a/Cargo.lock b/Cargo.lock index 69e6f88..9642510 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -158,7 +158,7 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.11" +version = "0.2.0-rc.12" dependencies = [ "getrandom", "hybrid-array", diff --git a/aead/Cargo.toml b/aead/Cargo....
8
8
8
23f63d876d13d5e556d75cb645b4032f0d7ff3cb
Tony Arcieri
2026-01-22T18:55:06
Cargo.lock: bump dependencies (#2217) This is mostly to clear the security audit around `cmov`. Updates the following dependencies: $ cargo update Updating crates.io index Locking 4 packages to latest Rust 1.85 compatible versions Updating cmov v0.5.1 -> v0.5.2 Updating proc-macro2 v1.0.103 -> v...
diff --git a/Cargo.lock b/Cargo.lock index de7cf52..69e6f88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,9 +111,9 @@ dependencies = [ [[package]] name = "cmov" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df1888fb431ee159b513b5c2f249e03f1c9...
1
9
9
327021e6da997a47a1b6605eaa48cd8fcb3c58e1
Tony Arcieri
2026-01-22T18:45:25
Cargo.lock: bump `password-hash` to v0.6.0-rc.10
diff --git a/Cargo.lock b/Cargo.lock index 1273246..de7cf52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -345,7 +345,7 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.9" +version = "0.6.0-rc.10" dependencies = [ "getrandom", "phc",
1
1
1
18fef982b22f429958606799a6d63f0f13edc6ef
Tony Arcieri
2026-01-22T18:32:29
kem: bound `Encapsulate` on `TryKeyInit + KeyExport` (#2215) The `Encapsulate` trait is for KEM public keys, which we need to be able to serialize/deserialize for them to be useful. We don't want to enforce a similar bound for `Decapsulate` though, since those are secret keys that may be stored in an HSM/SEP/TPM whic...
diff --git a/kem/src/lib.rs b/kem/src/lib.rs index 089e6dd..e89a9e2 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::{Generate, KeyInit, KeySizeUser, typenum::consts}; +pub us...
1
2
2
f57ec3becf0e573d0699fc592b5f925d20986364
Tony Arcieri
2026-01-21T00:07:28
password-hash: remove `Display`/`FromStr` bounds on `Params` (#2212) For the associated type `CustomizedPasswordHasher::Params`, removes the `Display` and `FromStr` bounds which aren't actually used: for PHC-related purposes which are the only ones implemented directly in `password-hash`, it instead requires a `TryFro...
diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml index a404614..af870c6 100644 --- a/password-hash/Cargo.toml +++ b/password-hash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "password-hash" -version = "0.6.0-rc.9" +version = "0.6.0-rc.10" authors = ["RustCrypto Developers"] edition = "2024" rust-ve...
2
3
6
2187175d16718e5bc8593b7373fdbfb438be539f
Tony Arcieri
2026-01-20T22:51:09
kdf: `Kdf` trait documentation improvements (#2211) Expands documentation and renames the second parameter (not counting `self`) to the KDF from `salt` => `non_secret`. When impl'ing this trait for `hkdf` it became clear that, using the existing structs, `info` was the only parameter that made sense (something @newpa...
diff --git a/kdf/src/lib.rs b/kdf/src/lib.rs index e4df7e9..2bdc76b 100644 --- a/kdf/src/lib.rs +++ b/kdf/src/lib.rs @@ -13,10 +13,25 @@ use core::fmt; /// Key Derivation Function. /// /// These functions deterministically produce uniformly random outputs suitable as key material. +/// +/// It is recommended for typ...
1
18
3
16deb21c8e1da357906072d44c908f53e84b71c8
Tony Arcieri
2026-01-20T18:17:43
elliptic-curve v0.14.0-rc.23 (#2210)
diff --git a/Cargo.lock b/Cargo.lock index c73c902..1273246 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,12 +109,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "cmov" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d5ce5728ecb5285a5dd35f02a6a8e34e0828...
2
8
23
fed493a8215568223e267a54e6ea3d1244bfc6c5
Tony Arcieri
2026-01-20T17:29:12
elliptic-curve: RNG followups (#2208) - Impls the `Generate` trait for `NonIdentity`, deprecates `NonIdentity::random` - Impls a `Generate`-like API for `BlindedScalar` (it can't use the `Generate` trait because it needs the scalar to blind in addition to an RNG) - Note: above changes `BlindedScalar::new` not to have ...
diff --git a/elliptic-curve/src/point/non_identity.rs b/elliptic-curve/src/point/non_identity.rs index 6af54c0..1fa7349 100644 --- a/elliptic-curve/src/point/non_identity.rs +++ b/elliptic-curve/src/point/non_identity.rs @@ -2,15 +2,14 @@ #![cfg(feature = "arithmetic")] +use common::Generate; use core::ops::{Dere...
2
62
25
fbc8fe2494c44528d1134380b178306faa17b3b4
Tony Arcieri
2026-01-20T16:56:49
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.21 (#2207)
diff --git a/Cargo.lock b/Cargo.lock index f0058de..0ee100e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -149,11 +149,11 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-rc.20" +version = "0.7.0-rc.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa5ca68818c8...
2
6
6
3018e758faf2fe3d0cd830d45455852d5de639b6
Tony Arcieri
2026-01-20T14:52:49
Cargo.lock: update `signature` version
diff --git a/Cargo.lock b/Cargo.lock index f2cf6e7..f0058de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -534,7 +534,7 @@ dependencies = [ [[package]] name = "signature" -version = "3.0.0-rc.7" +version = "3.0.0-rc.8" dependencies = [ "digest", "rand_core",
1
1
1
e88f57d6f35194417be81c159dee4d7644a1ca2c
Tony Arcieri
2026-01-20T14:49:53
crypto-common v0.2.0-rc.11 (#2206)
diff --git a/Cargo.lock b/Cargo.lock index aa6b878..f2cf6e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.6.0-rc.6" +version = "0.6.0-rc.7" dependencies = [ "arrayvec", "blobby", @@ -99,7 +99,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111...
9
20
20
6688e7f411ecced084b1ca3dbd7eb0ceb2521a8a
Tony Arcieri
2026-01-20T14:40:01
Bump `rand_core` to v0.10.0-rc-5 (#2205)
diff --git a/Cargo.lock b/Cargo.lock index 29bb2ba..aa6b878 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -436,9 +436,9 @@ checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" [[package]] name = "rand_core" -version = "0.10.0-rc-4" +version = "0.10.0-rc-5" source = "registry+https://github.c...
8
11
11
7521c0f7e8bdd51f55a88326bc0aeae2d3793c2f
Tony Arcieri
2026-01-20T00:03:42
elliptic-curve v0.14.0-rc.22 (#2203)
diff --git a/Cargo.lock b/Cargo.lock index 3332a4c..29bb2ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -215,7 +215,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-rc.21" +version = "0.14.0-rc.22" dependencies = [ "base16ct", "crypto-bigint", diff --git a/elliptic-curve/Cargo.toml ...
2
2
2
e4c6d947e0d99cbcf55a9c1b6a6c847ae7f5a0eb
Tony Arcieri
2026-01-19T23:54:58
elliptic-curve: bump `crypto-bigint` to v0.7.0-rc.20 (#2202) This includes the `rand_core` v0.10.0-rc-4 update
diff --git a/Cargo.lock b/Cargo.lock index 3cc1869..3332a4c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -115,6 +115,12 @@ version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b1339d398d44e506d9b72c1af2f6f51a41c9c64f9a0738eb9aedede47ed1f683" +[[package]] +name = "cmov" +vers...
2
21
6
30f52743b4bc3f1a8639f6ec126556c23d8ce3fb
Arthur Gautier
2026-01-19T23:04:30
workspace: avoid duplicate crypto-common definition when using git dependencies (#2198) When consuming an master release with `[patch.crates-io]` crypto-common would get duplicated because of the `path = "../` in each crate. This moves the override to the workspace `Cargo.toml` and remove that duplicate crypto-common...
diff --git a/Cargo.toml b/Cargo.toml index e8146b7..7c6e8cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,5 +15,6 @@ members = [ ] [patch.crates-io] +crypto-common = { path = "crypto-common" } digest = { path = "digest" } signature = { path = "signature" } diff --git a/aead/Cargo.toml b/aead/Cargo.toml index ab...
7
7
6
21002515afc6da35371431bee5e402e6afefdb7d
Arthur Gautier
2026-01-19T21:45:04
elliptic-curve: fixup rand_core API use (#2197) This fixes changes made in #2195 This is due to the refactor made in rand_core in rust-random/rand_core#45 which dropped the "trait dependency" between CryptoRng and RngCore
diff --git a/elliptic-curve/src/point/non_identity.rs b/elliptic-curve/src/point/non_identity.rs index d467a90..e335812 100644 --- a/elliptic-curve/src/point/non_identity.rs +++ b/elliptic-curve/src/point/non_identity.rs @@ -5,7 +5,7 @@ use core::ops::{Deref, Mul}; use group::{Group, GroupEncoding, prime::PrimeCurv...
2
9
7
5d95f9f1abc5918aa254ccc75e29f91c21540785
Tony Arcieri
2026-01-19T19:49:41
kem v0.4.0-rc.3
diff --git a/Cargo.lock b/Cargo.lock index 18cfcb1..3cc1869 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -292,7 +292,7 @@ version = "0.1.0-pre.1" [[package]] name = "kem" -version = "0.4.0-rc.2" +version = "0.4.0-rc.3" dependencies = [ "crypto-common", "rand_core", diff --git a/kem/Cargo.toml b/kem/Cargo.toml i...
2
2
2
4be5aa4d43a1735dc056147d9d6b5ccee3a1e015
Tony Arcieri
2026-01-19T19:46:09
Bump `rand_core` to v0.10.0-rc-4 (#2195) It seems like the changes are backwards compatible with every crate except for `elliptic-curve`, where some reborrowing was required
diff --git a/Cargo.lock b/Cargo.lock index 8cac5c0..18cfcb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,7 +15,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.6.0-rc.5" +version = "0.6.0-rc.6" dependencies = [ "arrayvec", "blobby", @@ -99,7 +99,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111...
12
31
31
8711221b5045b95f16826fbe7208ec7482666e26
Tony Arcieri
2026-01-14T21:36:34
kdf v0.1.0-pre.1 (#2192) Re-release to get the rustdoc to build (see #2191)
diff --git a/Cargo.lock b/Cargo.lock index be24fa2..3e931d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -288,7 +288,7 @@ dependencies = [ [[package]] name = "kdf" -version = "0.1.0-pre.0" +version = "0.1.0-pre.1" [[package]] name = "kem" diff --git a/kdf/Cargo.toml b/kdf/Cargo.toml index 085d3f3..0d44bcb 100644...
2
2
2