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
c916ce1996c77cbb479a295bc02a485708bd8431
Tony Arcieri
2025-11-07T15:32:04
cms+x509-cert+x509-ocsp: bump `rsa` to v0.10.0-rc.10 (#2092)
diff --git a/Cargo.lock b/Cargo.lock index 1196db6c..b4bdc5b9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -417,8 +417,9 @@ dependencies = [ [[package]] name = "crypto-primes" -version = "0.7.0-pre.3" -source = "git+https://github.com/baloo/crypto-primes.git?branch=baloo%2Frand_core%2F0.10.0-rc.2#620edda8ea6be672697...
5
10
10
2bc9a737b0ca948659cb3221f50f031cba4ec184
Tony Arcieri
2025-11-06T20:16:15
pkcs5: bump `scrypt` dependency to v0.12.0-rc.3 (#2090)
diff --git a/Cargo.lock b/Cargo.lock index 65be7510..1196db6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1308,9 +1308,9 @@ dependencies = [ [[package]] name = "scrypt" -version = "0.12.0-rc.2" +version = "0.12.0-rc.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3c33c6091950068d...
2
3
3
e031c361d6aa7026f17ade94e345fa69f568a3d5
Tony Arcieri
2025-11-06T19:55:43
pkcs8 v0.11.0-rc.8 (#2089)
diff --git a/Cargo.lock b/Cargo.lock index 235a0e9d..65be7510 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -961,7 +961,7 @@ dependencies = [ [[package]] name = "pkcs8" -version = "0.11.0-rc.7" +version = "0.11.0-rc.8" dependencies = [ "der", "hex-literal", diff --git a/pkcs12/Cargo.toml b/pkcs12/Cargo.toml inde...
3
3
3
490993ad74160353af6315d36a9564b0d63234a0
Tony Arcieri
2025-11-06T19:12:48
pkcs5 v0.8.0-rc.9 (#2087)
diff --git a/Cargo.lock b/Cargo.lock index 778bfd36..235a0e9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -943,7 +943,7 @@ dependencies = [ [[package]] name = "pkcs5" -version = "0.8.0-rc.8" +version = "0.8.0-rc.9" dependencies = [ "aes", "aes-gcm", diff --git a/cms/Cargo.toml b/cms/Cargo.toml index fc58425d.....
5
6
6
ef0c8382942056390c628f8b3aec71c5ada95a66
dishmaker
2025-11-06T18:42:06
der: docs: rename variable encoder -> writer and improve example (#2078)
diff --git a/der/src/asn1/general_string.rs b/der/src/asn1/general_string.rs index 97bc963e..c1133f2d 100644 --- a/der/src/asn1/general_string.rs +++ b/der/src/asn1/general_string.rs @@ -30,7 +30,7 @@ impl EncodeValue for GeneralStringRef<'_> { self.inner.value_len() } - fn encode_value(&self, encode...
11
76
80
d5b06c505b5772d64affccc4aeff26c839083ba3
Tony Arcieri
2025-11-06T18:23:34
Bump `rand_core` to v0.10.0-rc-2 (#2086) This also accordingly bumps all of the underlying crates to versions which (transitively) depend on the `rand`/`rand_core` v0.10 release series
diff --git a/Cargo.lock b/Cargo.lock index 0f79389a..eb72a455 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" [[package]] name = "aead" -version = "0.6.0-rc.2" +version = "0.6.0-rc.3" source = "registry+https://github.com/rust...
11
164
136
a152ff13638c047e6ecd2f997699a5c11292628c
Nick Mathewson
2025-11-06T14:36:32
base64ct, base32ct: proptests for decoder equivalence with base32/64 (#2085) For the base64 case, this MR adds proptests to ensure that base64 and base64ct accept the same inputs when decoding, and produce the same outputs when decoding them. For the base32 case, that property isn't actually true. Instead, the propt...
diff --git a/base32ct/tests/proptests.rs b/base32ct/tests/proptests.rs index aa0a36d2..89f1ebb7 100644 --- a/base32ct/tests/proptests.rs +++ b/base32ct/tests/proptests.rs @@ -34,4 +34,35 @@ proptest! { let expected = base32::encode(RFC4648_PADDED, &bytes).to_lowercase(); prop_assert_eq!(actual, expect...
2
51
1
f4c5e1442769e4d5160acdb0b8d14b18bbc8c9c0
Nick Mathewson
2025-11-05T22:14:04
base32ct: avoid panics when decoding inputs; enforce lengths (#2084) Formerly, Encoding::decode would write beyond the end of `dst` when the input (ignoring padding) had (length%8) == 1, 3, or 6. These lengths are not valid base32, so we now reject them.
diff --git a/base32ct/src/encoding.rs b/base32ct/src/encoding.rs index 1343d1ca..6b50cd3b 100644 --- a/base32ct/src/encoding.rs +++ b/base32ct/src/encoding.rs @@ -101,11 +101,15 @@ impl<T: Alphabet> Encoding for T { c[6] = Self::decode_5bits(src_rem[6]); }; - if !src_rem.is_empty() { + ...
2
20
3
19aa61b9dda5a4b60e5883b8f612bfa309d8d6a4
dishmaker
2025-10-28T14:21:57
der: track reader error position in `ObjectIdentifier::decode_value` (#2080)
diff --git a/der/src/asn1/oid.rs b/der/src/asn1/oid.rs index cb8869af..86b8fbcf 100644 --- a/der/src/asn1/oid.rs +++ b/der/src/asn1/oid.rs @@ -16,11 +16,14 @@ impl<'a, const MAX_SIZE: usize> DecodeValue<'a> for ObjectIdentifier<MAX_SIZE> { let mut buf = [0u8; MAX_SIZE]; let slice = buf .g...
1
5
2
5755d9ba61833d439ebd47a3bd99f5305a62d51d
dishmaker
2025-10-28T13:55:22
der: track reader error position in `GeneralizedTime::decode_value` (#2079)
diff --git a/der/src/asn1/generalized_time.rs b/der/src/asn1/generalized_time.rs index c000c95f..ef8d9ad1 100644 --- a/der/src/asn1/generalized_time.rs +++ b/der/src/asn1/generalized_time.rs @@ -74,6 +74,42 @@ impl GeneralizedTime { impl_any_conversions!(GeneralizedTime); +/// Creates a [`GeneralizedTime`] from it...
1
45
17
d4c7f2580eea74012d23e364699a56afd61ee562
dishmaker
2025-10-27T15:29:04
der: docs: add `EncodeValue` trait example (#2075) * der: docs: add `EncodeValue` trait example + doc fn decode_value * der: docs: encode_to_slice instead of to_der * der: docs: rm decode_value comment
diff --git a/der/src/encode.rs b/der/src/encode.rs index 4a4b1d1d..72827b24 100644 --- a/der/src/encode.rs +++ b/der/src/encode.rs @@ -41,8 +41,8 @@ use crate::{FixedTag, Tag}; /// self.0.encoded_len() /// } /// -/// fn encode(&self, encoder: &mut impl Writer) -> der::Result<()> { -/// self.0...
1
37
7
6403a72bdd5664f7c2b397eb212a37e9491d4205
Tony Arcieri
2025-10-20T14:39:48
base64ct: add notes on `crypt(3)` alphabet variants (#2073) Notes some additional algorithms that use the `Base64ShaCrypt` alphabet including `scrypt` and `yescrypt`, and also notes it's a little endian variant of Base64.
diff --git a/base64ct/src/alphabet/crypt.rs b/base64ct/src/alphabet/crypt.rs index 96eb0653..24f8dcad 100644 --- a/base64ct/src/alphabet/crypt.rs +++ b/base64ct/src/alphabet/crypt.rs @@ -8,6 +8,9 @@ use super::{Alphabet, DecodeStep, EncodeStep}; /// [.-9] [A-Z] [a-z] /// 0x2e-0x39, 0x41-0x5a, 0x61-0x7a ///...
2
15
5
f5d4105ffa61266101dd394734fe1db0682fca33
Tony Arcieri
2025-10-20T14:24:01
Switch from `doc_auto_cfg` to `doc_cfg` (#2072) See RustCrypto/traits#2028
diff --git a/base16ct/src/lib.rs b/base16ct/src/lib.rs index 296a70ba..970966e9 100644 --- a/base16ct/src/lib.rs +++ b/base16ct/src/lib.rs @@ -1,5 +1,5 @@ #![no_std] -#![cfg_attr(docsrs, feature(doc_auto_cfg))] +#![cfg_attr(docsrs, feature(doc_cfg))] #![doc( html_logo_url = "https://raw.githubusercontent.com/Rus...
22
22
22
57fdf0a232dd6158fa7db3cdbb5f38363573686b
dishmaker
2025-10-17T17:12:52
der: docs: add `Encode` trait example (#2071)
diff --git a/der/src/encode.rs b/der/src/encode.rs index 822a435d..4a4b1d1d 100644 --- a/der/src/encode.rs +++ b/der/src/encode.rs @@ -21,7 +21,32 @@ use crate::{FixedTag, Tag}; /// Encode trait produces a complete TLV (Tag-Length-Value) structure. /// -/// As opposed to [`EncodeValue`], implementer is expected to ...
1
26
1
6f3f78096adf95c7b705a7562756210577ac6d94
dishmaker
2025-10-16T17:07:24
der: docs: add `DecodeValue` trait example (#2070) * der: docs: add `DecodeValue` trait example * der: docs: MyByteMonth struct example
diff --git a/der/src/decode.rs b/der/src/decode.rs index 58b6b4ba..700c3145 100644 --- a/der/src/decode.rs +++ b/der/src/decode.rs @@ -158,6 +158,36 @@ impl<T: DecodeOwned<Error = Error> + PemLabel> DecodePem for T { /// /// As opposed to [`Decode`], implementer is expected to read the inner content only, /// withou...
2
31
1
8da3b40d8b7e0645088a3057ef0349b5a5285ebe
Robin Lambertz
2025-10-14T22:33:44
x509-tsp: Implement GeneralizedTimeNanos::from_unix_duration (#2068)
diff --git a/x509-tsp/src/generalized_time_nanos.rs b/x509-tsp/src/generalized_time_nanos.rs index 62230fbb..ec9fba28 100644 --- a/x509-tsp/src/generalized_time_nanos.rs +++ b/x509-tsp/src/generalized_time_nanos.rs @@ -37,6 +37,18 @@ impl GeneralizedTimeNanos { pub fn to_unix_duration(&self) -> Duration { ...
1
12
0
6316b262b6704b3a95d751101e39d99b4f58fc76
Arthur Gautier
2025-10-14T20:41:40
x509-tsp: impl From<GeneralizedTime> for GeneralizedTimeNanos (#2065) Hopefully that can smooth out transition to `GeneralizedTimeNanos`
diff --git a/x509-tsp/src/generalized_time_nanos.rs b/x509-tsp/src/generalized_time_nanos.rs index 965e8494..62230fbb 100644 --- a/x509-tsp/src/generalized_time_nanos.rs +++ b/x509-tsp/src/generalized_time_nanos.rs @@ -2,7 +2,7 @@ use core::str::FromStr; use core::time::Duration; use der::{ DateTime, DecodeValue...
1
10
1
a3c89346d5c10d7fa58ce417efae4b1d3845c16d
Robin Lambertz
2025-10-11T05:16:15
Allow TstInfo to read GeneralizedTime with subseconds (#2063)
diff --git a/x509-tsp/src/generalized_time_nanos.rs b/x509-tsp/src/generalized_time_nanos.rs new file mode 100644 index 00000000..965e8494 --- /dev/null +++ b/x509-tsp/src/generalized_time_nanos.rs @@ -0,0 +1,383 @@ +use core::str::FromStr; +use core::time::Duration; +use der::{ + DateTime, DecodeValue, EncodeValue,...
2
389
2
be8bde399e0a8abbc5d20bf05ef508f1d371fd41
dishmaker
2025-10-10T16:27:43
der: add doc example for `Decode` (#2064)
diff --git a/der/src/decode.rs b/der/src/decode.rs index 452a624c..58b6b4ba 100644 --- a/der/src/decode.rs +++ b/der/src/decode.rs @@ -23,6 +23,29 @@ use crate::EncodingRules; /// /// When decoding fails, a [`Decode::Error`] type is thrown. /// Most ASN.1 DER objects return a builtin der [`Error`] type as [`Decode::...
1
23
0
7d9374402d2295e18581c7f9733b80adb3675870
dishmaker
2025-10-09T16:40:04
der: add docs for `Error` and `ErrorKind` (#2058) * der: add docs for `Error` and `ErrorKind` * der: reader.error(..) example
diff --git a/der/src/error.rs b/der/src/error.rs index aeb10b8b..215daf15 100644 --- a/der/src/error.rs +++ b/der/src/error.rs @@ -15,6 +15,21 @@ use crate::pem; pub type Result<T> = core::result::Result<T, Error>; /// Error type. +/// +/// ## Example +/// ``` +/// use der::{Decode, ErrorKind, Reader}; +/// +/// st...
1
24
0
3ee0028ef967b0831df6fc6338e2620ea03efd43
dishmaker
2025-10-07T16:18:24
Derive `Default` for enums (#2057) * Derive `Default` for enums * cargo fmt --all
diff --git a/pkcs1/src/params.rs b/pkcs1/src/params.rs index 3b97d709..186e6379 100644 --- a/pkcs1/src/params.rs +++ b/pkcs1/src/params.rs @@ -25,17 +25,13 @@ const SHA_1_AI: AlgorithmIdentifierRef<'_> = AlgorithmIdentifierRef { /// [RFC 8017 Appendix 2.3]: https://datatracker.ietf.org/doc/html/rfc8017#appendix-A.2.3 ...
3
6
18
d4883fc5dd55c308c58c4db23adfbaabccaf3ac4
dishmaker
2025-10-03T15:55:03
der: add doc examples for `Tagged`, `FixedTag` and `IsConstructed` (#2052)
diff --git a/der/src/tag.rs b/der/src/tag.rs index 12e6262b..b0c316b9 100644 --- a/der/src/tag.rs +++ b/der/src/tag.rs @@ -14,12 +14,41 @@ use core::{cmp::Ordering, fmt}; const CONSTRUCTED_FLAG: u8 = 0b100000; /// Types which have a constant ASN.1 [`Tag`]. +/// +/// ## Example +/// ``` +/// use der::{FixedTag, Tag}...
1
61
0
c21e18cc5601cf09cad0bbf80007385b1dbc9097
dishmaker
2025-10-03T15:54:46
der: improve docs for `Encode` and `Decode` (#2053)
diff --git a/der/src/decode.rs b/der/src/decode.rs index d82bfa9a..452a624c 100644 --- a/der/src/decode.rs +++ b/der/src/decode.rs @@ -16,10 +16,13 @@ use alloc::boxed::Box; #[cfg(feature = "ber")] use crate::EncodingRules; -/// Decoding trait. +/// Decode trait parses a complete TLV (Tag-Length-Value) structure. ...
2
28
14
3d93e85691caf0a297b813c378b6f601bf5dce18
dishmaker
2025-10-02T16:13:39
der: add doc examples for `Tag`, `Length` and `Header` (#2051)
diff --git a/der/src/header.rs b/der/src/header.rs index 0addf3a7..00ad6690 100644 --- a/der/src/header.rs +++ b/der/src/header.rs @@ -7,6 +7,27 @@ use crate::{Decode, DerOrd, Encode, Error, ErrorKind, Length, Reader, Result, Ta use core::cmp::Ordering; /// ASN.1 DER headers: tag + length component of TLV-encoded v...
3
76
0
c31a4fefb6a4522c8702fad4e6c4238e571d0c8e
Tony Arcieri
2025-09-17T14:08:51
der_derive v0.8.0-rc.6 (#2044)
diff --git a/Cargo.lock b/Cargo.lock index 4db213ab..d352e37e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -473,7 +473,7 @@ dependencies = [ [[package]] name = "der_derive" -version = "0.8.0-rc.5" +version = "0.8.0-rc.6" dependencies = [ "proc-macro2", "quote", diff --git a/der/Cargo.toml b/der/Cargo.toml index...
3
3
3
1985c7f813f6d06e77b668d288651477330e5482
Arthur Gautier
2025-09-17T13:30:20
der_derive: remove `OctetStringRefDeriveHack` (#2043) Fixes #2039
diff --git a/der/src/asn1.rs b/der/src/asn1.rs index 0f2c2d9d..60a7b2de 100644 --- a/der/src/asn1.rs +++ b/der/src/asn1.rs @@ -44,7 +44,7 @@ pub use self::{ ia5_string::Ia5StringRef, integer::{int::IntRef, uint::UintRef}, null::Null, - octet_string::{OctetStringRef, OctetStringRefDeriveHack}, + oct...
4
7
15
4db4c09f2083b5fccd08e9451b13682ca114f09f
Tony Arcieri
2025-09-15T22:56:05
Cut new prereleases (#2042) Releases the following: - `pkcs1` v0.8.0-rc.4 - `pkcs5` v0.8.0-rc.8 - `pkcs8` v0.11.0-rc.7 - `sec1` v0.8.0-rc.10 - `x509-cert` v0.3.0-rc.2
diff --git a/Cargo.lock b/Cargo.lock index 0258892c..4db213ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -412,9 +412,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" -version = "0.7.0-rc.4" +version = "0.7.0-rc.6" source = "registry+https://gith...
7
35
35
43631ed88772319301323ce094148ac7b106613a
Tony Arcieri
2025-09-15T22:25:16
der v0.8.0-rc.9 (#2041) Also releases: `der_derive` v0.8.0-rc.5
diff --git a/Cargo.lock b/Cargo.lock index 23e82418..0258892c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -456,7 +456,7 @@ dependencies = [ [[package]] name = "der" -version = "0.8.0-rc.8" +version = "0.8.0-rc.9" dependencies = [ "arbitrary", "bytes", @@ -473,7 +473,7 @@ dependencies = [ [[package]] name =...
16
19
19
a293368c5ce296b7b15f8f4dbd2ce2efd31f655e
Andrew Scull
2025-09-15T22:10:49
der: simplify `der_cmp` for `Length` (#1997) The order of a DER encoded length is the same as the order of the length as an integer so avoid overhead of encoding and comparing the encoded bytes.
diff --git a/der/src/length.rs b/der/src/length.rs index 0273db16..90eafe54 100644 --- a/der/src/length.rs +++ b/der/src/length.rs @@ -45,10 +45,6 @@ impl Length { #[cfg(feature = "ber")] pub(crate) const EOC_LEN: Self = Self::new(2); - /// Maximum number of octets in a DER encoding of a [`Length`] using...
1
2
11
f7905f17058a099963f44037ef645e7253488eed
Tony Arcieri
2025-09-15T20:12:32
der: rename `OctetStringRefDeriveHack` (#2040) This is a temporary type introduced in #1998 until `der_derive` can be updated to use the new type shape (see #2039).
diff --git a/der/src/asn1.rs b/der/src/asn1.rs index b2c8b0fe..0f2c2d9d 100644 --- a/der/src/asn1.rs +++ b/der/src/asn1.rs @@ -44,7 +44,7 @@ pub use self::{ ia5_string::Ia5StringRef, integer::{int::IntRef, uint::UintRef}, null::Null, - octet_string::{OctetStringRef, OctetStringRef2}, + octet_string...
3
8
5
3d56da5fcbb0a174a9f69ba9a48c8652000abd30
Tony Arcieri
2025-09-15T19:43:51
der: remove lifetime from `OctetStringRef` (#1998) Following the pattern of #1921, removes the lifetime from the struct, instead changing `OctetStringRef` to a proper reference type to be used as `&OctetStringRef`. This makes it possible to `impl Borrow<OctetStringRef> for OctetString` and `impl ToOwned for OctetStri...
diff --git a/cms/src/attr.rs b/cms/src/attr.rs index 2092c7c7..6617fcf6 100644 --- a/cms/src/attr.rs +++ b/cms/src/attr.rs @@ -1,11 +1,11 @@ //! Attribute-related types +//! use alloc::{boxed::Box, vec}; +use core::borrow::Borrow; use der::{ DecodeValue, EncodeValue, FixedTag, Length, Tag, asn1::{OctetStri...
18
146
98
07cc0060d7bf283962cc057c466c9a1e9956dd2b
Tony Arcieri
2025-09-09T23:59:15
Update Cargo.lock Running any cargo command locally modifies its contents to what's included in this commit
diff --git a/Cargo.lock b/Cargo.lock index 3b047164..23e82418 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1415,6 +1415,15 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_bytes" +version = "0.11.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8437fd221bde2d4ca316d61b90...
1
11
0
059bf340332938385eb685e9de8d04ef2e87771c
Tony Arcieri
2025-09-09T20:25:33
pkcs5 v0.8.0-rc.7 (#2036)
diff --git a/Cargo.lock b/Cargo.lock index 5d305eed..3b047164 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1010,7 +1010,7 @@ dependencies = [ [[package]] name = "pkcs5" -version = "0.8.0-rc.6" +version = "0.8.0-rc.7" dependencies = [ "aes", "aes-gcm", diff --git a/pkcs5/Cargo.toml b/pkcs5/Cargo.toml index d4b5...
2
2
2
2c1292202175a598cbfb0a218bbd637412c8a304
Tony Arcieri
2025-09-07T19:24:31
mcf: make `base64` an optional (on-by-default) feature (#2032)
diff --git a/mcf/Cargo.toml b/mcf/Cargo.toml index 1bfbbdcf..c47b1e64 100644 --- a/mcf/Cargo.toml +++ b/mcf/Cargo.toml @@ -15,11 +15,12 @@ in the form `${id}$...` """ [dependencies] -base64ct = { version = "1.7", features = ["alloc"] } +base64ct = { version = "1.7", optional = true } [dev-dependencies] hex-lite...
6
38
24
17d792fd6d71d0b4148b5852a48624f04f5b7856
Tony Arcieri
2025-09-06T21:24:19
mcf: rename `PasswordHash`/`PasswordHashRef` (#2031) Renames the following: - `McfHash` => `PasswordHash` - `McfHashRef` => `PasswordHashRef` This makes it much clearer the types represent password hash strings
diff --git a/mcf/src/lib.rs b/mcf/src/lib.rs index d06c5411..caded1ad 100644 --- a/mcf/src/lib.rs +++ b/mcf/src/lib.rs @@ -25,19 +25,20 @@ pub use error::{Error, Result}; pub use fields::{Field, Fields}; #[cfg(feature = "alloc")] -pub use allocating::McfHash; +pub use allocating::PasswordHash; /// Debug message ...
2
47
43
511607f73bab1bdfd81642a4b61d9b3a0880d7ea
Tony Arcieri
2025-09-06T20:46:20
mcf: rename `McfHash::push_field_base64` to `McfHash::push_base64` (#2030) Slightly shorter and matches the other methods, also it doesn't act on a `Field` type so the old name was slightly confusing.
diff --git a/Cargo.lock b/Cargo.lock index 655e1454..59ef9326 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -863,7 +863,7 @@ checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" [[package]] name = "mcf" -version = "0.1.0" +version = "0.2.0-pre" dependencies = [ "base64ct", "hex-literal",...
4
13
13
f85f8eb200391b06e4af8dca8f3ad84d3de8195b
Tony Arcieri
2025-09-06T20:10:46
mcf: add `McfHash::push_str` (#2029)
diff --git a/mcf/src/lib.rs b/mcf/src/lib.rs index c07d793e..f524dd60 100644 --- a/mcf/src/lib.rs +++ b/mcf/src/lib.rs @@ -132,6 +132,7 @@ mod allocating { pub fn from_id(id: &str) -> Result<McfHash> { validate_id(id)?; + // TODO(tarcieri): overestimate capacity so most password hashe...
1
16
2
e0e142364680490d001c0aa9af7a48a87cdb0cf8
Tony Arcieri
2025-09-06T18:56:13
mcf: add `(Try)From` impls for `McfHashRef` and `&str` (#2028) Adds impls for converting both `McfHash` and `McfHashRef` to/from `&str`
diff --git a/mcf/src/lib.rs b/mcf/src/lib.rs index c2ac6f20..c07d793e 100644 --- a/mcf/src/lib.rs +++ b/mcf/src/lib.rs @@ -69,6 +69,27 @@ impl<'a> McfHashRef<'a> { } } +impl<'a> From<McfHashRef<'a>> for &'a str { + fn from(hash: McfHashRef<'a>) -> &'a str { + hash.0 + } +} + +#[cfg(feature = "alloc...
1
29
0
c87ec3aa7ab955a987a6ff217799fdd9a921dd07
Tony Arcieri
2025-09-06T18:47:17
mcf: add `(Try)From` impls for `McfHash` <=> `String` (#2027) - impl `From<McfHash>` for `String` - impl `TryFrom<String>` for `McfHash` Also extracts an `allocating` module to group `alloc`-related functionality
diff --git a/mcf/src/lib.rs b/mcf/src/lib.rs index 78495c2c..c2ac6f20 100644 --- a/mcf/src/lib.rs +++ b/mcf/src/lib.rs @@ -25,10 +25,7 @@ pub use error::{Error, Result}; pub use fields::{Field, Fields}; #[cfg(feature = "alloc")] -use { - alloc::string::String, - core::{fmt, str}, -}; +pub use allocating::McfH...
1
98
85
6a45ad3ee9d759c0d64461e5c835b831ecd82f75
Tony Arcieri
2025-09-06T18:35:46
Revert "mcf: improve Base64 comments" (#2026) This reverts commit 731509599473441f91897314a482d1905b8d07f3 (#2025) Though it confused me, the original text is correct about the ordering.
diff --git a/mcf/src/base64.rs b/mcf/src/base64.rs index 9b16ac7f..8527d83c 100644 --- a/mcf/src/base64.rs +++ b/mcf/src/base64.rs @@ -9,13 +9,11 @@ use alloc::{string::String, vec::Vec}; #[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)] #[non_exhaustive] pub enum Base64 { - /// bcrypt encoding. Also ...
1
4
6
731509599473441f91897314a482d1905b8d07f3
Tony Arcieri
2025-09-05T22:34:51
mcf: improve Base64 comments (#2025)
diff --git a/mcf/src/base64.rs b/mcf/src/base64.rs index 6159374f..9b16ac7f 100644 --- a/mcf/src/base64.rs +++ b/mcf/src/base64.rs @@ -9,11 +9,13 @@ use alloc::{string::String, vec::Vec}; #[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)] #[non_exhaustive] pub enum Base64 { - /// bcrypt encoding. + ...
1
6
4
8e676f4465af5355c16ac0381554d1b6bc3c644a
Tony Arcieri
2025-09-03T22:00:47
Bump `sha3` to v0.11.0-rc.3 (#2024)
diff --git a/Cargo.lock b/Cargo.lock index 19008a2d..655e1454 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -830,9 +830,9 @@ checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" [[package]] name = "keccak" -version = "0.2.0-pre.0" +version = "0.2.0-rc.0" source = "registry+https://github.com...
2
5
5
697a4db6abab819b49ea9d58538e9999dbd25dec
Tony Arcieri
2025-09-03T21:05:41
Bump all deps to `hybrid-array` v0.4-compatible versions (#2023)
diff --git a/Cargo.lock b/Cargo.lock index cfcd93fa..19008a2d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -29,9 +29,9 @@ dependencies = [ [[package]] name = "aes" -version = "0.9.0-rc.0" +version = "0.9.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd4838e4ad37bb032dea137f44...
5
103
102
51153ca528548b213ab484cabc8e50e64d60a799
Tony Arcieri
2025-09-02T19:42:32
sec1 v0.8.0-rc.9 (#2021)
diff --git a/Cargo.lock b/Cargo.lock index 806b7880..cfcd93fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1366,7 +1366,7 @@ dependencies = [ [[package]] name = "sec1" -version = "0.8.0-rc.8" +version = "0.8.0-rc.9" dependencies = [ "base16ct", "der", diff --git a/sec1/Cargo.toml b/sec1/Cargo.toml index 3e7c6b...
2
2
2
4f55e5849921b1754f73903e612ca5ea3cb5cf69
Tony Arcieri
2025-09-02T03:57:53
Bump `hybrid-array` to v0.4 (#2019)
diff --git a/Cargo.lock b/Cargo.lock index c6e0275a..806b7880 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -122,12 +122,6 @@ dependencies = [ "windows-targets", ] -[[package]] -name = "base16ct" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c7f02d4ea65f2c1853089f...
3
27
44
e1bab0050a3902693b443ec904351e40d6f2e008
Tony Arcieri
2025-09-01T23:48:11
serdect: bump `base16ct` to v0.3 (#2017)
diff --git a/Cargo.lock b/Cargo.lock index ca6dff4a..c2501ce3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1460,7 +1460,7 @@ dependencies = [ name = "serdect" version = "0.4.0" dependencies = [ - "base16ct 0.2.0", + "base16ct 0.3.0", "bincode", "ciborium", "hex-literal", diff --git a/serdect/Cargo.toml b/serde...
2
2
2
f3781d422660375510cdd824e32716e962905545
Tony Arcieri
2025-09-01T22:12:45
sec1: bump `base16ct` to v0.3 (#2016)
diff --git a/Cargo.lock b/Cargo.lock index 94f6ac69..ca6dff4a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1379,7 +1379,7 @@ dependencies = [ name = "sec1" version = "0.8.0-rc.8" dependencies = [ - "base16ct 0.2.0", + "base16ct 0.3.0", "der", "hex-literal", "hybrid-array", diff --git a/sec1/Cargo.toml b/sec1/C...
2
2
2
809b1a2768532d8e62d1d06518c1d47108f1aa92
Arthur Gautier
2025-08-08T16:20:35
cms: propagate std feature to x509-cert (#1990)
diff --git a/cms/Cargo.toml b/cms/Cargo.toml index 3a9a91d4..4bef7e41 100644 --- a/cms/Cargo.toml +++ b/cms/Cargo.toml @@ -50,7 +50,7 @@ tokio = { version = "1.45.1", features = ["macros", "rt"] } x509-cert = { version = "0.3.0-rc.0", features = ["pem"] } [features] -std = ["der/std", "spki/std"] +std = ["der/std",...
1
1
1
8c60e1946e75086fc34bef9a9b7a73e18fb18eae
Ben Beasley
2025-08-08T06:07:25
chore(deps): bump rstest from 0.25.0 to 0.26.0 (#1988)
diff --git a/Cargo.lock b/Cargo.lock index 0845fde2..c40f8c6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1268,21 +1268,20 @@ dependencies = [ [[package]] name = "rstest" -version = "0.25.0" +version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fc39292f8613e913f7df8fa8...
2
5
6
cfacd3efed49b28f38e69612221b8af5f33a5cbf
Arthur Gautier
2025-08-06T21:44:46
x509-cert: impl `DecodeValue` for `Time` (#1986) * x509-cert: impl `DecodeValue` for `Time` To deserialize SigningTime attributes from CMS, Time needs implement DecodeValue.a ``` -- rfc3852 Attribute ::= SEQUENCE { attrType OBJECT IDENTIFIER, attrValues SET OF AttributeValue } AttributeValue ::= ANY ...
diff --git a/cms/tests/signed_data.rs b/cms/tests/signed_data.rs index 35c97e3e..78cfce04 100644 --- a/cms/tests/signed_data.rs +++ b/cms/tests/signed_data.rs @@ -2,8 +2,14 @@ use cms::content_info::ContentInfo; use cms::signed_data::{SignedData, SignerInfos}; -use der::{AnyRef, Decode, DecodePem, Encode, ErrorKind...
6
105
25
5f6ca8331457b8c2ed70c5791006b9d608d30b46
Cal
2025-08-03T22:32:10
cms: Implement types from RFC 6031 - Cryptographic Message Syntax (CMS) Symmetric Key Package Content Type (#1952) * first implementation of the symmetric key package types * first implementation of the pksc attribute types * add missing doc comment * Accept suggestion for `s_keys` Co-authored-by: Arthur Gautier <...
diff --git a/cms/src/lib.rs b/cms/src/lib.rs index d409d5b2..573872d3 100644 --- a/cms/src/lib.rs +++ b/cms/src/lib.rs @@ -40,4 +40,5 @@ pub mod enveloped_data; pub mod kemri; pub mod revocation; pub mod signed_data; +pub mod symmetric_key; pub mod timestamped_data; diff --git a/cms/src/symmetric_key.rs b/cms/src/s...
2
349
0
eccdd1180b47d7c94957656e1ff88577e349593c
Arthur Gautier
2025-08-03T18:31:46
cms: fixup content-type comparison (#1978) When producing a document with inline content, the Content-Type comparison would compared against the oid of the attribute and not its value.
diff --git a/cms/src/builder.rs b/cms/src/builder.rs index cd66ba8e..e37ae210 100644 --- a/cms/src/builder.rs +++ b/cms/src/builder.rs @@ -254,8 +254,17 @@ impl Builder for SignerInfoBuilder<'_> { attr.oid.cmp(&const_oid::db::rfc5911::ID_CONTENT_TYPE) == Ordering::Equal }); if...
1
10
1
de5d5fe214e031e95909ee235be83f06c23e76ad
Arthur Gautier
2025-08-03T06:53:02
cms: simplify `create_signing_time` (#1968) This reuses the logic already implemented in `x509_cert::time::Time` instead of duplicating it.
diff --git a/cms/src/builder.rs b/cms/src/builder.rs index 179cbaff..cd66ba8e 100644 --- a/cms/src/builder.rs +++ b/cms/src/builder.rs @@ -28,7 +28,7 @@ use core::fmt; use core::marker::PhantomData; use der::asn1::{BitString, Null, OctetString, OctetStringRef, SetOfVec}; use der::oid::db::DB; -use der::{Any, AnyRef,...
1
7
18
a4f4cb9d53bfc49eab2ec2857635ed9282f70b85
Arthur Gautier
2025-08-03T06:52:32
cms: make `MessageDigest` a newtype around `OctetString` (#1967)
diff --git a/cms/Cargo.toml b/cms/Cargo.toml index f6ede2d5..b2402f4f 100644 --- a/cms/Cargo.toml +++ b/cms/Cargo.toml @@ -57,7 +57,7 @@ builder = [ "dep:ansi-x963-kdf", "dep:cbc", "dep:cipher", - "dep:digest", + "digest", "elliptic-curve/ecdh", "elliptic-curve/pkcs8", "dep:rsa", dif...
2
90
3
11315215935e3c7f49b7cdfb405fddfacd4edd16
dishmaker
2025-08-01T13:34:10
pkcs1: correct typo in params.rs (#1975)
diff --git a/pkcs1/src/params.rs b/pkcs1/src/params.rs index b9d228a5..3b97d709 100644 --- a/pkcs1/src/params.rs +++ b/pkcs1/src/params.rs @@ -288,7 +288,7 @@ impl<'a> RsaOaepParams<'a> { parameters: Some(AnyRef::NULL), }), }, - p_source: pspecicied_algorith...
1
3
3
957490549db8990637236e53f540a38d15263167
Daniel James
2025-08-01T00:24:29
der: negative test case for recursively constructed octet string (#1930) ASN.1 BER specification valid, but chosen as unsupported.
diff --git a/der/src/asn1/octet_string.rs b/der/src/asn1/octet_string.rs index 505dddd6..e530e6d0 100644 --- a/der/src/asn1/octet_string.rs +++ b/der/src/asn1/octet_string.rs @@ -489,4 +489,25 @@ mod tests { assert_eq!(decoded.as_bytes(), b"Hello, world"); } + + #[test] + #[cfg(all(feature = "allo...
2
28
1
fa9f2f2866d08cce779ae541076856daa0a7968a
dishmaker
2025-07-31T17:26:51
der: fix bug in impl `Choice` for `Application` and `Private` (#1944)
diff --git a/der/src/asn1/internal_macros.rs b/der/src/asn1/internal_macros.rs index 85fc8009..1d5c1c7a 100644 --- a/der/src/asn1/internal_macros.rs +++ b/der/src/asn1/internal_macros.rs @@ -169,7 +169,7 @@ macro_rules! impl_custom_class { T: Decode<'a> + Tagged, { fn can_decode(tag: ...
1
2
2
858f3af9df8398cb456ebe05b41f82e0335e66d8
Daniel James
2025-07-31T17:24:18
Negative test case for constructed, definite-length octet string (#1931) Ensure octet strings with constructed, definite-length method return an error, rather than an incorrect decoding.
diff --git a/Cargo.lock b/Cargo.lock index 16023bf3..c7be57c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -523,8 +523,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.17.0-rc.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "112839e868b3376c2066506d42331023165d687a7ed38b2...
26
158
82
98480d86632fa9d54013cc84ed1c81db0dfbf0b0
Flori
2025-07-31T17:10:09
der: add `Hash` derive for `StringOwned` and `Ia5String` (#1973)
diff --git a/der/src/asn1/ia5_string.rs b/der/src/asn1/ia5_string.rs index e562aac7..3dbb2b87 100644 --- a/der/src/asn1/ia5_string.rs +++ b/der/src/asn1/ia5_string.rs @@ -110,7 +110,7 @@ mod allocation { /// For UTF-8, use [`String`][`alloc::string::String`]. /// /// [International Alphabet No. 5 (IA5)]:...
2
2
2
0f0344a334758e4bed2d516408348a87bd19028b
Arthur Gautier
2025-07-28T03:35:57
x509-cert: update cabf BR to latest revision (#1970)
diff --git a/x509-cert/src/builder/profile/cabf.rs b/x509-cert/src/builder/profile/cabf.rs index 6db33f61..d69b0c2b 100644 --- a/x509-cert/src/builder/profile/cabf.rs +++ b/x509-cert/src/builder/profile/cabf.rs @@ -212,7 +212,7 @@ impl BuilderProfile for Root { pub mod tls; pub mod codesigning { - //! <https://c...
1
1
1
bf7390e3203301c64dbfcb34d30ead23fb0ca606
Arthur Gautier
2025-07-28T03:31:07
x509-cert: converting from systemtime should use utctime if date <= 2049 (#1969)
diff --git a/x509-cert/src/time.rs b/x509-cert/src/time.rs index ef5bb89b..fde40bcd 100644 --- a/x509-cert/src/time.rs +++ b/x509-cert/src/time.rs @@ -142,7 +142,9 @@ impl TryFrom<SystemTime> for Time { type Error = der::Error; fn try_from(time: SystemTime) -> der::Result<Time> { - Ok(GeneralizedTime...
1
3
1
e4050ee69d61b7a5a5f904ad59a9a43934e59ef0
Arthur Gautier
2025-07-28T03:16:25
cms: relax From certificate for SignerIdentifier to accept a reference (#1966) Fixup #1962
diff --git a/cms/src/signed_data.rs b/cms/src/signed_data.rs index 2cff0f5d..ea53c83d 100644 --- a/cms/src/signed_data.rs +++ b/cms/src/signed_data.rs @@ -181,8 +181,8 @@ impl ValueOrd for SignerIdentifier { } } -impl From<Certificate> for SignerIdentifier { - fn from(cert: Certificate) -> Self { +impl From<...
1
2
2
6e6ed0324c08d1d67506cc2c0f825b986a6e3838
Luke Valenta
2025-07-26T16:15:00
x509-cert: Fix underflow on empty input in Certificate::load_pem_chain (#1965)
diff --git a/x509-cert/src/certificate.rs b/x509-cert/src/certificate.rs index 9b67620d..02d3b17a 100644 --- a/x509-cert/src/certificate.rs +++ b/x509-cert/src/certificate.rs @@ -411,7 +411,7 @@ impl<P: Profile> CertificateInner<P> { } } - while position < input.len() - 1 { + while...
1
1
1
ee30600f303b9206e99af9967414c48290758006
Arthur Gautier
2025-07-25T16:40:58
x509-cert: impl `FromStr` for `x509-cert::time::Time` (#1961)
diff --git a/x509-cert/src/time.rs b/x509-cert/src/time.rs index 4e78e21b..ef5bb89b 100644 --- a/x509-cert/src/time.rs +++ b/x509-cert/src/time.rs @@ -1,6 +1,6 @@ //! X.501 time types as defined in RFC 5280 -use core::{fmt, marker::PhantomData, time::Duration}; +use core::{fmt, marker::PhantomData, str::FromStr, tim...
1
43
1
657ef97c6355f41c4376b052e773252bc45deb17
Arthur Gautier
2025-07-25T16:40:34
cms: impl From<Certificate> for SignerIdentifier (#1962) This one is a bit problematic, the [RFC] would read the `SignerIdentifier` is to reuse the `SubjectKeyIdentifier` (SKI) for X.509 exclusively: ``` sid specifies the signer's certificate (and thereby the signer's public key). The signer's public key ...
diff --git a/cms/src/signed_data.rs b/cms/src/signed_data.rs index 04ff9eb3..2cff0f5d 100644 --- a/cms/src/signed_data.rs +++ b/cms/src/signed_data.rs @@ -8,9 +8,9 @@ use core::cmp::Ordering; use der::asn1::{ObjectIdentifier, OctetString, SetOfVec}; use der::{Any, Choice, DerOrd, Sequence, ValueOrd}; use spki::Algor...
1
20
3
ee9dd869e1c3f7c80373b990bce8795408572b94
Arthur Gautier
2025-07-19T23:37:47
x509-cert: new test coming with zlint 3.6.7 (#1955)
diff --git a/x509-cert/tests/builder.rs b/x509-cert/tests/builder.rs index 914bfe35..2284d5ab 100644 --- a/x509-cert/tests/builder.rs +++ b/x509-cert/tests/builder.rs @@ -112,6 +112,7 @@ fn sub_ca_certificate() { "e_sub_ca_crl_distribution_points_missing", "e_sub_ca_certificate_policies_missing", ...
1
1
0
3f1ad79e8dac1f16395f188c64f6be4d85638164
Tony Arcieri
2025-07-19T14:48:01
der: add predicate methods to `EncodingRules` (#1953) Adds `is_ber` and `is_der` to simplify these predicates and avoid having to import `EncodingRules`
diff --git a/der/src/asn1/application.rs b/der/src/asn1/application.rs index 2bedc237..93becff6 100644 --- a/der/src/asn1/application.rs +++ b/der/src/asn1/application.rs @@ -1,8 +1,8 @@ //! Application class field. use crate::{ - Choice, Class, Decode, DecodeValue, DerOrd, Encode, EncodeValue, EncodeValueRef, E...
7
24
14
92267d65e66992c81a0dc1367d8b236e01f7c097
Tony Arcieri
2025-07-17T16:21:55
der: don't enable `alloc` when enabling `ber` (#1950)
diff --git a/der/Cargo.toml b/der/Cargo.toml index be87b08b..096f1e77 100644 --- a/der/Cargo.toml +++ b/der/Cargo.toml @@ -36,12 +36,12 @@ alloc = ["zeroize?/alloc"] std = ["alloc"] arbitrary = ["dep:arbitrary", "const-oid?/arbitrary", "std"] +ber = [] bytes = ["dep:bytes", "alloc"] derive = ["dep:der_derive"] o...
2
4
4
bd840638835fcf66c4ffc3baed6d7c3b727c4ef3
dishmaker
2025-07-16T16:16:39
der: add `ber` feature (#1948)
diff --git a/cms/Cargo.toml b/cms/Cargo.toml index 085461c1..f6ede2d5 100644 --- a/cms/Cargo.toml +++ b/cms/Cargo.toml @@ -16,7 +16,7 @@ rust-version = "1.85" [dependencies] const-oid = { version = "0.10", features = ["db"] } -der = { version = "0.8.0-rc.7", features = ["alloc", "derive", "oid"] } +der = { version ...
11
72
27
83964371c838be7c301426278e47f2800e5f59d9
Luke Valenta
2025-07-15T22:23:51
der: Add `Tag::RelativeOid`, fixes #1875 (#1942)
diff --git a/der/src/tag.rs b/der/src/tag.rs index 8b881104..9d66eb47 100644 --- a/der/src/tag.rs +++ b/der/src/tag.rs @@ -95,6 +95,9 @@ pub enum Tag { /// `UTF8String` tag: `12`. Utf8String, + /// `RELATIVE OID` tag: `13`. + RelativeOid, + /// `SEQUENCE` tag: `16`. Sequence, @@ -181,6 +18...
1
7
0
152f0a7d88b007cdd75f55563482e8d715857702
dishmaker
2025-07-15T20:32:34
spki: bench `SubjectPublicKeyInfoRef` (#1947)
diff --git a/spki/benches/mod.rs b/spki/benches/mod.rs new file mode 100644 index 00000000..a46a4cc7 --- /dev/null +++ b/spki/benches/mod.rs @@ -0,0 +1,32 @@ +#![feature(test)] +#![cfg(feature = "alloc")] + +extern crate test; + +use spki::SubjectPublicKeyInfoRef; +use test::{Bencher, black_box}; + +/// Ed25519 `Subjec...
1
32
0
d87e308a46b56a7753b2009fa5519f47763b85db
dishmaker
2025-07-15T14:07:06
base64ct: fix benchmarks (#1946)
diff --git a/base64ct/benches/mod.rs b/base64ct/benches/mod.rs index 024eed1f..85225866 100644 --- a/base64ct/benches/mod.rs +++ b/base64ct/benches/mod.rs @@ -6,7 +6,7 @@ extern crate test; use base64ct::{Base64Unpadded, Encoding}; use test::Bencher; -const B64_LEN: usize = 100_002; +const B64_LEN: usize = 100_000;...
1
7
7
3aaf6aed1da19b29f8dd35c25b2e25ada68f9c38
dishmaker
2025-07-15T13:58:03
der: optimize compile-time: code reuse with `encode_value_to_slice` (#1940)
diff --git a/der/src/asn1/any.rs b/der/src/asn1/any.rs index efb89161..a522cfe9 100644 --- a/der/src/asn1/any.rs +++ b/der/src/asn1/any.rs @@ -8,9 +8,6 @@ use crate::{ }; use core::cmp::Ordering; -#[cfg(feature = "alloc")] -use crate::SliceWriter; - /// ASN.1 `ANY`: represents any explicitly tagged ASN.1 value. /...
6
23
30
9ca99ba5ee29e59473171b7a4ab9fcf048d4b6ce
Tony Arcieri
2025-07-10T23:42:20
x509-cert v0.3.0-rc.1 (#1938)
diff --git a/Cargo.lock b/Cargo.lock index c56ce9e7..2fcc25eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1889,7 +1889,7 @@ dependencies = [ [[package]] name = "x509-cert" -version = "0.3.0-rc.0" +version = "0.3.0-rc.1" dependencies = [ "arbitrary", "const-oid", diff --git a/x509-cert/Cargo.toml b/x509-cert/C...
2
6
6
48f4f51c736778df8235c785f0865075d06a86e2
dishmaker
2025-07-10T23:28:10
der: add fn `Any::header` (#1935)
diff --git a/der/src/asn1/any.rs b/der/src/asn1/any.rs index 02eaf8e7..efb89161 100644 --- a/der/src/asn1/any.rs +++ b/der/src/asn1/any.rs @@ -57,6 +57,14 @@ impl<'a> AnyRef<'a> { self.value.as_slice() } + /// Returns [`Tag`] and [`Length`] of self. + pub fn header(&self) -> Header { + Head...
1
18
7
faeee8d3155fe31cf72e066aea629c120ddd38d3
Tony Arcieri
2025-07-10T16:06:07
Use crate releases (#1937) Removes git-based dependencies and uses latest releases of `ecdsa`, `p256`, and `rsa`.
diff --git a/Cargo.lock b/Cargo.lock index a193811b..c56ce9e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -411,9 +411,9 @@ checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] name = "crypto-bigint" -version = "0.7.0-pre.5" +version = "0.7.0-pre.6" source = "registry+https://gi...
4
24
25
b3c52e7526b66295dc88d462838e576143151e38
Tony Arcieri
2025-07-10T03:34:25
Cut new prereleases (#1933) Releases the following: - `der` v0.8.0-rc.7 - `pkcs1` v0.8.0-rc.3 - `pkcs5` v0.8.0-rc.6 - `pkcs8` v0.11.0-rc.6 - `sec1` v0.8.0-rc.8 - `spki` v0.8.0-rc.4
diff --git a/Cargo.lock b/Cargo.lock index 82b3e0c8..a193811b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -455,7 +455,7 @@ dependencies = [ [[package]] name = "der" -version = "0.8.0-rc.6" +version = "0.8.0-rc.7" dependencies = [ "arbitrary", "bytes", @@ -978,7 +978,7 @@ checksum = "8b870d8c151b6f2fb93e84a1314...
15
39
39
17bb02635dba4ab75a51eeffdf5a5de80ffe8ce3
Tony Arcieri
2025-07-10T01:32:39
pkcs1: remove stub `pkcs8` feature (#1932) Leftover from #1927
diff --git a/pkcs1/Cargo.toml b/pkcs1/Cargo.toml index 7a0b06a9..066cfb35 100644 --- a/pkcs1/Cargo.toml +++ b/pkcs1/Cargo.toml @@ -31,9 +31,6 @@ std = ["der/std", "alloc"] pem = ["alloc", "der/pem"] zeroize = ["der/zeroize"] -# TODO(tarcieri): stub! (for `rsa` crate for now) remove before release -pkcs8 = [] - [pa...
1
0
3
6c69e47fb8f9c7a22849ec514cc081ab0af4d307
Tony Arcieri
2025-07-10T01:08:29
pkcs1+sec1: remove `pkcs8` integration/feature (#1927) Both `pkcs1` and `sec1` used some "clever" tricks to write blanket impls of their traits for any types which impl the `pkcs8` traits. However, we've received some complaints this makes the impls of these traits more confusing and less discoverable (#1611), and ad...
diff --git a/Cargo.lock b/Cargo.lock index ec9a6889..82b3e0c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -983,7 +983,6 @@ dependencies = [ "const-oid", "der", "hex-literal", - "pkcs8", "spki", "tempfile", ] @@ -1252,8 +1251,7 @@ dependencies = [ [[package]] name = "rsa" version = "0.10.0-rc.1" -source = ...
11
33
191
5a3fcdb2e1b84cd2d593fe61cdd9172bdb79854a
dishmaker
2025-07-09T19:59:33
Minor cargo clippy (nightly) fixes (#1928)
diff --git a/der/src/asn1/octet_string.rs b/der/src/asn1/octet_string.rs index 446b90f0..43677760 100644 --- a/der/src/asn1/octet_string.rs +++ b/der/src/asn1/octet_string.rs @@ -382,7 +382,7 @@ mod tests { const EXAMPLE_BER: &[u8] = &hex!( "2480" // Constructed indefinite length OCTET STRING ...
4
8
8
9c32817060127e502dd3d911bfd0a5645ebd95fe
dishmaker
2025-07-09T12:59:39
der: fix BER `IMPLICIT` constructed octet string (#1922)
diff --git a/der/src/asn1/application.rs b/der/src/asn1/application.rs index 93becff6..2bedc237 100644 --- a/der/src/asn1/application.rs +++ b/der/src/asn1/application.rs @@ -1,8 +1,8 @@ //! Application class field. use crate::{ - Choice, Class, Decode, DecodeValue, DerOrd, Encode, EncodeValue, EncodeValueRef, E...
9
104
28
f228c6c8ccf11310f17d95b334897d484bed6bc2
Tony Arcieri
2025-07-08T21:03:07
mcf: add `McfHashRef` (#1925) Adds a reference type for MCF hashes which works in no-`alloc` environments. Some methods of `McfHash` are now directly delegated. It would be possible to make a fully borrowed reference type that works like `&McfHashRef`, which could be used with the standard `AsRef`/`Borrow`/`Deref` `T...
diff --git a/mcf/src/fields.rs b/mcf/src/fields.rs index 74d6c123..89b32c55 100644 --- a/mcf/src/fields.rs +++ b/mcf/src/fields.rs @@ -15,14 +15,16 @@ pub struct Fields<'a>(&'a str); impl<'a> Fields<'a> { /// Create a new field iterator from an MCF hash, returning an error in the event the hash /// doesn't s...
2
66
21
bc0c972a2da3f3f02d325cef1dfea07eb6280f82
Tony Arcieri
2025-07-08T14:32:03
mcf: add `McfHash::from_id` (#1924) Simplifies constructing MCF hashes starting with a leading identifier. Also removes the previous logic for mandating at least one field, instead changing it to disallowing trailing `$`
diff --git a/mcf/src/lib.rs b/mcf/src/lib.rs index dd1b3313..75b3f261 100644 --- a/mcf/src/lib.rs +++ b/mcf/src/lib.rs @@ -60,6 +60,23 @@ impl McfHash { Ok(Self(s)) } + /// Create an [`McfHash`] from an identifier. + /// + /// # Returns + /// + /// Error if the identifier is invalid. + ...
2
34
8
4c59f8d6531bfe41dee083217ca9d575a07a3d00
Tony Arcieri
2025-07-08T14:11:52
mcf: add `push_field*` methods to `McfHash` (#1923) Support for pushing additional fields onto an MCF hash string: - `push_field`: pushes a `Field` - `push_field_base64`: encodes a `&[u8]` using the given Base64 alphabet
diff --git a/mcf/src/lib.rs b/mcf/src/lib.rs index 88c3c5b2..dd1b3313 100644 --- a/mcf/src/lib.rs +++ b/mcf/src/lib.rs @@ -85,6 +85,18 @@ impl McfHash { fields } + + /// Push an additional field onto the password hash string. + pub fn push_field(&mut self, field: Field<'_>) { + self.0.push(...
2
30
9
73e513ecc5fe9d4340cf5a61513e8e5eb1005512
Tony Arcieri
2025-07-07T21:44:39
der: improved internal ref types (#1921) Changes `BytesRef` and `StringRef` from types with an explicit lifetime which act as newtypes for inner `&'a [u8]` and `&'a str` types to being newtypes for `[u8]` and `str`. This requires a very small amount of `unsafe` casting, but makes it possible to implement reference co...
diff --git a/der/src/asn1/any.rs b/der/src/asn1/any.rs index 43924077..02eaf8e7 100644 --- a/der/src/asn1/any.rs +++ b/der/src/asn1/any.rs @@ -29,14 +29,14 @@ pub struct AnyRef<'a> { tag: Tag, /// Inner value encoded as bytes. - value: BytesRef<'a>, + value: &'a BytesRef, } impl<'a> AnyRef<'a> { ...
20
270
283
a3ea6597e5bfab5942ef368eb9387d803e7cce4a
Tony Arcieri
2025-07-07T19:06:03
der: consolidate `bytes`/`string` modules (#1920) Elsewhere we have single modules containing both reference types and their equivalent allocating types. This follows the same pattern. Also renames (non-breaking, internal types); - `StrRef` => `StringRef` - `StrOwned` => `StringOwned`
diff --git a/der/src/asn1/ia5_string.rs b/der/src/asn1/ia5_string.rs index d6c4ca8f..6412ece7 100644 --- a/der/src/asn1/ia5_string.rs +++ b/der/src/asn1/ia5_string.rs @@ -1,6 +1,6 @@ //! ASN.1 `IA5String` support. -use crate::{FixedTag, Result, StrRef, Tag, asn1::AnyRef}; +use crate::{FixedTag, Result, StringRef, Ta...
13
587
596
e5bcd4f792c791837b264fd817d272f8a01c7898
Tony Arcieri
2025-07-07T18:05:16
der: improve constructed bit handling (#1919) Adds an internal decoding method which returns the constructed bit in addition to the `Tag`. This is currently used for validating the constructed bit at decode time, however in future work it might be interesting to retain, either on the `Tag` type (where we do store it ...
diff --git a/der/src/header.rs b/der/src/header.rs index 22a6df05..7a4beabe 100644 --- a/der/src/header.rs +++ b/der/src/header.rs @@ -36,8 +36,7 @@ impl<'a> Decode<'a> for Header { type Error = Error; fn decode<R: Reader<'a>>(reader: &mut R) -> Result<Header> { - let is_constructed = Tag::peek_is_co...
2
64
63
61eaf9e0c596dbe0e9c0f582475021b7ce4853fe
Tony Arcieri
2025-07-07T17:19:50
mcf: Base64 decoding support (#1918) Adds a `Base64` enum with variants for `Bcrypt`, `Crypt`, and `ShaCrypt`, i.e. the non-standard Base64 variants used in MCF hashes. This is extracted from `password_hash::Encoding` which was straddling the line between the PHC format and MCF with such a feature. That type can now ...
diff --git a/Cargo.lock b/Cargo.lock index b804dfdd..48a3daf9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -861,6 +861,10 @@ checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" [[package]] name = "mcf" version = "0.0.0" +dependencies = [ + "base64ct", + "hex-literal", +] [[package]] name...
7
175
25
bf50c2e7ff8354d27fb27be6315e79e324134f96
Tony Arcieri
2025-07-07T13:56:36
mcf: add `Field` newtype (#1914) Also extracts a `fields` submodule. The `Field` newtype is useful as a place to provide additional methods for operating on individual fields, such as encoding/decoding various flavors of Base64, or parsing `k=v,...` mappings. The functionality to do that is not yet implemented, but ...
diff --git a/mcf/src/fields.rs b/mcf/src/fields.rs new file mode 100644 index 00000000..679f3fc0 --- /dev/null +++ b/mcf/src/fields.rs @@ -0,0 +1,94 @@ +//! Fields of an MCF password hash, delimited by `$` + +use crate::{Error, Result}; +use core::fmt; + +/// MCF field delimiter: `$`. +pub const DELIMITER: char = '$'; ...
3
105
66
7f98cc0637c6059c81f36efd00ac0cd525ec6e28
Tony Arcieri
2025-07-04T18:16:21
der: extract `length::indefinite` module (#1910) Extracts a module containing everything related to indefinite length handling in a single place
diff --git a/der/src/bytes_owned.rs b/der/src/bytes_owned.rs index 27cd492d..2f60e3bb 100644 --- a/der/src/bytes_owned.rs +++ b/der/src/bytes_owned.rs @@ -3,7 +3,7 @@ use crate::{ BytesRef, DecodeValue, DerOrd, EncodeValue, Error, Header, Length, Reader, Result, StrRef, - Writer, reader::read_constructed_vec...
4
185
172
bcc59beae519531ac346e6ce501868e40959725c
Tony Arcieri
2025-07-03T20:15:59
sec1: bump `serdect` to v0.3 (#1909)
diff --git a/sec1/Cargo.toml b/sec1/Cargo.toml index c828156c..f7f91566 100644 --- a/sec1/Cargo.toml +++ b/sec1/Cargo.toml @@ -21,7 +21,7 @@ base16ct = { version = "0.2", optional = true, default-features = false } der = { version = "0.8.0-rc.6", optional = true, features = ["oid"] } hybrid-array = { version = "0.3",...
1
1
1
485b06272387928b1e37754ca19dd2e544df09fa
Tony Arcieri
2025-07-03T18:43:29
sec1 v0.8.0-rc.6 (#1908)
diff --git a/Cargo.lock b/Cargo.lock index 19e94976..ad2ae440 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1347,7 +1347,7 @@ dependencies = [ [[package]] name = "sec1" -version = "0.8.0-rc.5" +version = "0.8.0-rc.6" dependencies = [ "base16ct", "der", diff --git a/sec1/Cargo.toml b/sec1/Cargo.toml index 338102...
2
2
2
2c8a7db634e87d069069c2054ee489c47efaf2a0
Tony Arcieri
2025-07-03T16:33:04
pkcs8 v0.11.0-rc.5 (#1907)
diff --git a/Cargo.lock b/Cargo.lock index c3811ea0..19e94976 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -996,7 +996,7 @@ dependencies = [ [[package]] name = "pkcs8" -version = "0.11.0-rc.4" +version = "0.11.0-rc.5" dependencies = [ "der", "hex-literal", diff --git a/pkcs1/Cargo.toml b/pkcs1/Cargo.toml index ...
5
5
5
1b126420c15b569f2192d9615885d05ccdd72e95
Tony Arcieri
2025-07-03T15:54:38
pkcs5 v0.8.0-rc.5 (#1906)
diff --git a/Cargo.lock b/Cargo.lock index 48ec610b..c3811ea0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -978,7 +978,7 @@ dependencies = [ [[package]] name = "pkcs5" -version = "0.8.0-rc.4" +version = "0.8.0-rc.5" dependencies = [ "aes", "aes-gcm", diff --git a/cms/Cargo.toml b/cms/Cargo.toml index d62b19ca.....
5
5
5
92d9a1946bcd6f8e273dda6cd47020de8632a73d
Tony Arcieri
2025-07-03T15:19:37
der: add allow(dead_code) attributes in derive tests
diff --git a/der/tests/derive.rs b/der/tests/derive.rs index fe854a78..1053daa3 100644 --- a/der/tests/derive.rs +++ b/der/tests/derive.rs @@ -204,6 +204,7 @@ mod choice { /// Test case for `CHOICE` inside `[0]` `EXPLICIT` tag in `SEQUENCE`. #[derive(Sequence, Debug, Eq, PartialEq)] + #[allow...
2
11
4
576f986b4e7de8bd0d20a3543d69de16fdf04a2d
Tony Arcieri
2025-07-03T15:16:00
spki v0.8.0-rc.3 (#1905)
diff --git a/Cargo.lock b/Cargo.lock index 011bd1ca..48ec610b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1487,7 +1487,7 @@ dependencies = [ [[package]] name = "spki" -version = "0.8.0-rc.2" +version = "0.8.0-rc.3" dependencies = [ "arbitrary", "base64ct", diff --git a/cmpv2/Cargo.toml b/cmpv2/Cargo.toml inde...
12
13
13
126f623d617d321783f073517336bac691156302
Tony Arcieri
2025-07-03T14:48:29
der v0.8.0-rc.6 (#1904)
diff --git a/Cargo.lock b/Cargo.lock index 7ebdeae4..011bd1ca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -455,7 +455,7 @@ dependencies = [ [[package]] name = "der" -version = "0.8.0-rc.5" +version = "0.8.0-rc.6" dependencies = [ "arbitrary", "bytes", diff --git a/cmpv2/Cargo.toml b/cmpv2/Cargo.toml index 948d...
15
16
16
2555dbaf658d4d17f1132611dc6cdca92a6725ff
Tony Arcieri
2025-07-03T04:11:51
der: string conversions for `EncodingRules` (#1903) Helpful for dynamically choosing between BER and DER
diff --git a/der/src/encoding_rules.rs b/der/src/encoding_rules.rs index 02aebfbe..3a511f92 100644 --- a/der/src/encoding_rules.rs +++ b/der/src/encoding_rules.rs @@ -1,3 +1,6 @@ +use crate::{Error, ErrorKind}; +use core::{fmt, str::FromStr}; + /// ASN.1 encoding rules. /// /// This enum identifies the specific enco...
2
52
0
c064265d5361e01e99f53ebb7f69b0651e827a3c
Tony Arcieri
2025-07-03T03:27:12
der: refactor indefinite length decoder (#1902) Extracts it out of `BytesOwned` so it's generally useful
diff --git a/der/src/bytes_owned.rs b/der/src/bytes_owned.rs index e4e68c2b..27cd492d 100644 --- a/der/src/bytes_owned.rs +++ b/der/src/bytes_owned.rs @@ -2,8 +2,8 @@ //! library-level length limitation i.e. `Length::max()`. use crate::{ - BytesRef, Decode, DecodeValue, DerOrd, EncodeValue, Error, ErrorKind, Hea...
2
39
24
d937130212990e38ccbf09c8a6c36f07f5d771a0
Tony Arcieri
2025-07-03T02:57:56
der: move `read_value` out of public API (#1901) Moves `Reader::read_value` out of the trait and into an internal free function
diff --git a/der/src/asn1/any.rs b/der/src/asn1/any.rs index 408fca5a..43924077 100644 --- a/der/src/asn1/any.rs +++ b/der/src/asn1/any.rs @@ -176,7 +176,7 @@ pub use self::allocating::Any; #[cfg(feature = "alloc")] mod allocating { use super::*; - use crate::{BytesOwned, referenced::*}; + use crate::{Byte...
4
28
27