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
7e4d65cd5ff3bdeaa2ff44f3e7ae3dba18ea9e02
Adam Sunderland
2016-05-17T17:24:22
Simplify Add and Sub
diff --git a/src/lib.rs b/src/lib.rs index 6152dc4..0921c93 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -300,6 +300,8 @@ impl One for BigDecimal { } } +forward_all_binop_to_ref_ref!(impl Add for BigDecimal, add); + impl<'a, 'b> Add<&'b BigDecimal> for &'a BigDecimal { type Output = BigDecimal; @@ -313,4...
1
3
77
09c2d97663c0e3604315d178921747dee35289e2
Adam Sunderland
2016-05-17T06:10:35
Add BigDecimal Add, Sub, Mul, and Div Div is currently broken, as it only returns the integer portion instead of a float as one might expect. Other traits are stubbed out to satisfy the Num trait.
diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..6152dc4 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,525 @@ +// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed un...
1
525
0
82ce9c4702288b5ddd5843d1c3c4b50c30d8aa0b
Tony Arcieri
2026-04-14T14:49:37
Cargo.lock: bump dependencies (#2289)
diff --git a/Cargo.lock b/Cargo.lock index 983a7b89..3ac8e5f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -156,9 +156,9 @@ checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" [[package]] name = "bitflags" -version = "2.11.0" +version = "2.11.1" source = "registry+https://github.com/rust-l...
1
19
19
7165ae8435cb8634b466406f6e3b3c1a2023ae56
Mark Atwood
2026-04-13T16:19:23
fix(pkcs12): validate kdf iteration count >= 1 (#2285) RFC 7292 Appendix C defines iterations as INTEGER (1..MAX). The loop `for _ in 1..rounds` silently degenerates to a single hash application for rounds <= 0, producing wrong output without signalling failure. Add a rounds < 1 guard to derive_key, derive_key_bmp, a...
diff --git a/pkcs12/src/kdf.rs b/pkcs12/src/kdf.rs index 3c110270..8af08833 100644 --- a/pkcs12/src/kdf.rs +++ b/pkcs12/src/kdf.rs @@ -15,7 +15,7 @@ //! [`argon2`](https://docs.rs/argon2) crate for a state-of-the-art password-based KDF. use alloc::{vec, vec::Vec}; -use der::asn1::BmpString; +use der::{Tag, asn1::Bm...
2
78
11
ac1e42071d274484034b4674ccea6e601b3f8b95
Arthur Gautier
2026-04-10T21:31:54
chore(deps): bump dependencies to release versions (#2282) This bumps: - `aes-kw` to `0.3.0` - `cbc` to `0.2.0` - `ctr` to `0.10.0` - `des` to `0.9.0` This also bumps the following crates to latest pre-release versions: - `elliptic-curve` to `0.14.0-rc.30` - `rsa` to `0.10.0-rc.17`
diff --git a/Cargo.lock b/Cargo.lock index 9d9b6fbf..d106c65e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,9 +39,9 @@ dependencies = [ [[package]] name = "aes-kw" -version = "0.3.0-rc.2" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d3f56c4f20065fe12a323918242...
6
22
23
f8f9719eed43776b755b91a654ee82ba68c1c951
Arthur Gautier
2026-04-10T20:14:05
chore(deps): bump `aes` to `0.9.0` (#2281)
diff --git a/Cargo.lock b/Cargo.lock index 73f180e0..9d9b6fbf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,13 +14,13 @@ dependencies = [ [[package]] name = "aes" -version = "0.9.0-rc.4" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04097e08a47d9ad181c2e1f4a5fab...
3
12
21
7346ca9cafe1b7663604d2e6674cbb0cf0e09b9f
kraemv
2026-04-08T15:47:07
der: add `SetOfRef` struct (#2247) Borrowed representation for ASN.1 `SET OF`
diff --git a/der/src/asn1.rs b/der/src/asn1.rs index a128f1bb..9717b395 100644 --- a/der/src/asn1.rs +++ b/der/src/asn1.rs @@ -74,7 +74,7 @@ pub use self::{ }; #[cfg(any(feature = "alloc", feature = "heapless"))] -pub use set_of::SetOfIter; +pub use set_of::{SetOfIter, SetOfRef}; #[cfg(feature = "oid")] pub use...
3
365
5
35e35bc5adadf7f1e6bc1f877f06226b63cb8ce5
Tony Arcieri
2026-04-03T21:06:35
der: deprecate `ErrorKind::SetDuplicate` (#2276) Followup to #2272 which addressed #2271 by allowing duplicates, as they are allowed per X.680 and X.690. Also includes some small logic cleanups.
diff --git a/der/src/asn1/set_of.rs b/der/src/asn1/set_of.rs index 57660001..3264c2d4 100644 --- a/der/src/asn1/set_of.rs +++ b/der/src/asn1/set_of.rs @@ -488,10 +488,11 @@ where /// Ensure set elements are lexicographically ordered using [`DerOrd`]. fn check_der_ordering<T: DerOrd>(a: &T, b: &T) -> Result<(), Erro...
2
15
9
223f52239e203f5155ee3d14ad62a73dd6838ce3
kraemv
2026-04-03T20:15:23
der: allow `SetOf*` duplicates (#2272) Closes #2271
diff --git a/der/src/asn1/set_of.rs b/der/src/asn1/set_of.rs index 2233a062..57660001 100644 --- a/der/src/asn1/set_of.rs +++ b/der/src/asn1/set_of.rs @@ -51,9 +51,8 @@ where /// Insert an item into this [`SetOf`]. /// /// # Errors - /// If there's a duplicate or sorting error. + /// If there's a s...
1
28
50
3778ae3cbe74a822eaa89d96ae35e741409630a0
Tony Arcieri
2026-04-03T20:00:55
spki: impl `core::error::Error` for `Error` (#2274) Previously it was gated on `std`. Also propagates the source for `Error::Asn1`.
diff --git a/spki/src/error.rs b/spki/src/error.rs index 01f5af82..0daa35cb 100644 --- a/spki/src/error.rs +++ b/spki/src/error.rs @@ -32,6 +32,15 @@ pub enum Error { }, } +impl core::error::Error for Error { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + match self { + ...
1
9
3
a8bc03727b29005d3db9625d2b3b373987a92cc5
Tony Arcieri
2026-04-03T16:07:47
Bump `sha2` dependency to v0.11 (#2273) Release PR: RustCrypto/hashes#806
diff --git a/cms/Cargo.toml b/cms/Cargo.toml index d791a443..81143f22 100644 --- a/cms/Cargo.toml +++ b/cms/Cargo.toml @@ -29,8 +29,8 @@ cipher = { version = "0.5", features = ["alloc", "block-padding", "rand_core"], digest = { version = "0.11", optional = true } elliptic-curve = { version = "0.14.0-rc.28", optional ...
6
11
11
11590f16a9ee5dcd2a28f42243240074df0e1510
Tony Arcieri
2026-03-31T21:03:13
sec1: impl `CtAssign(Slice)`/`CtEq(Slice)` for `EncodedPoint` (#2269) Adds more impls of `ctutils` traits
diff --git a/sec1/src/point.rs b/sec1/src/point.rs index 5bbad06b..87c66a71 100644 --- a/sec1/src/point.rs +++ b/sec1/src/point.rs @@ -19,7 +19,7 @@ use hybrid_array::{Array, ArraySize, typenum::U1}; #[cfg(feature = "alloc")] use alloc::boxed::Box; #[cfg(feature = "ctutils")] -use ctutils::{Choice, CtSelect}; +use c...
1
27
2
5a8a081b6be94c66ccf84f4da14f838636951c05
Tony Arcieri
2026-03-22T02:35:45
Cargo.lock: bump dependecies (#2264)
diff --git a/Cargo.lock b/Cargo.lock index c24075e5..3422b207 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -73,9 +73,9 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5192cca8006f1fd4f7237516f40fa1...
1
58
51
7e3005330e853b998526ddc5e275686e6c8d60eb
Cathal
2026-03-17T12:46:18
tls_codec: manually implement `zeroize` (#2262)
diff --git a/Cargo.lock b/Cargo.lock index bbf8d190..c24075e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2254,20 +2254,6 @@ name = "zeroize" version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" -dependencies...
3
23
20
0d5a5667a97b59f3b7f3454e03b54562b3c4b39b
Tony Arcieri
2026-03-09T20:55:28
phc: render `--all-features` on docs.rs (#2257)
diff --git a/phc/Cargo.toml b/phc/Cargo.toml index 1f1d0a4a..a3dc0db0 100644 --- a/phc/Cargo.toml +++ b/phc/Cargo.toml @@ -27,3 +27,6 @@ default = ["rand_core"] alloc = ["base64ct/alloc"] getrandom = ["dep:getrandom"] rand_core = ["dep:rand_core"] + +[package.metadata.docs.rs] +all-features = true
1
3
0
56b568c640de9479b2b23d1424fc167712dcef3a
Tony Arcieri
2026-03-08T17:11:56
phc v0.6.0-rc.2 (#2252)
diff --git a/Cargo.lock b/Cargo.lock index 364344f6..46187b08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1035,7 +1035,7 @@ dependencies = [ [[package]] name = "phc" -version = "0.6.0-rc.1" +version = "0.6.0-rc.2" dependencies = [ "base64ct", "ctutils", diff --git a/phc/Cargo.toml b/phc/Cargo.toml index fae55...
2
2
2
809ac1d7f049263406a1a2a73e29c7a93fb30b4d
Tony Arcieri
2026-03-08T16:24:39
phc: migrate from `subtle` to `ctutils` (#2251) See RustCrypto/meta#29
diff --git a/Cargo.lock b/Cargo.lock index 247955a7..364344f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1038,9 +1038,9 @@ name = "phc" version = "0.6.0-rc.1" dependencies = [ "base64ct", + "ctutils", "getrandom 0.4.1", "rand_core 0.10.0", - "subtle", ] [[package]] @@ -1727,7 +1727,7 @@ source = "registry...
4
9
15
f200863bb1f3609273a1b3e1f827fa0d7118274b
Tony Arcieri
2026-02-27T04:54:37
cms+pkcs5: bump `cbc` and `ctr` (#2246) Switches from `git` to crate releases
diff --git a/Cargo.lock b/Cargo.lock index b8eb0307..c2ad9b2f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -198,8 +198,9 @@ checksum = "37b2a672a2cb129a2e41c10b1224bb368f9f37a2b16b612598138befd7b37eb5" [[package]] name = "cbc" -version = "0.2.0-rc.3" -source = "git+https://github.com/RustCrypto/block-modes#3dbbcf170...
4
9
9
c10fcf425527d5151e6809b25753c067fc563817
Tony Arcieri
2026-02-27T01:47:48
Cargo.lock: bump dependencies (#2245) Temporarily pulls in `cbc`, `ctr`, `rsa`, and `universal-hash` from git until they receive new releases
diff --git a/Cargo.lock b/Cargo.lock index 354bdff2..b8eb0307 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -162,9 +162,9 @@ checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" [[package]] name = "block-buffer" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/ru...
2
79
54
ba7bd919abedeedd2378ae526cb5a3f290c32a97
Tony Arcieri
2026-02-14T21:53:45
cms: bump cipher to v0.5 (#2238)
diff --git a/cms/Cargo.toml b/cms/Cargo.toml index beed7470..062e79eb 100644 --- a/cms/Cargo.toml +++ b/cms/Cargo.toml @@ -25,7 +25,7 @@ aes = { version = "0.9.0-rc.4", optional = true } aes-kw = { version = "0.3.0-rc.2", optional = true } ansi-x963-kdf = { version = "0.1.0-rc.2", optional = true } cbc = { version =...
1
1
1
a411a153bc2de5963fed31544e96e43e22997186
Arthur Gautier
2026-02-14T21:25:07
cms: add callbacks to the SignerInfo builder (#1991) This is used to add countersignatures/timestamps to a SignerInfo. Countersignatures are attached as unsigned attributes after the signature is emitted (input to the countersignature is the signature itself).
diff --git a/cms/src/builder.rs b/cms/src/builder.rs index 89f48133..a5b9f475 100644 --- a/cms/src/builder.rs +++ b/cms/src/builder.rs @@ -30,7 +30,7 @@ use cipher::{ rand_core::CryptoRng, }; use const_oid::ObjectIdentifier; -use core::{cmp::Ordering, fmt, marker::PhantomData}; +use core::{cmp::Ordering, fmt, fu...
1
102
5
d591fcea23fff2b5444f90bd1f314d94383054cc
Tony Arcieri
2026-02-14T21:24:20
Bump `digest` to v0.11 (#2237) Release PR: RustCrypto/traits#2300
diff --git a/Cargo.lock b/Cargo.lock index dca11e34..3c669189 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -548,14 +548,14 @@ dependencies = [ [[package]] name = "digest" -version = "0.11.0-rc.11" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02b42f1d9edf5207c1376...
7
9
9
75028e92df152c17be9f01f0d4d9935e12fc5c9c
Arthur Gautier
2026-02-13T19:41:51
cms: decode a `MessageDigest` from an `Attribute` (#1992)
diff --git a/cms/src/attr.rs b/cms/src/attr.rs index 6617fcf6..891273d5 100644 --- a/cms/src/attr.rs +++ b/cms/src/attr.rs @@ -5,8 +5,10 @@ use core::borrow::Borrow; use der::{ DecodeValue, EncodeValue, FixedTag, Length, Tag, asn1::{OctetString, OctetStringRef}, + oid::db::rfc6268, }; -use x509_cert::tim...
1
27
1
3a39d5e68474ea7d436810ababc7c34d4bb34442
Tony Arcieri
2026-02-13T16:54:20
der: remove obsolete lint configs (#2235) These were moved to the workspace-level in #2231
diff --git a/der/src/lib.rs b/der/src/lib.rs index 31ddc7a6..13453196 100644 --- a/der/src/lib.rs +++ b/der/src/lib.rs @@ -5,26 +5,7 @@ html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg", html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.s...
1
1
20
8ede832fcbdb4f8164e727651479716d9f0895b0
dishmaker
2026-02-13T15:24:01
der: followup to docs changes (#2233)
diff --git a/der/src/asn1/bit_string/allowed_len_bit_string.rs b/der/src/asn1/bit_string/allowed_len_bit_string.rs index baa4b99f..84712247 100644 --- a/der/src/asn1/bit_string/allowed_len_bit_string.rs +++ b/der/src/asn1/bit_string/allowed_len_bit_string.rs @@ -2,7 +2,7 @@ use core::ops::RangeInclusive; use crate::...
4
5
5
610211cfb98837b00dc5f9ceb46d28e69564c35d
Tony Arcieri
2026-02-13T04:54:42
der: remove deprecated `SetOf(Vec)::add` methods (#2232) These were deprecated in v0.7.6, in favor of `insert(_ordered)`. This removes them prior to the v0.8.0 release.
diff --git a/der/src/asn1/set_of.rs b/der/src/asn1/set_of.rs index 33b30f59..2233a062 100644 --- a/der/src/asn1/set_of.rs +++ b/der/src/asn1/set_of.rs @@ -48,17 +48,6 @@ where } } - /// Add an item to this [`SetOf`]. - /// - /// Items MUST be added in lexicographical order according to the [`De...
1
0
23
302dd3f6a0ac4d0b1027052ebeba5fc84fbd94f7
Tony Arcieri
2026-02-11T23:23:32
pkcs8 v0.11.0-rc.11 (#2228)
diff --git a/Cargo.lock b/Cargo.lock index 2cd5cb07..cdb3cf3a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1105,7 +1105,7 @@ dependencies = [ [[package]] name = "pkcs8" -version = "0.11.0-rc.10" +version = "0.11.0-rc.11" dependencies = [ "der", "hex-literal", diff --git a/pkcs8/Cargo.toml b/pkcs8/Cargo.toml in...
2
3
3
bc1c7479e99a84349a23c85643c10b5007533566
Tony Arcieri
2026-02-11T22:32:57
der v0.8.0-rc.12 (#2227)
diff --git a/Cargo.lock b/Cargo.lock index b7047881..2cd5cb07 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -493,7 +493,7 @@ dependencies = [ [[package]] name = "der" -version = "0.8.0-rc.11" +version = "0.8.0-rc.12" dependencies = [ "arbitrary", "bytes", diff --git a/der/Cargo.toml b/der/Cargo.toml index 645439...
2
3
3
70f94d1a12ff5c2b275e9533d1c14a25bf49994a
Tony Arcieri
2026-02-11T20:59:45
der: add `BitString*` => `Any` conversions (#2225) Closes #1983
diff --git a/der/src/asn1/bit_string.rs b/der/src/asn1/bit_string.rs index e6ec38c6..f28c5cfb 100644 --- a/der/src/asn1/bit_string.rs +++ b/der/src/asn1/bit_string.rs @@ -288,7 +288,7 @@ pub use self::allocating::BitString; #[cfg(feature = "alloc")] mod allocating { use super::*; - use crate::referenced::*; +...
1
25
1
6f39c12679bfa9bb36cb0cbe4af1336bf2736c40
Tony Arcieri
2026-02-11T20:58:57
der: remove `SequenceRef` lifetime; add constructor (#2224) Changes `SequenceRef` into a `repr(transparent)` newtype for `BytesRef`, removing the lifetime and moving impls to `&SequenceRef`. This unfortunately necessitated a breaking change to `pkcs8`, which AFAICT is the only thing that currently uses it.
diff --git a/der/src/asn1/sequence.rs b/der/src/asn1/sequence.rs index 9b7c8a70..27211ddb 100644 --- a/der/src/asn1/sequence.rs +++ b/der/src/asn1/sequence.rs @@ -2,8 +2,8 @@ //! `SEQUENCE`s to Rust structs. use crate::{ - BytesRef, DecodeValue, EncodeValue, Error, FixedTag, Header, Length, Reader, Result, Tag, ...
2
33
15
fd35048fafd34324caedd4ca14b34cd347174312
reddaisyy
2026-02-11T20:53:07
chore: remove repetitive word in comment (#2076)
diff --git a/pkcs8/src/lib.rs b/pkcs8/src/lib.rs index 35153edd..d8bf1ebd 100644 --- a/pkcs8/src/lib.rs +++ b/pkcs8/src/lib.rs @@ -51,7 +51,7 @@ //! //! ## Legacy DES-CBC and DES-EDE3-CBC (3DES) support (optional) //! When the `des-insecure` and/or `3des` features are enabled this crate provides support for -//! p...
1
1
1
69db155edbade1c155aac0680b9bb1d7dc3d82b2
dishmaker
2026-02-11T20:21:15
der: add `UnusedBits` newtype for `BitString` (#1956)
diff --git a/der/src/asn1/bit_string.rs b/der/src/asn1/bit_string.rs index 17a858a7..e6ec38c6 100644 --- a/der/src/asn1/bit_string.rs +++ b/der/src/asn1/bit_string.rs @@ -7,6 +7,7 @@ use crate::{ Result, Tag, ValueOrd, Writer, }; use core::{cmp::Ordering, iter::FusedIterator}; +use unused_bits::UnusedBits; #[...
1
93
40
20fad86b6c599b0c83e000beab3b6046e78d2284
Bernd Krietenstein
2026-02-11T20:19:47
cms: Added a test for BER-CMS (#1941)
diff --git a/cms/tests/cms_ber.rs b/cms/tests/cms_ber.rs new file mode 100644 index 00000000..86bd0dc6 --- /dev/null +++ b/cms/tests/cms_ber.rs @@ -0,0 +1,37 @@ +#[cfg(test)] +mod tests { + use cms::content_info::ContentInfo; + use der::Decode; + use hex_literal::hex; + + #[test] + fn convert_indefinite_...
1
37
0
8c5876da114715493900fb03f21856403ddd12e1
Tony Arcieri
2026-02-11T19:42:44
der v0.8.0-rc.11 (#2222)
diff --git a/Cargo.lock b/Cargo.lock index db740f5a..19e252d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -493,7 +493,7 @@ dependencies = [ [[package]] name = "der" -version = "0.8.0-rc.10" +version = "0.8.0-rc.11" dependencies = [ "arbitrary", "bytes", diff --git a/der/Cargo.toml b/der/Cargo.toml index f8eeb1...
2
2
2
accac4454767b6c3de87d4b562b3240f53273b07
Tony Arcieri
2026-02-11T19:18:01
der: propagate `Uint*` error positions (#2223) Closes #2062: this is the only one that still applies AFAICT
diff --git a/der/src/asn1/integer/uint.rs b/der/src/asn1/integer/uint.rs index fedb162d..baecdd0b 100644 --- a/der/src/asn1/integer/uint.rs +++ b/der/src/asn1/integer/uint.rs @@ -33,7 +33,9 @@ macro_rules! impl_encoding_traits { } let bytes = reader.read_into(&mut buf[..max_l...
1
4
2
48cb7303ed7f163c4abff23a4ae2ee498cc48e80
Tony Arcieri
2026-02-11T18:26:09
der: remove `SequenceOf` and `SetOf` (#2220) As suggested in #2218. These were built on a half-baked internal implementation of an `ArrayVec`-like type. Instead of vendoring our own half-baked `ArrayVec` type, we should choose an optional dependency we can use which lets you do things like borrow slices of the conte...
diff --git a/der/src/arrayvec.rs b/der/src/arrayvec.rs deleted file mode 100644 index 312beb3b..00000000 --- a/der/src/arrayvec.rs +++ /dev/null @@ -1,146 +0,0 @@ -//! Array-backed append-only vector type. -// TODO(tarcieri): use `core` impl of `ArrayVec` -// See: https://github.com/rust-lang/rfcs/pull/3316 - -use crat...
9
49
661
781961ca699f52a1c63046a462c2c243e3f3da76
Tony Arcieri
2026-02-11T17:18:28
der: only sort `SET OF` types with `EncodingRules::Der` (#2219) Preserves the original ordering of sets which are BER-encoded. Closes #1386
diff --git a/der/src/asn1/set_of.rs b/der/src/asn1/set_of.rs index c3e51e51..b67ecbdc 100644 --- a/der/src/asn1/set_of.rs +++ b/der/src/asn1/set_of.rs @@ -2,13 +2,11 @@ //! //! # Ordering Notes //! -//! Some DER serializer implementations fail to properly sort elements of a -//! `SET OF`. This is technically non-can...
1
13
9
147f41ffe07ad23fa62022c1af7771760b0ae0f7
Tony Arcieri
2026-02-11T16:51:35
der: have `SetOf(Vec)::insert` check for duplicates (#2217) Previously they would detect duplicates at sorting time, which would both leave the set not completely sorted, and containing duplicates, both of which are disallowed. This adds an eager initial check the given item is not a duplicate prior to the actual sta...
diff --git a/der/src/asn1/set_of.rs b/der/src/asn1/set_of.rs index b1452c4f..c3e51e51 100644 --- a/der/src/asn1/set_of.rs +++ b/der/src/asn1/set_of.rs @@ -46,8 +46,7 @@ where /// Add an item to this [`SetOf`]. /// - /// Items MUST be added in lexicographical order according to the - /// [`DerOrd`] imp...
1
54
5
a0bc127baaae32922079f04b4723d538a8bbdb3b
Tony Arcieri
2026-02-10T22:30:15
der: update link to core ArrayVec RFC
diff --git a/der/src/arrayvec.rs b/der/src/arrayvec.rs index 58cd83a9..312beb3b 100644 --- a/der/src/arrayvec.rs +++ b/der/src/arrayvec.rs @@ -1,6 +1,6 @@ //! Array-backed append-only vector type. // TODO(tarcieri): use `core` impl of `ArrayVec` -// See: https://github.com/rust-lang/rfcs/pull/2990 +// See: https://gi...
1
1
1
c0cde012d1f12bc8fafcb2febc648e75251e7502
Tony Arcieri
2026-02-09T16:58:45
Bump `rand` to v0.10 (#2212) Release PR: rust-random/rand#1729
diff --git a/Cargo.lock b/Cargo.lock index 3f8dd7af..e3e8ee2d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,7 @@ checksum = "04097e08a47d9ad181c2e1f4a5fabc9ae06ce8839a333ba9a949bcb0d31fd2a3" dependencies = [ "cipher", "cpubits", - "cpufeatures", + "cpufeatures 0.2.17", ] [[package]] @@ -213,12 +213,12 ...
6
27
19
68bc867fcbf448be22b0b497f0d206c477794c46
Tony Arcieri
2026-02-06T21:44:58
Cargo.lock: bump `time` dependency to v0.3.47 (#2208) Closes a Dependabot alert
diff --git a/Cargo.lock b/Cargo.lock index 31711f59..3f8dd7af 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -970,9 +970,9 @@ checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273" [[package]] name = "num-conv" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lan...
1
6
6
e4ffe7a57360b4bf1fcb3e162e2e06de193f662f
Tobias Hommel
2026-02-04T15:10:10
cmpv2: fix bad DER encoding of PollRepContent (#2197) Fixes `PollRepContent` being encoded as `SEQUENCE` instead of `SEQUENCE OF SEQUENCE`
diff --git a/cmpv2/src/poll.rs b/cmpv2/src/poll.rs index dce21d85..6136aa54 100644 --- a/cmpv2/src/poll.rs +++ b/cmpv2/src/poll.rs @@ -3,7 +3,8 @@ use alloc::vec::Vec; use der::asn1::Int; -use der::Sequence; +use der::{Sequence, ValueOrd}; +use x509_cert::impl_newtype; use crate::header::PkiFreeText; @@ -38,9 ...
2
86
3
ee7ce7d9e69e52eba9dc40e615c4e0d14abcdc85
Tony Arcieri
2026-02-03T03:10:47
Bump dependency requirements in `Cargo.toml`s (#2202) Updates the following dependency requirements which gets us onto releases which are all `rand_core` v0.10 / `getrandom` v0.4 compatible: - `aes` v0.9.0-rc.4 - `aes-kw` v0.3.0-rc.2 - `ansi-x963-kdf` v0.1.0-rc.2 - `cbc` v0.2.0-rc.3 - `cipher` v0.5.0-rc.8 - `digest` ...
diff --git a/Cargo.lock b/Cargo.lock index 7a379fd3..6bd98d61 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "aead" -version = "0.6.0-rc.8" +version = "0.6.0-rc.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc2b86f658b0f536411ee61c10cec83...
9
113
113
6a0b81d86812b39ce5f75562870c69af6d6233d5
Tony Arcieri
2026-02-03T00:52:40
Bump `rand_core` to v0.10; `getrandom` to v0.4 (#2198)
diff --git a/Cargo.lock b/Cargo.lock index f14cc1f8..7a379fd3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -213,13 +213,13 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "chacha20" -version = "0.10.0-rc.9" +version = "0.10.0-rc.10" source = "registry+https://gith...
7
59
64
18662bd9c8d41d8d1bc2a50f65e03bab24b8daba
Tony Arcieri
2026-01-26T16:02:36
Bump `rand` to v0.10.0-rc.8 (#2193)
diff --git a/Cargo.lock b/Cargo.lock index b4aa83c3..f34ac27b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -324,7 +324,7 @@ dependencies = [ "pbkdf2", "pem-rfc7468", "pkcs5", - "rand 0.10.0-rc.7", + "rand 0.10.0-rc.8", "rsa", "sha1", "sha2", @@ -1243,8 +1243,9 @@ dependencies = [ [[package]] name = "rand...
5
9
10
dcb7741cb3f52f2733ce32e45863751db8a375d2
Tony Arcieri
2026-01-25T22:52:48
cms v0.3.0-pre.2 (#2192)
diff --git a/Cargo.lock b/Cargo.lock index 0f330b15..b4aa83c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -306,7 +306,7 @@ dependencies = [ [[package]] name = "cms" -version = "0.3.0-pre.1" +version = "0.3.0-pre.2" dependencies = [ "aes", "aes-kw", diff --git a/cms/Cargo.toml b/cms/Cargo.toml index c95e3857..d...
5
5
5
4916461c652daec6c9f8cfc36ac43c2c71870a69
Tony Arcieri
2026-01-25T22:06:29
x509-cert v0.3.0-rc.4 (#2191)
diff --git a/Cargo.lock b/Cargo.lock index c96b66c3..0f330b15 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2136,7 +2136,7 @@ dependencies = [ [[package]] name = "x509-cert" -version = "0.3.0-rc.3" +version = "0.3.0-rc.4" dependencies = [ "arbitrary", "const-oid", diff --git a/cmpv2/Cargo.toml b/cmpv2/Cargo.tom...
9
11
11
77722a5c2b922a62ec81ab2d82c17b40d4a70e51
Tony Arcieri
2026-01-25T21:02:07
Bump `rsa` to v0.10.0-rc.14 (#2190)
diff --git a/Cargo.lock b/Cargo.lock index 579fb0f9..c96b66c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -251,9 +251,9 @@ dependencies = [ [[package]] name = "cipher" -version = "0.5.0-rc.5" +version = "0.5.0-rc.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b557bad79bc4267857570...
5
24
24
df57138fcb56758bbe7d10e39869696b171e2072
Tony Arcieri
2026-01-25T03:23:04
pkcs8 v0.11.0-rc.10 (#2189)
diff --git a/Cargo.lock b/Cargo.lock index 8f1a2372..579fb0f9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1089,7 +1089,7 @@ dependencies = [ [[package]] name = "pkcs8" -version = "0.11.0-rc.9" +version = "0.11.0-rc.10" dependencies = [ "der", "hex-literal", diff --git a/pkcs12/Cargo.toml b/pkcs12/Cargo.toml i...
3
3
3
bcbfd88e17e1839bdaacf2309dd6ad15481cc4b8
Tony Arcieri
2026-01-25T02:53:09
pkcs5 v0.8.0-rc.13 (#2188)
diff --git a/Cargo.lock b/Cargo.lock index c51a2ef2..8f1a2372 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1071,7 +1071,7 @@ dependencies = [ [[package]] name = "pkcs5" -version = "0.8.0-rc.12" +version = "0.8.0-rc.13" dependencies = [ "aes", "aes-gcm", diff --git a/cms/Cargo.toml b/cms/Cargo.toml index 899b05...
5
7
7
315413fcd4d48a3f711e782a1096d65ad0cc3ab5
Tony Arcieri
2026-01-25T02:14:40
Bump `rand_core` to v0.10.0-rc-6 (#2187) Also bumps all necessary dependencies to complete the upgrade. This release renames `(Try)RngCore` => `(Try)Rng`
diff --git a/Cargo.lock b/Cargo.lock index 85e8a851..c51a2ef2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -77,6 +77,12 @@ version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" +[[package]] +name = "anyhow" +v...
12
291
97
7368fd50e14a5a53dc552914a4585ed964417da4
Tony Arcieri
2026-01-23T04:09:56
sec1 v0.8.0-rc.13 (#2186)
diff --git a/Cargo.lock b/Cargo.lock index 8c23ca8f..85e8a851 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -805,9 +805,9 @@ dependencies = [ [[package]] name = "hybrid-array" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f471e0a81b2f90ffc0cb2f951...
2
4
4
12262433c13c73aa0b19d818f71ba3a2562d60fa
Tony Arcieri
2026-01-22T23:44:23
sec1: group imports (#2185)
diff --git a/sec1/src/lib.rs b/sec1/src/lib.rs index 68f54435..05fb47c8 100644 --- a/sec1/src/lib.rs +++ b/sec1/src/lib.rs @@ -40,29 +40,23 @@ mod private_key; #[cfg(feature = "der")] mod traits; -#[cfg(feature = "der")] -pub use der; - pub use crate::error::{Error, Result}; #[cfg(feature = "point")] pub use c...
4
8
21
eb63b10272698f9055b6197c09076dd69acfdc59
Tony Arcieri
2026-01-22T23:35:47
sec1: simplify `ModulusSize` bounds (#2184) - Removes explicit `'static + Copy` bounds: a `'static` bound to `Unsigned`, a supertrait of `ArraySize`, was added in paholg/typenum#171 which was released in `typenum` v1.16, where `hybrid-array` requires at least `typenum` v1.17. In the same PR you can see that `U...
diff --git a/sec1/Cargo.toml b/sec1/Cargo.toml index 51affee5..3edddc3b 100644 --- a/sec1/Cargo.toml +++ b/sec1/Cargo.toml @@ -20,7 +20,7 @@ rust-version = "1.85" base16ct = { version = "1", optional = true, default-features = false } ctutils = { version = "0.4", optional = true } der = { version = "0.8.0-rc.10", op...
2
9
15
655139a2bf58c5f4ab93278ce439d2169bd80ae1
Arthur Gautier
2026-01-21T18:24:12
chore(deps): bump `rand_core` to `0.10.0-rc-5` (#2182)
diff --git a/Cargo.lock b/Cargo.lock index 9b88bdd9..4326a293 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -207,13 +207,13 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "chacha20" -version = "0.10.0-rc.6" +version = "0.10.0-rc.8" source = "registry+https://githu...
21
122
142
701baca187f44a127a2ab96b8393a6f606932975
Tony Arcieri
2026-01-20T17:26:57
sec1 v0.8.0-rc.12 (#2180) Bumps `ctutils` to v0.4
diff --git a/Cargo.lock b/Cargo.lock index ad5391c4..9b88bdd9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1441,15 +1441,14 @@ dependencies = [ [[package]] name = "sec1" version = "0.8.0-rc.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2568531a8ace88b848310caa98fb2115b151ef924d54...
3
7
7
ba988101a6f68e468a1351c446a7590bef38efd8
Arthur Gautier
2026-01-19T23:03:30
pkcs5,pkcs8: new release candidates (#2176) pkcs5 0.8.0-rc.12 pkcs8 0.11.0-rc.9
diff --git a/Cargo.lock b/Cargo.lock index ac686036..ad5391c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1024,7 +1024,7 @@ dependencies = [ [[package]] name = "pkcs5" -version = "0.8.0-rc.11" +version = "0.8.0-rc.12" dependencies = [ "aes", "aes-gcm", @@ -1042,7 +1042,7 @@ dependencies = [ [[package]] na...
5
8
8
580bdcd13d78b3cae0efadc08553d52d7b6126b0
Arthur Gautier
2026-01-19T22:30:37
chore(deps): bump `cmov` to `0.4.6` (#2177) This fixes the use of vulnerable cmov versions See https://github.com/RustCrypto/utils/security/advisories/GHSA-2gqc-6j2q-83qp
diff --git a/Cargo.lock b/Cargo.lock index 92fdb5af..ac686036 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -281,9 +281,9 @@ checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" [[package]] name = "cmov" -version = "0.4.3" +version = "0.4.6" source = "registry+https://github.com/rust-lang/cr...
1
2
2
08b22e560845f25ab89e432ece3f7fa4330007c9
Arthur Gautier
2026-01-19T21:54:55
rand_core: upcoming API breaks (#2175) A recent change in the upcoming rand_core 0.10.0-rc-4 dropped the implied `CryptoRng: RngCore` from the trait. This forces any consumer to make the requirement explicit. This commit prepares for that.
diff --git a/cms/src/builder.rs b/cms/src/builder.rs index b81367bf..c79fb824 100644 --- a/cms/src/builder.rs +++ b/cms/src/builder.rs @@ -26,8 +26,10 @@ use alloc::{ vec::Vec, }; use cipher::{ - BlockModeEncrypt, Iv, Key, KeyIvInit, block_padding::Pkcs7, crypto_common::Generate, - rand_core::CryptoRng, + ...
13
68
51
8d757f95cfc824c5af4d320b40f8618046b949a0
Tony Arcieri
2026-01-12T05:17:38
mcf v0.6.0-rc.3 (#2170)
diff --git a/Cargo.lock b/Cargo.lock index 26619c66..8aa05573 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -902,7 +902,7 @@ dependencies = [ [[package]] name = "mcf" -version = "0.6.0-rc.2" +version = "0.6.0-rc.3" dependencies = [ "base64ct", "hex-literal", diff --git a/mcf/Cargo.toml b/mcf/Cargo.toml index 7f1...
2
2
2
ce44931298ccfbf0641a1a7c3ad5a959a93b94d2
Tony Arcieri
2026-01-12T02:54:32
pkcs12 v0.2.0-pre.0 (#2167)
diff --git a/Cargo.lock b/Cargo.lock index 4d71e3e5..5c9fbac9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1006,7 +1006,7 @@ dependencies = [ [[package]] name = "pkcs12" -version = "0.2.0-pre" +version = "0.2.0-pre.0" dependencies = [ "cms", "const-oid", diff --git a/pkcs12/Cargo.toml b/pkcs12/Cargo.toml index...
2
2
3
8d41f6add14f4eb66ec388d2eb540cd0dd3d8767
Tony Arcieri
2026-01-12T02:23:54
cms v0.3.0-pre.1 (#2166)
diff --git a/Cargo.lock b/Cargo.lock index 834566b4..4d71e3e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -300,7 +300,7 @@ dependencies = [ [[package]] name = "cms" -version = "0.3.0-pre.0" +version = "0.3.0-pre.1" dependencies = [ "aes", "aes-kw", diff --git a/cms/Cargo.toml b/cms/Cargo.toml index 1ba7fb99..7...
5
8
8
47d1a0759715b956a0b375474ff94687b206b7df
Tony Arcieri
2026-01-12T01:16:50
pkcs5: bump `pbkdf2` and `scrypt` (#2165)
diff --git a/Cargo.lock b/Cargo.lock index bf75a6a7..834566b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -956,9 +956,9 @@ dependencies = [ [[package]] name = "pbkdf2" -version = "0.13.0-rc.5" +version = "0.13.0-rc.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c015873c38594dfb772...
3
5
4
ea1efe1a4b3680d56bba7e6a0783742f578e82e2
Arthur Gautier
2026-01-08T22:59:57
chore(deps): bump elliptic-curve from `0.14.0-rc.19` to `0.14.0-rc.21` (#2164)
diff --git a/Cargo.lock b/Cargo.lock index 2cf38cba..bf75a6a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -414,9 +414,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" -version = "0.7.0-rc.14" +version = "0.7.0-rc.15" source = "registry+https://gi...
6
30
23
7d46f25f9bf41efbd7825320477c639ebff2ffa3
Tony Arcieri
2026-01-04T15:59:56
Bump `rand` to v0.10.0-rc.6 (#2159)
diff --git a/Cargo.lock b/Cargo.lock index db9e846d..a146a60e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -324,7 +324,7 @@ dependencies = [ "pbkdf2", "pem-rfc7468", "pkcs5", - "rand 0.10.0-rc.5", + "rand 0.10.0-rc.6", "rsa", "sha1", "sha2", @@ -1188,8 +1188,9 @@ dependencies = [ [[package]] name = "rand...
5
9
10
d76c2ce5ec1e82dc0d30f376c3f7dded6f827191
Tony Arcieri
2026-01-04T00:55:41
x509-cert v0.3.0-rc.3 (#2158)
diff --git a/Cargo.lock b/Cargo.lock index e29e0717..db9e846d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1944,7 +1944,7 @@ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" [[package]] name = "x509-cert" -version = "0.3.0-rc.2" +version = "0.3.0-rc.3" dependencies = [ "arbitrary", ...
9
12
12
4120b6b632d387a3b61f1e944454f0569f691f79
Tony Arcieri
2026-01-04T00:13:08
pkcs5 v0.8.0-rc.11 (#2157)
diff --git a/Cargo.lock b/Cargo.lock index b8f6755e..e29e0717 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1028,7 +1028,7 @@ dependencies = [ [[package]] name = "pkcs5" -version = "0.8.0-rc.10" +version = "0.8.0-rc.11" dependencies = [ "aes", "aes-gcm", diff --git a/cms/Cargo.toml b/cms/Cargo.toml index 25b253...
5
11
11
7a58866dcef7ddae2634667f5070e9311d565640
Tony Arcieri
2026-01-03T23:43:23
sec1 v0.8.0-rc.11 (#2156)
diff --git a/Cargo.lock b/Cargo.lock index 4538b532..b8f6755e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1442,7 +1442,7 @@ dependencies = [ [[package]] name = "sec1" -version = "0.8.0-rc.10" +version = "0.8.0-rc.11" dependencies = [ "base16ct 1.0.0", "ctutils", diff --git a/sec1/Cargo.toml b/sec1/Cargo.toml ...
2
2
2
124d7963d6984db10f8ddad84d501a855035c0da
Tony Arcieri
2026-01-03T23:22:18
Cargo.lock: bump dependencies (#2155) Updates the following dependencies: $ cargo update Updating git repository `https://github.com/rust-random/rand` Updating crates.io index Locking 37 packages to latest compatible versions Updating aead v0.6.0-rc.3 -> v0.6.0-rc.5 Updating anstyle v1.0.11 -...
diff --git a/Cargo.lock b/Cargo.lock index 0efe49a7..4538b532 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "aead" -version = "0.6.0-rc.3" +version = "0.6.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03d2d54c4d9e7006f132f615a167865b...
2
93
202
2236024fc39006403ebb0fcfd5167cc5a17afb2f
Tony Arcieri
2026-01-03T22:55:13
Bump `x509-cert` to v0.10.0-rc.11 (#2154)
diff --git a/Cargo.lock b/Cargo.lock index dc40b300..0efe49a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -446,8 +446,9 @@ dependencies = [ [[package]] name = "crypto-primes" -version = "0.7.0-dev" -source = "git+https://github.com/tarcieri/crypto-primes?branch=crypto-bigint%2Fv0.7.0-rc.13#f98697886371aa15446ca53ef...
5
9
9
2cc7e23c8c78eb3680fbecfbce3340be4138dacc
Tony Arcieri
2026-01-03T22:11:43
mcf v0.6.0-rc.2 (#2153)
diff --git a/Cargo.lock b/Cargo.lock index 34060128..dc40b300 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -905,7 +905,7 @@ dependencies = [ [[package]] name = "mcf" -version = "0.6.0-rc.1" +version = "0.6.0-rc.2" dependencies = [ "base64ct", "hex-literal", diff --git a/mcf/Cargo.toml b/mcf/Cargo.toml index ee6...
2
2
2
e6e002b50e5f0c4c85fc20b73a030b643f315ef7
Tony Arcieri
2026-01-03T21:44:22
mcf: add `Base64::B64` (#2152) Adds the variant of Base64 used by the PHC string format
diff --git a/mcf/src/base64.rs b/mcf/src/base64.rs index eff0682e..6ca10821 100644 --- a/mcf/src/base64.rs +++ b/mcf/src/base64.rs @@ -2,7 +2,9 @@ #![cfg(feature = "base64")] -use base64ct::{Base64Bcrypt, Base64ShaCrypt, Encoding as _, Error as B64Error}; +use base64ct::{ + Base64Bcrypt, Base64ShaCrypt, Base64U...
1
17
1
15dd0058b01b5569fbb882fafe85743162a04f71
Tony Arcieri
2026-01-03T20:21:37
sec1: add `ctutils` feature (#2150) Allows `ctutils` to be used as an alternative to `subtle`, following `crypto-bigint` making a similar migration
diff --git a/Cargo.lock b/Cargo.lock index 992afe27..3fb9e6f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1451,6 +1451,7 @@ name = "sec1" version = "0.8.0-rc.10" dependencies = [ "base16ct 1.0.0", + "ctutils", "der", "hex-literal", "hybrid-array", diff --git a/sec1/Cargo.toml b/sec1/Cargo.toml index ad61b311...
3
50
31
a19d826393fbe7fdc56a5c2451e9cdb625fc51af
Nathaniel McCallum
2026-01-03T19:28:09
x509-cert: improve extension API flexibility and ergonomics (#2120) Redesigned the extension trait interface to support more flexible ownership patterns and use cases. The trait is renamed from AsExtension to ToExtension and now consumes values by default, with implementations for references and tuples like (OID, boo...
diff --git a/x509-cert/src/builder.rs b/x509-cert/src/builder.rs index 29037748..811d0c5c 100644 --- a/x509-cert/src/builder.rs +++ b/x509-cert/src/builder.rs @@ -15,7 +15,7 @@ use crate::{ certificate::{self, Certificate, TbsCertificate, Version}, crl::{CertificateList, RevokedCert, TbsCertList}, ext::{...
12
84
48
ce4f1da74dfea8800f785b395f2c4c501518b111
Tony Arcieri
2026-01-03T19:10:16
Bump dependencies (#2148) Updates the following dependencies: - `cipher` v0.5.0-rc.3 - `crypto-bigint` v0.7.0-rc.13 - `crypto-common` v0.2.0-rc.8 - `crypto-primes` (via git) - `digest` v0.11.0-rc.5 - `ecdsa` v0.17.0-rc.10 - `elliptic-curve` v0.14.0-rc.18 - `getrandom` v0.4.0-rc.0 - `p256` v0.14.0-rc.1 - `primefield` v...
diff --git a/Cargo.lock b/Cargo.lock index b1eebb87..992afe27 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -251,9 +251,9 @@ dependencies = [ [[package]] name = "cipher" -version = "0.5.0-rc.2" +version = "0.5.0-rc.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "155e4a260750fa4f77546...
5
96
75
9946628f283d54d98489f3d372550026c9df8744
Tony Arcieri
2025-12-28T16:30:13
Use `getrandom` v0.4.0-rc.0 crate release (#2142)
diff --git a/Cargo.lock b/Cargo.lock index acd1fff6..7cd7139a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -653,12 +653,12 @@ dependencies = [ [[package]] name = "getrandom" version = "0.3.4" -source = "git+https://github.com/rust-random/getrandom.git?rev=f67c70110f706f80d7dd6fa52e38d0920754fe2c#f67c70110f706f80d7dd6...
2
6
7
dfa8651b8c40699e3a3faa7d4958f8fcb0045b86
Tony Arcieri
2025-12-28T01:40:30
phc v0.6.0-rc.1 (#2141)
diff --git a/Cargo.lock b/Cargo.lock index aeac6e32..acd1fff6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -958,7 +958,7 @@ dependencies = [ [[package]] name = "phc" -version = "0.6.0-rc.0" +version = "0.6.0-rc.1" dependencies = [ "base64ct", "getrandom 0.4.0-rc.0", diff --git a/phc/Cargo.toml b/phc/Cargo.toml ...
2
2
2
5da267568e6ab2c5f9bc9e71e0dd2bbbcb2f5a33
Tony Arcieri
2025-12-28T01:13:41
phc: bump `getrandom` to v0.4.0-rc.0 (#2139)
diff --git a/Cargo.lock b/Cargo.lock index 5507ed93..aeac6e32 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -306,7 +306,7 @@ dependencies = [ "digest", "ecdsa", "elliptic-curve", - "getrandom", + "getrandom 0.3.4", "hex-literal", "p256", "pbkdf2", @@ -547,7 +547,7 @@ dependencies = [ "base16ct", "crypto-b...
5
23
11
f1b052c513b1f4323ec41b768022840b5c081397
Tony Arcieri
2025-12-28T00:45:52
Bump `rand_core` to v0.10.0-rc-3 (#2138)
diff --git a/Cargo.lock b/Cargo.lock index b972df46..5507ed93 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -207,13 +207,13 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "chacha20" -version = "0.10.0-rc.5" +version = "0.10.0-rc.6" source = "registry+https://githu...
5
36
33
02eb077bc7a897b87b8eed85d3c65c7eef85cf95
Tony Arcieri
2025-12-26T18:22:40
der: bound `Decode(Value)::Error` on `core::error::Error` (#2137) Now that the `Error` trait is always available in `core`, we can use it as a bound for associated error types, which makes them more convenient to use in generic code.
diff --git a/der/src/decode.rs b/der/src/decode.rs index b003bec1..12fc538d 100644 --- a/der/src/decode.rs +++ b/der/src/decode.rs @@ -54,7 +54,7 @@ use crate::EncodingRules; )] pub trait Decode<'a>: Sized + 'a { /// Type returned in the event of a decoding error. - type Error: From<Error> + 'static; + typ...
2
12
4
23b3622382e00542f9307e6c7fda1505480c06fe
Tony Arcieri
2025-12-24T23:51:02
base64ct: deprecate `Base64Crypt` (#2135) Closes #2133 `Base64ShaCrypt` is, as far as I can tell, the standard Base64 alphabet used by all `crypt(3)` hashes. The only exception is `bcrypt` which uses a completely different alphabet (`./A-Za-z0-9`). As far as I can tell all algorithms that actually use the `./0-9A-Za...
diff --git a/base64ct/src/alphabet/crypt.rs b/base64ct/src/alphabet/crypt.rs index 24f8dcad..7e3ccbdc 100644 --- a/base64ct/src/alphabet/crypt.rs +++ b/base64ct/src/alphabet/crypt.rs @@ -1,16 +1,24 @@ //! `crypt(3)` Base64 encoding. +#![allow(deprecated)] + use super::{Alphabet, DecodeStep, EncodeStep}; -/// `cry...
4
18
9
e2a2a4bb1b1e7bc9c15ecb3d5ac1322451e58835
Tony Arcieri
2025-12-24T23:33:35
mcf: replace `Base64::Crypt` with `Base64::ShaCrypt` (#2134) Renames the `Base64::ShaCrypt` variant to `Base64::Crypt`, removing the previous option entirely. See RustCrypto/formats#2133: the implementation of `base64ct`'s `Base64Crypt` is mistaken: it implements the Base64 alphabet used by `crypt(3)`, but the specia...
diff --git a/base64ct/src/alphabet/shacrypt.rs b/base64ct/src/alphabet/shacrypt.rs index bf18b2bf..e89caa7f 100644 --- a/base64ct/src/alphabet/shacrypt.rs +++ b/base64ct/src/alphabet/shacrypt.rs @@ -5,11 +5,11 @@ use super::{Alphabet, DecodeStep, EncodeStep}; /// Little endian variant of the `crypt(3)` Base64 encoding...
3
23
32
d1e1e64567c3b69e15fd0539ec22fcdc88403c2f
Tony Arcieri
2025-12-24T22:21:53
mcf: avoid intermediate allocations in `push_displayable` (#2132) Writes directly to the underlying string, validating the added text comprises a valid `Field`, and truncating back to the original length in the event of an error
diff --git a/Cargo.lock b/Cargo.lock index d63945eb..b972df46 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -869,7 +869,7 @@ dependencies = [ [[package]] name = "mcf" -version = "0.6.0-rc.0" +version = "0.6.0-rc.1" dependencies = [ "base64ct", "hex-literal", diff --git a/mcf/Cargo.toml b/mcf/Cargo.toml index 7d9...
4
128
96
838590c38a4d6624d5aa5876f3b25914e8b32de5
Tony Arcieri
2025-12-24T20:27:14
mcf: expand `Error` into a proper enum (#2119) The old error type was a simple unit struct that couldn't express anything. This replaces it with an enum that can express various error conditions, including Base64 encoding errors, which might be helpful when trying to support a myriad of different Base64 encodings.
diff --git a/mcf/src/error.rs b/mcf/src/error.rs index c6807f5a..80b313c9 100644 --- a/mcf/src/error.rs +++ b/mcf/src/error.rs @@ -2,24 +2,69 @@ use core::fmt; +#[cfg(feature = "base64")] +use base64ct::Error as B64Error; + /// Result type for `mcf`. pub type Result<T> = core::result::Result<T, Error>; /// Er...
5
67
22
686de48f0d88e06a746dfa7189aa9f098da09b30
Tony Arcieri
2025-12-18T21:21:28
Remove `bincode` dev-dependency (#2127) `bincode` is unmaintained. See https://crates.io/crates/bincode/3.0.0 This adds `postcard` as an alternative for rustdocs
diff --git a/Cargo.lock b/Cargo.lock index 12283145..d63945eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -86,6 +86,15 @@ dependencies = [ "derive_arbitrary", ] +[[package]] +name = "atomic-polyfill" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf2bce30dfe09ef0...
4
129
113
dac075f859c82c6f0f71a7f71e9a3b0d2d38419b
Tony Arcieri
2025-12-11T20:19:39
mcf v0.6.0-rc.0 (#2121)
diff --git a/Cargo.lock b/Cargo.lock index 4f3eb758..dfd7cf7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -810,7 +810,7 @@ checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" [[package]] name = "mcf" -version = "0.6.0-pre" +version = "0.6.0-rc.0" dependencies = [ "base64ct", "hex-lite...
2
2
2
abb9708e1af00fa89d0c1ff63de3e75736cc4a24
Tony Arcieri
2025-12-10T20:11:44
mcf: avoid panic in `PasswordHash::push_displayable` (#2118) It's advised for `Display` impls not to error, but in the event that they do, this bubbles up the error rather than panicking
diff --git a/mcf/src/error.rs b/mcf/src/error.rs index 855093b5..c6807f5a 100644 --- a/mcf/src/error.rs +++ b/mcf/src/error.rs @@ -17,3 +17,9 @@ impl fmt::Display for Error { f.write_str("modular crypt format error") } } + +impl From<fmt::Error> for Error { + fn from(_: fmt::Error) -> Self { + ...
2
10
5
6863922a04b2fce8668a1459295febe0d35bfcad
Tony Arcieri
2025-12-10T19:13:39
mcf: add `PasswordHash::as_password_hash_ref` (#2117) Adds an explicit method for borrowing a `&PasswordHashRef` from `&PasswordHash`, which is useful over `AsRef`/`Borrow`/`Deref` when avoiding inference and being explicit is preferable. To denote the pending breaking changes, this also bumps the version to v0.6.0-p...
diff --git a/Cargo.lock b/Cargo.lock index 4f9a4a4e..4f3eb758 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -810,7 +810,7 @@ checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039" [[package]] name = "mcf" -version = "0.2.0" +version = "0.6.0-pre" dependencies = [ "base64ct", "hex-literal",...
3
21
6
8c721b59539a6456596b1f8843edc8130a5149ef
Tony Arcieri
2025-12-10T18:14:58
mcf: remove lifetime from `PasswordHashRef` (#2116) NOTE: breaking change Changes the `PasswordHashRef` type into a `repr(transparent)` newtype for `str`, constructing it as `&PasswordHashRef` using an unsafe pointer cast which is only invoked after first validating it's well-formed. This makes it possible to impl `...
diff --git a/mcf/src/lib.rs b/mcf/src/lib.rs index 400c197b..98dbaf05 100644 --- a/mcf/src/lib.rs +++ b/mcf/src/lib.rs @@ -5,7 +5,7 @@ html_logo_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.svg", html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/media/6ee8e381/logo.sv...
1
91
55
9168a026f1afb3f690b2863587a280a1738c254a
Tony Arcieri
2025-12-10T18:04:03
mcf: add `PasswordHash::push_displayable` (#2115) Adds a method for pushing a field onto an MCF hash which impls the `fmt::Display` trait. The idea is it can eventually avoid an intermediate allocation as an optimization, although it uses one for now (with a TODO).
diff --git a/mcf/src/lib.rs b/mcf/src/lib.rs index 5babd886..400c197b 100644 --- a/mcf/src/lib.rs +++ b/mcf/src/lib.rs @@ -102,7 +102,7 @@ impl<'a> TryFrom<&'a str> for PasswordHashRef<'a> { #[cfg(feature = "alloc")] mod allocating { use crate::{Error, Field, Fields, PasswordHashRef, Result, fields, validate, va...
2
16
2
07fa4bb1ec0ed139d5821e1710c5eb95d9858c23
Tony Arcieri
2025-12-10T17:30:55
mcf: impl `Display` for `PasswordHashRef` (#2114) It's a `str` newtype, so make it possible to display the underlying string
diff --git a/mcf/src/lib.rs b/mcf/src/lib.rs index 1260342f..5babd886 100644 --- a/mcf/src/lib.rs +++ b/mcf/src/lib.rs @@ -20,6 +20,7 @@ mod base64; mod error; mod fields; +use core::fmt; pub use error::{Error, Result}; pub use fields::{Field, Fields}; @@ -71,6 +72,12 @@ impl<'a> PasswordHashRef<'a> { } }...
1
7
0
a20bcb848675ee234cf0058e895c378d77ca51f9
Nathaniel McCallum
2025-12-10T17:30:34
refactor(x509-cert): decompose AsExtension into Criticality + AsExtension (#2109) The existing `AsExtension` trait has two design problems: 1. **Criticality is coupled to the type.** The `critical()` method attempts to determine criticality from `subject` and `extensions`, but these are not the only factors. Po...
diff --git a/x509-cert/src/builder.rs b/x509-cert/src/builder.rs index 32bdbfd0..29037748 100644 --- a/x509-cert/src/builder.rs +++ b/x509-cert/src/builder.rs @@ -219,10 +219,12 @@ where /// Extensions need to implement [`AsExtension`], examples may be found in /// in [`AsExtension` documentation](../ext/trai...
11
73
38
7630b2e06281040bec082d7a5353e986b8eb430b
Tony Arcieri
2025-12-10T00:02:33
phc v0.6.0-rc.0 (#2113) Version number has been seleted to match the `password-hash` crate
diff --git a/Cargo.lock b/Cargo.lock index 18f3aa73..4f9a4a4e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -887,7 +887,7 @@ dependencies = [ [[package]] name = "phc" -version = "0.3.0-pre" +version = "0.6.0-rc.0" dependencies = [ "base64ct", "getrandom", diff --git a/phc/Cargo.toml b/phc/Cargo.toml index 5b9859...
2
2
2
90cb9fb4afb1c814288fa9b6471cc2d514843303
Tony Arcieri
2025-12-09T23:37:45
phc: deprecate `PasswordHashString` (#2112) It was originally added because `PasswordHash` had a lifetime, so it provided an owned alternative. But now `PasswordHash` is fully owned (and also fully stack allocated, so no `alloc` dependency). The suggested replacements are using `PasswordHash` if the goal was to have ...
diff --git a/phc/src/lib.rs b/phc/src/lib.rs index 90783361..88ccbcc9 100644 --- a/phc/src/lib.rs +++ b/phc/src/lib.rs @@ -174,8 +174,10 @@ impl PasswordHash { }) } - /// Serialize this [`PasswordHash`] as a [`PasswordHashString`]. + /// DEPRECATED: serialize this [`PasswordHash`] as a [`PasswordH...
1
15
4
6df42a57ddc4fd5b0a279f812ab9ed318ef66dcd
Tony Arcieri
2025-11-25T15:52:57
Bump `p256` to v0.14.0-rc.1 (#2105) Switches from a git dependency to a crate release
diff --git a/Cargo.lock b/Cargo.lock index c69db95c..2d723bf4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -504,9 +504,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.17.0-rc.8" +version = "0.17.0-rc.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b56e025680b64794fad8...
6
45
46
4f008454941de86e8d6bb16d1474ea8a1e22bd44
Arthur Gautier
2025-11-14T17:33:12
cms: fixup support for upcoming elliptic-curve release (#2100)
diff --git a/cms/src/builder/kari.rs b/cms/src/builder/kari.rs index e05a9fc9..88564c7e 100644 --- a/cms/src/builder/kari.rs +++ b/cms/src/builder/kari.rs @@ -305,7 +305,7 @@ where ) = match self.eckey_encryption_info { EcKeyEncryptionInfo::Ec(recipient_public_key) => { // Generat...
1
1
1
0065d36622bd972137ef9a7eeb9fbb6b671c3643
Tony Arcieri
2025-11-08T18:43:56
der v0.8.0-rc.10 (#2098)
diff --git a/Cargo.lock b/Cargo.lock index 1ff6f8ad..a0d1cc80 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -437,7 +437,7 @@ dependencies = [ [[package]] name = "der" -version = "0.8.0-rc.9" +version = "0.8.0-rc.10" dependencies = [ "arbitrary", "bytes", @@ -944,7 +944,7 @@ dependencies = [ [[package]] name ...
15
21
21
02fdf7d3dc0f2cd2f976afb606eef1d4d159610a
Tony Arcieri
2025-11-08T00:23:07
der: make `PemReader<'_>` impl `Reader<'static>` (#2095) The PEM reader does on-the-fly decoding and therefore can't borrow from its input at all. Having it impl `Reader<'static>` allows it to produce outputs that outlive its input buffer. In theory this means `Cow<'static, T>` should impl `DecodePem`.
diff --git a/der/src/reader/pem.rs b/der/src/reader/pem.rs index f5ba4115..2d9a0411 100644 --- a/der/src/reader/pem.rs +++ b/der/src/reader/pem.rs @@ -5,7 +5,6 @@ use crate::{EncodingRules, Error, ErrorKind, Length, Result}; use pem_rfc7468::Decoder; /// `Reader` type which decodes PEM on-the-fly. -#[cfg(feature = ...
1
2
5
0c63159a7dba8960e2eb8b116db22e949191860e
Tony Arcieri
2025-11-07T23:58:12
der: have `PemReader` decode to `Cow::Owned` (#2094) Adds an associated `CAN_READ_SLICE` boolean flag to the `Reader` trait. When false, `Cow` decodes the owned type rather than the borrow one. This makes it possible to use `Cow` with `PemReader`, where it will automatically decode the owned type.
diff --git a/der/src/decode.rs b/der/src/decode.rs index 051e84a9..b003bec1 100644 --- a/der/src/decode.rs +++ b/der/src/decode.rs @@ -212,14 +212,20 @@ where } #[cfg(feature = "alloc")] -impl<'a, T> DecodeValue<'a> for Cow<'a, T> +impl<'a, T, E> DecodeValue<'a> for Cow<'a, T> where T: ToOwned + ?Sized, - ...
4
17
4
c8ff2bd7fdea094474fa1ae4955f6c5d20be0999
Tony Arcieri
2025-11-07T23:23:57
der: impl `DecodeValue`/`EncodeValue`/`Tagged` for `Cow` (#2093) Also includes a POC that the traits work with `OctetStringRef`
diff --git a/der/src/asn1/octet_string.rs b/der/src/asn1/octet_string.rs index 10159ce0..e080a4d1 100644 --- a/der/src/asn1/octet_string.rs +++ b/der/src/asn1/octet_string.rs @@ -383,6 +383,9 @@ mod tests { }; use hex_literal::hex; + #[cfg(feature = "alloc")] + use {crate::Encode, alloc::borrow::Cow};...
4
68
2