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
8279b9d61b72d5d6f764251ee2ab84b80735e420
Tony Arcieri
2024-08-17T21:34:28
der: `PemReader` simplifications (#1476) Removes the internal buffer added in #839 in favor of just cloning the `PemReader`'s state. This is a partial step towards #1475 and would greatly simplify the implementation of #1474. Also reverts: "der: have `Reader::peek*` methods take `&mut self` (#1418)" This re...
diff --git a/der/src/reader.rs b/der/src/reader.rs index 9e2b2fad..10576be2 100644 --- a/der/src/reader.rs +++ b/der/src/reader.rs @@ -23,16 +23,16 @@ pub trait Reader<'r>: Sized { /// Get the length of the input. fn input_len(&self) -> Length; - /// Peek at the next byte of input without modifying the p...
4
40
151
c19b8dfb5df858e462c4170962e69e03aa7f8fdf
Tony Arcieri
2024-07-28T20:03:42
pem-rfc7468 v1.0.0-rc.1 (#1465)
diff --git a/Cargo.lock b/Cargo.lock index 9f0a38a2..1f89dfe8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1044,7 +1044,7 @@ dependencies = [ [[package]] name = "pem-rfc7468" -version = "1.0.0-rc.0" +version = "1.0.0-rc.1" dependencies = [ "base64ct 1.6.0", ] diff --git a/cms/Cargo.toml b/cms/Cargo.toml index 6...
4
4
4
0d294bb58778dfc23b5462f4d45ec3f556d50e13
Tony Arcieri
2024-07-28T01:44:27
Bump `rsa` to v0.10.0-pre.2 (#1463)
diff --git a/Cargo.lock b/Cargo.lock index 09f629a1..9f0a38a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1335,8 +1335,9 @@ dependencies = [ [[package]] name = "rsa" -version = "0.10.0-pre.1" -source = "git+https://github.com/RustCrypto/RSA/?branch=use-latest-prereleases#6f03fa9330040886a8c4135f50bd7c736469334b" +...
5
7
8
7f2ba1f2e49dd4378d68f12489e0dab023219430
Tony Arcieri
2024-07-27T23:59:04
pkcs5 v0.8.0-rc.1 (#1462)
diff --git a/Cargo.lock b/Cargo.lock index 0a073f80..09f629a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -387,7 +387,7 @@ dependencies = [ "hex-literal", "p256", "pem-rfc7468", - "pkcs5", + "pkcs5 0.8.0-rc.0", "rand", "rsa", "sha1", @@ -1082,7 +1082,7 @@ dependencies = [ "der", "digest", "hex-literal...
3
16
6
9c0e851c6db9c2c8a2601840d46375afde2663fb
Tony Arcieri
2024-07-27T23:06:10
Use latest prereleases (#1461) Updates the following dependencies to their latest prerelease versions: - `aes-gcm` v0.11.0-pre.1 - `async-signature` v0.6.0-pre.4 - `cbc` v0.2.0-pre.1 - `des` v0.9.0-pre.1 - `digest` v0.11.0-pre.9 - `ecdsa` v0.17.0-pre.7 - `pbkdf2` v0.13.0-pre.1 - `scrypt` v0.12.0-pre.1 - `sh...
diff --git a/Cargo.lock b/Cargo.lock index 06cde1a8..0a073f80 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,43 +19,33 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aead" -version = "0.6.0-pre.0" -source = "git+https://github.com/RustCrypto/traits.git#0a3687b5...
8
203
461
08196c9a4a42628d447ae908b50de3bfd523eb29
Tony Arcieri
2024-07-26T18:36:31
Cut `pkcs*` crate prereleases (#1459) As well as `sec1` and `spki`: - `pkcs1` v0.8.0-rc.0 - `pkcs5` v0.8.0-rc.0 - `pkcs8` v0.11.0-rc.0 - `sec1` v0.8.0-rc.0 - `spki` v0.8.0-rc.0 --------- Co-authored-by: Arthur Gautier <arthur.gautier@arista.com>
diff --git a/Cargo.lock b/Cargo.lock index e38e44e1..06cde1a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -22,7 +22,18 @@ name = "aead" version = "0.6.0-pre.0" source = "git+https://github.com/RustCrypto/traits.git#0a3687b58e59d5d2e196f59ca883a2d46eb76abb" dependencies = [ - "crypto-common", + "crypto-common 0.2.0-p...
15
356
158
1c23f2bd789941e2e2916fe5511547496633da8e
Tony Arcieri
2024-07-26T16:33:18
pem-rfc7468 v1.0.0-rc.0 (#1456)
diff --git a/Cargo.lock b/Cargo.lock index 34720295..a43a4bbb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -383,7 +383,7 @@ dependencies = [ "getrandom", "hex-literal", "p256", - "pem-rfc7468", + "pem-rfc7468 1.0.0-rc.0", "pkcs5", "rand", "rsa", @@ -515,7 +515,7 @@ dependencies = [ "der_derive", "flagset...
4
15
6
9c1ee0a9664adef8429be723c6344759c8a1b1cc
Tony Arcieri
2024-07-26T02:37:17
const-oid v0.10.0-rc.0 (#1455)
diff --git a/Cargo.lock b/Cargo.lock index c50bd7b9..806bf676 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -362,7 +362,7 @@ checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b" name = "cmpv2" version = "0.3.0-pre" dependencies = [ - "const-oid", + "const-oid 0.10.0-pre.2", "crmf", "der", ...
3
29
12
a3c986bc99c1e6479a3ac469b55f01390a99a35b
Tony Arcieri
2024-07-25T16:55:22
der: add `SequenceRef::as_bytes` and `AsRef<[u8]>` impl (#1454) Closes #1078
diff --git a/der/src/asn1/sequence.rs b/der/src/asn1/sequence.rs index 6c217424..70d01b04 100644 --- a/der/src/asn1/sequence.rs +++ b/der/src/asn1/sequence.rs @@ -33,6 +33,19 @@ pub struct SequenceRef<'a> { body: BytesRef<'a>, } +impl<'a> SequenceRef<'a> { + /// Borrow the inner byte slice. + pub fn as_by...
1
13
0
9918fc7caad5d4ea2c6823b0dd1d0d2992659d06
Tony Arcieri
2024-07-25T15:42:01
Rust 1.80 fixes (#1453) - `size_of` and `size_of_val` have been moved to the prelude, so import them directly as `core::mem::{size_of, size_of_val}` rather than importing `core::mem`. - Removes dead code gated on removed features - pkcs5: add missing `std` feature - tls_codec: allow `cfg(fuzzing)`
diff --git a/const-oid/src/arcs.rs b/const-oid/src/arcs.rs index 59d340c4..95cbbe0e 100644 --- a/const-oid/src/arcs.rs +++ b/const-oid/src/arcs.rs @@ -1,7 +1,7 @@ //! Arcs are integer values which exist within an OID's hierarchy. use crate::{Error, Result}; -use core::mem; +use core::mem::size_of; #[cfg(doc)] u...
8
21
9
a1bb81b6d30a8a7d46e83ee3fdd26d64afda8e0f
Tony Arcieri
2024-07-24T19:35:22
der: allow all blanket impls on `?Sized` types (#1451) This fixes the `Tagged` and `Encode` trait impls on `str`, for example. Closes #1365
diff --git a/der/src/encode.rs b/der/src/encode.rs index 28d7cba7..eba1f262 100644 --- a/der/src/encode.rs +++ b/der/src/encode.rs @@ -69,7 +69,7 @@ pub trait Encode { impl<T> Encode for T where - T: EncodeValue + Tagged, + T: EncodeValue + Tagged + ?Sized, { /// Compute the length of this value in byte...
2
6
3
856b0929bce9c86a4bd825e666d327fbea0942b1
Arthur Gautier
2024-07-20T04:01:09
x509-cert: rework the check for ordering of name (#1447) The `check_names_encoding` check did not allow for extraneous component. This rework the logic to allow that.
diff --git a/x509-cert/src/builder/profile/cabf.rs b/x509-cert/src/builder/profile/cabf.rs index 6655d4b4..fd9d207d 100644 --- a/x509-cert/src/builder/profile/cabf.rs +++ b/x509-cert/src/builder/profile/cabf.rs @@ -21,10 +21,12 @@ use spki::SubjectPublicKeyInfoRef; /// Check Name encoding /// /// BR 7.1.4.1 Name Enc...
1
32
4
9497bed1a78a3a49c6768deb04b82e83b053e394
Arthur Gautier
2024-07-09T18:01:03
der-derive: avoid type inference when using default (#1442) * Revert "x509-cert: specify concrete types to help the compiler (#1441)" This reverts commit 7a2d38a1c72b19d843face98db31e8083a46ac79. * der-derive: avoid type inference when using default This is another take on #1441. This is intended to make sure...
diff --git a/der/derive/src/sequence/field.rs b/der/derive/src/sequence/field.rs index 3fb18320..d91599c0 100644 --- a/der/derive/src/sequence/field.rs +++ b/der/derive/src/sequence/field.rs @@ -97,7 +97,7 @@ impl SequenceField { !attrs.optional, "`default`, and `optional` are mutually...
6
72
13
7a2d38a1c72b19d843face98db31e8083a46ac79
Ivan Stanković
2024-07-08T14:18:43
x509-cert: specify concrete types to help the compiler (#1441) rustc fails to infer the appropriate types with Default::default when building a crate depending on femme = "2.2.1" getrandom = { version = "0.2.15", features = ["js"] } rand = "0.8.5 x509-cert = { version = "0.2.5", features = ["haz...
diff --git a/x509-cert/src/ext.rs b/x509-cert/src/ext.rs index acdcc341..806fcaca 100644 --- a/x509-cert/src/ext.rs +++ b/x509-cert/src/ext.rs @@ -29,7 +29,7 @@ pub mod pkix; pub struct Extension { pub extn_id: ObjectIdentifier, - #[asn1(default = "Default::default")] + #[asn1(default = "bool::default")] ...
4
7
7
2c16861f96b3af5710e7f73d6908d0b35a1b13ec
Arthur Gautier
2024-06-26T14:55:45
x509-cert: add EKU extensions to builders (#1440) This also fixes EKU's critical bit. It turns out Extended Key Usage is never marked as critical.
diff --git a/x509-cert/src/builder/profile/cabf/tls.rs b/x509-cert/src/builder/profile/cabf/tls.rs index a157295e..87d9a529 100644 --- a/x509-cert/src/builder/profile/cabf/tls.rs +++ b/x509-cert/src/builder/profile/cabf/tls.rs @@ -106,6 +106,7 @@ impl Profile for Subordinate { if self.client_auth { ...
2
4
24
3df71e69082b59071ff9e01a388fa15b8db15245
Arthur Gautier
2024-06-24T21:32:41
der: fixup multiple-bounds-declaration warning (#1439) ``` warning: bound is defined in more than one place --> der/src/ord.rs:56:31 | 56 | pub(crate) fn iter_cmp<'a, I, T: 'a>(a: I, b: I) -> Result<Ordering> | ^ ... 59 | T: DerOrd, | ^ | = help: for fur...
diff --git a/der/src/ord.rs b/der/src/ord.rs index 42d46234..80684b87 100644 --- a/der/src/ord.rs +++ b/der/src/ord.rs @@ -53,10 +53,10 @@ where } /// Compare the order of two iterators using [`DerCmp`] on the values. -pub(crate) fn iter_cmp<'a, I, T: 'a>(a: I, b: I) -> Result<Ordering> +pub(crate) fn iter_cmp<'a, ...
1
2
2
57795443d4eaa727f2ceaa02fc9cb654ab879cc7
wangcundashang
2024-06-20T14:16:37
chore: fix some comments (#1434) Signed-off-by: wangcundashang <wangcundashang@qq.com>
diff --git a/der/src/asn1/real.rs b/der/src/asn1/real.rs index 99a95527..cce4c6b7 100644 --- a/der/src/asn1/real.rs +++ b/der/src/asn1/real.rs @@ -289,7 +289,7 @@ mod tests { #[test] fn encdec_normal() { - // The comments correspond to the decoded value from the ASN.1 playground when the bytes are in...
4
5
5
91ae4f9014200517d64f003a2c4c3e20b2960cd7
Tony Arcieri
2024-06-06T01:11:41
pkcs8: use `pbes2::Parameters::recommended` (#1430) When encrypting private keys, uses the recommended set of parameters from the `pbes2` crate. This uses scrypt with parameters explicitly selected to be compatible with OpenSSL so it's capable of decrypting keys encrypted using the `pkcs8` crate. Closes #429
diff --git a/pkcs8/Cargo.toml b/pkcs8/Cargo.toml index aa1dc46a..43606ee3 100644 --- a/pkcs8/Cargo.toml +++ b/pkcs8/Cargo.toml @@ -22,7 +22,7 @@ spki = { version = "=0.8.0-pre.0" } # optional dependencies rand_core = { version = "0.6", optional = true, default-features = false } -pkcs5 = { version = "=0.8.0-pre.0",...
4
9
24
53b58a7bfe0d67b95ebef5086257748c45bfdf7e
Arthur Gautier
2024-06-04T20:54:56
x509-tsp: re-export cmpv2 (#1408) `x509-tsp` makes use of structures defines in `cmpv2`: - `cmpv2::status::PkiStatusInfo` which itself refers: - `cmpv2::status::PkiStatus` and - `cmpv2::status::PkiFailureInfo` Reexporting it makes it more convenient for a consumer.
diff --git a/x509-tsp/src/lib.rs b/x509-tsp/src/lib.rs index cd753375..333beac1 100644 --- a/x509-tsp/src/lib.rs +++ b/x509-tsp/src/lib.rs @@ -20,6 +20,8 @@ use x509_cert::{ spki::AlgorithmIdentifier, }; +pub use cmpv2; + #[derive(Clone, Copy, Debug, Enumerated, Eq, PartialEq, PartialOrd, Ord)] #[asn1(type = ...
1
2
0
3052b8148766d9bf80945efc0fa3c589eaa32ef4
Angelos Drossos
2024-06-04T20:54:29
implement `std::error::Error` for `cms` and `pkcs5` crates (#1429) Allows coercing to `anyhow::Error` using `?`. Co-authored-by: Devel Angel <develangel@apx-rust-dev.tuxninja>
diff --git a/cms/src/builder.rs b/cms/src/builder.rs index 08fc3bdd..5fad20be 100644 --- a/cms/src/builder.rs +++ b/cms/src/builder.rs @@ -66,6 +66,9 @@ pub enum Error { Builder(String), } +#[cfg(feature = "std")] +impl std::error::Error for Error {} + impl fmt::Display for Error { fn fmt(&self, f: &mut f...
2
6
0
fcbfb157c7fa85f417241862c82528684f4aea77
Jacob
2024-06-03T14:37:04
Correctly format email addresses. (#1425) * Correctly format email addresses.
diff --git a/x509-cert/src/attr.rs b/x509-cert/src/attr.rs index d4cccc30..f19fea6a 100644 --- a/x509-cert/src/attr.rs +++ b/x509-cert/src/attr.rs @@ -2,6 +2,7 @@ use alloc::vec::Vec; use const_oid::db::{ + rfc3280::EMAIL_ADDRESS, rfc4519::{COUNTRY_NAME, DOMAIN_COMPONENT, SERIAL_NUMBER}, Database, DB, ...
1
4
0
0fc38ef777e340c2e25027472299f5170699e018
Arthur Gautier
2024-05-31T17:53:34
spki: implement `Hash` for `AlgorithmIdentifier` (#1414) This allows to build an hashmap with various hashing algorithm when verifying objects.
diff --git a/der/src/asn1/any.rs b/der/src/asn1/any.rs index 1ed9286c..42ac3f66 100644 --- a/der/src/asn1/any.rs +++ b/der/src/asn1/any.rs @@ -23,7 +23,7 @@ use crate::SliceWriter; /// and useful concept which is still extensively used in things like /// PKI-related RFCs. #[cfg_attr(feature = "arbitrary", derive(arb...
8
29
9
56d3775045de62b83613c030f6ee6f9cc11ae1fb
Edoardo Morandi
2024-05-29T20:29:45
feat(base32ct): add const encoded_len fn (#1424) This can be handy to avoid an heap allocation, because it is possible to use the result of the const fn to allocate an array of the right size.
diff --git a/base32ct/src/encoding.rs b/base32ct/src/encoding.rs index 8b87f08f..c0dfec61 100644 --- a/base32ct/src/encoding.rs +++ b/base32ct/src/encoding.rs @@ -220,14 +220,9 @@ impl<T: Alphabet> Encoding for T { } } + #[inline] fn encoded_len(bytes: &[u8]) -> usize { - if bytes.is_empt...
2
14
8
ae4e6a1d9dc672697dd345a3056f46a0197da482
Edoardo Morandi
2024-05-28T14:53:31
base32ct: fix broken encoding of unpadded base32 (#1421) Fixes #943 #1420
diff --git a/base32ct/src/encoding.rs b/base32ct/src/encoding.rs index bfe83ef2..8b87f08f 100644 --- a/base32ct/src/encoding.rs +++ b/base32ct/src/encoding.rs @@ -226,7 +226,7 @@ impl<T: Alphabet> Encoding for T { } else if Self::PADDED { ((bytes.len() - 1) / 5 + 1) * 8 } else { - ...
2
120
1
42ec5030c35316691fdb1fb3b3b15f0497d88bb2
Tony Arcieri
2024-05-26T20:54:05
der: have `Reader::peek*` methods take `&mut self` (#1418) Right now `PemReader` uses interior mutability via `RefCell`, because peeking might involve filling an internal peek buffer (i.e. decoding the Base64 in a PEM document). Rather than trying to hide the fact we're potentially modifying internal buffers (bu...
diff --git a/der/src/reader.rs b/der/src/reader.rs index 10576be2..9e2b2fad 100644 --- a/der/src/reader.rs +++ b/der/src/reader.rs @@ -23,16 +23,16 @@ pub trait Reader<'r>: Sized { /// Get the length of the input. fn input_len(&self) -> Length; - /// Peek at the next byte of input without modifying the c...
4
21
23
6c42217ec681a073bfbdfffd78588306f9063de2
Arthur Gautier
2024-05-20T20:54:28
chore(deps): bump base32 from 0.4.0 to 0.5.0 (#1412)
diff --git a/Cargo.lock b/Cargo.lock index d295ccc5..a84ef755 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -137,9 +137,9 @@ version = "0.2.0" [[package]] name = "base32" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23ce669cd6c8588f79e15cf450314f...
3
5
5
31e3b0cab7a36bb5563f4e8c01de28f6e5e42e5f
Arthur Gautier
2024-05-20T20:06:17
x509-cert: accept rfc5280-invalid certificates as trustanchor (#1403) This commit brings the profiles introduced in #987 to `TrustAnchorChoice` and `Crl`. This is intended for the support of invalid certificates in https://github.com/carl-wallace/rust-pki/tree/main/certval
diff --git a/x509-cert/src/anchor.rs b/x509-cert/src/anchor.rs index bc3a2fb6..bc00ad44 100644 --- a/x509-cert/src/anchor.rs +++ b/x509-cert/src/anchor.rs @@ -1,8 +1,8 @@ //! Trust anchor-related structures as defined in RFC 5914 +use crate::certificate::{CertificateInner, Profile, Rfc5280, TbsCertificateInner}; us...
4
33
24
9ffa83bab960c9a4f6c796424a96aa16a474b708
Arthur Gautier
2024-05-20T20:06:08
x509-ocsp: add support for parsing profiles (#1404) This allows an x509 validator to check for ocsp signature of RFC5280-invalid certificates.
diff --git a/x509-cert/src/certificate.rs b/x509-cert/src/certificate.rs index 4152c7f0..5750b593 100644 --- a/x509-cert/src/certificate.rs +++ b/x509-cert/src/certificate.rs @@ -17,7 +17,7 @@ use der::{ /// [`Profile`] allows the consumer of this crate to customize the behavior when parsing /// certificates. /// By...
5
23
19
cf967322b60b14a0db800c9c2652afdb6964453c
Edoardo Morandi
2024-05-16T18:25:31
Add support for Base32 upper unpadded alphabet (#1406) * feat(base32ct): add upper unpadded alphabet * test(base32ct): test upper unpadded alphabet
diff --git a/base32ct/src/alphabet/rfc4648.rs b/base32ct/src/alphabet/rfc4648.rs index e9be36b0..c1520967 100644 --- a/base32ct/src/alphabet/rfc4648.rs +++ b/base32ct/src/alphabet/rfc4648.rs @@ -56,3 +56,20 @@ impl Alphabet for Base32Upper { const ENCODER: &'static [EncodeStep] = &[EncodeStep(25, 41)]; const ...
3
48
2
d1cac632a27a2dff0fc0a5b32debc05cd2732d3c
Arthur Gautier
2024-05-13T18:57:35
x509-cert: rework the profile of builder (#1306) This is now providing a trait to be implemented by the consumer. A number of implementation are available, including ones trying to abide by CABF Baseline Requirements. Fixes #1281
diff --git a/x509-cert/src/builder.rs b/x509-cert/src/builder.rs index ba83db0d..bd0341de 100644 --- a/x509-cert/src/builder.rs +++ b/x509-cert/src/builder.rs @@ -7,23 +7,22 @@ use der::{asn1::BitString, referenced::OwnedToRef, Encode}; use signature::{rand_core::CryptoRngCore, Keypair, RandomizedSigner, Signer}; use...
8
958
236
16fb786b13cd0adfb54c7fc8bbf49c02384ed102
Arthur Gautier
2024-05-12T20:10:04
der-derive: adds generics support for `ValueOrd` and `Choice` (#1402)
diff --git a/der/derive/src/choice.rs b/der/derive/src/choice.rs index 707ca9c8..ddb4eed9 100644 --- a/der/derive/src/choice.rs +++ b/der/derive/src/choice.rs @@ -8,15 +8,15 @@ use self::variant::ChoiceVariant; use crate::{default_lifetime, TypeAttrs}; use proc_macro2::TokenStream; use quote::quote; -use syn::{Deriv...
2
37
51
cde2991d1bfd7c37f38919f81d708cbfb6f95709
mkbanchi
2024-05-10T17:40:23
doc(der_derive): Add documentation for field-level tag_mode attribute. (#1401)
diff --git a/der/derive/src/lib.rs b/der/derive/src/lib.rs index 87409f21..79e73b66 100644 --- a/der/derive/src/lib.rs +++ b/der/derive/src/lib.rs @@ -101,6 +101,13 @@ //! Note: please open a GitHub Issue if you would like to request support //! for additional ASN.1 types. //! +//! ### `#[asn1(tag_mode = "...")]` at...
1
7
0
471c07352efe588b18fd43322ccf318075529c04
Tony Arcieri
2024-05-08T13:58:52
der: return `Tag::Integer.length_error()` on empty ints (#1400) From X.690 § 8.3.1: > 8.3 Encoding of an integer value > 8.3.1 The encoding of an integer value shall be primitive. > The contents octets shall consist of one or more octets.
diff --git a/der/src/asn1/integer.rs b/der/src/asn1/integer.rs index c82ac4ef..cd85f53a 100644 --- a/der/src/asn1/integer.rs +++ b/der/src/asn1/integer.rs @@ -38,7 +38,7 @@ where #[cfg(test)] #[allow(clippy::unwrap_used)] pub(crate) mod tests { - use crate::{Decode, Encode}; + use crate::{Decode, Encode, Error...
3
23
2
eaf8fa27a9d25bd89d8308cd2645ae3e82fccf95
Arthur Gautier
2024-05-07T16:53:02
rust 1.78 fixups (#1399) rustc 1.78 just released and it brings new warnings. This fixes all `unnecessary qualification` warnings
diff --git a/base16ct/src/error.rs b/base16ct/src/error.rs index 348de6e6..45717bc3 100644 --- a/base16ct/src/error.rs +++ b/base16ct/src/error.rs @@ -25,8 +25,8 @@ impl fmt::Display for Error { #[cfg(feature = "std")] impl std::error::Error for Error {} -impl From<Error> for core::fmt::Error { - fn from(_: Erro...
8
22
28
c44d6af07eb9c1a763aa5f072a1984f8486ef1b0
Tony Arcieri
2024-04-24T15:52:34
pkcs12: flatten API (#1390) Several modules contain a single type. This removes those modules from the public API and re-exports such types at the toplevel.
diff --git a/pkcs12/src/lib.rs b/pkcs12/src/lib.rs index 49baa6a6..43d6bd7d 100644 --- a/pkcs12/src/lib.rs +++ b/pkcs12/src/lib.rs @@ -14,15 +14,8 @@ unused_qualifications )] -use const_oid::ObjectIdentifier; extern crate alloc; -pub mod authenticated_safe; -pub mod bag_type; -pub mod cert_type; -pub mod crl...
4
50
30
e8ef21c23483b45ba1e03c0e811ac5c76f15ef6f
Tony Arcieri
2024-04-24T14:48:33
der: add `Decode::from_ber` (#1389) Support for decoding an input byte slice while specifying what encoding rules should be used with the given reader.
diff --git a/der/src/decode.rs b/der/src/decode.rs index ccb487f5..4f856995 100644 --- a/der/src/decode.rs +++ b/der/src/decode.rs @@ -1,6 +1,6 @@ //! Trait definition for [`Decode`]. -use crate::{Error, FixedTag, Header, Reader, SliceReader}; +use crate::{EncodingRules, Error, FixedTag, Header, Reader, SliceReader}...
2
21
3
a375cbf5bd0abd5159d4b3ec203d8b0a9166d1d6
Matt Palmer
2024-04-24T12:31:06
base64ct: reject zero-length decode requests (#1387)
diff --git a/base64ct/src/decoder.rs b/base64ct/src/decoder.rs index 01daf386..840df16c 100644 --- a/base64ct/src/decoder.rs +++ b/base64ct/src/decoder.rs @@ -103,8 +103,13 @@ impl<'i, E: Encoding> Decoder<'i, E> { /// /// # Returns /// - `Ok(bytes)` if the expected amount of data was read - /// - `Er...
1
18
1
2961e7f43cc3a4b5f8d8ec7e3c1596095d8e8fe8
Tony Arcieri
2024-04-04T20:17:26
spki: fix `OidUnknown` reporting (#1378) As noted in RustCrypto/RSA#422, we're not returning the actual "unknown OID" encountered in these cases, but the expected one, which makes it hard to debug mismatches.
diff --git a/spki/src/algorithm.rs b/spki/src/algorithm.rs index a49c21df..baa89cc4 100644 --- a/spki/src/algorithm.rs +++ b/spki/src/algorithm.rs @@ -106,7 +106,7 @@ impl<Params> AlgorithmIdentifier<Params> { if self.oid == expected_oid { Ok(expected_oid) } else { - Err(Error:...
1
2
2
03ddd5a3b90b925d03f1ee007cdfa01504ee1033
Martyn P
2024-04-04T15:40:19
Add feature flag to enable serde derive in re-export (#1379) Co-authored-by: Martyn <martyn@datasync.dev>
diff --git a/serdect/Cargo.toml b/serdect/Cargo.toml index ba52210f..ee0997f3 100644 --- a/serdect/Cargo.toml +++ b/serdect/Cargo.toml @@ -36,6 +36,7 @@ toml = "0.8" [features] default = ["alloc"] alloc = ["base16ct/alloc", "serde/alloc"] +derive = ["serde/derive"] [package.metadata.docs.rs] all-features = true
1
1
0
cf950b313e1c1fae1139e5c5a17590957ac14a82
Waffle Maybe
2024-04-01T13:36:55
Remove a `;`, to allow Rust to infer the type (#1374) `?` currently influences inference s.t. for `error()?` rustc infers `T = ()`. However, it is quite confusing -- `?` is not supposed to influence inference, it's just a conicidence because of the curent implementation. There is an idea to change this behavior in ...
diff --git a/der/src/writer/slice.rs b/der/src/writer/slice.rs index ebc0e61e..082ca477 100644 --- a/der/src/writer/slice.rs +++ b/der/src/writer/slice.rs @@ -31,7 +31,7 @@ impl<'a> SliceWriter<'a> { /// Encode a value which impls the [`Encode`] trait. pub fn encode<T: Encode>(&mut self, encodable: &T) -> Res...
1
1
1
0898cfef87d23da31113e2a3de1636d2a9a1fddf
link2xt
2024-03-31T20:48:18
Fix `repository` field in Cargo.toml (#1373) According to https://doc.rust-lang.org/cargo/reference/manifest.html#the-repository-field `repository` is a source repository URL. GitHub URLs with `tree` are not repository URLs and are not usable as `git clone` arguments. Path within the worktree is encoded in `.ca...
diff --git a/base16ct/Cargo.toml b/base16ct/Cargo.toml index 8250d70d..af6c3371 100644 --- a/base16ct/Cargo.toml +++ b/base16ct/Cargo.toml @@ -9,7 +9,8 @@ any usages of data-dependent branches/LUTs and thereby provides portable authors = ["RustCrypto Developers"] license = "Apache-2.0 OR MIT" documentation = "https:...
25
50
25
c03c06640e2499db947f7d02789fa6f3dde07340
Arthur Gautier
2024-03-28T17:25:55
der: fixup windows `write_secret_file` helper (#1372) This signature was missed in #1055
diff --git a/der/src/document.rs b/der/src/document.rs index 71608358..927703d0 100644 --- a/der/src/document.rs +++ b/der/src/document.rs @@ -354,7 +354,7 @@ fn write_secret_file(path: impl AsRef<Path>, data: &[u8]) -> Result<(), Error> { /// Write a file containing secret data to the filesystem // TODO(tarcieri): p...
1
1
1
64ca37f2dee9757073829b1a9cfa40af9a20cfaf
Tony Arcieri
2024-03-28T15:41:27
Revert "der: add `Error::(set_)source`; remove `Clone` + `Copy` (#1328)" (#1371) This reverts commit 7784f2dfda3a870f191f88c27159960a8ffacbe7. This ended up complicating downstream error types, particularly in `no_std` contexts. It's also not really necessary now that #1055 has landed.
diff --git a/der/src/error.rs b/der/src/error.rs index 6302ce82..902863d4 100644 --- a/der/src/error.rs +++ b/der/src/error.rs @@ -11,24 +11,17 @@ use crate::asn1::ObjectIdentifier; #[cfg(feature = "pem")] use crate::pem; -#[cfg(feature = "std")] -use alloc::boxed::Box; - /// Result type. pub type Result<T> = cor...
10
16
95
2df36387cb58e51fe8088a80e19d279872e10a1c
Alex Gaynor
2024-03-10T19:15:16
Remove duplicate test (#1366)
diff --git a/pkcs12/tests/kdf.rs b/pkcs12/tests/kdf.rs index 7fdc02a4..8271380d 100644 --- a/pkcs12/tests/kdf.rs +++ b/pkcs12/tests/kdf.rs @@ -104,12 +104,6 @@ fn pkcs12_key_derive_sha256() { hex!("3f9113f05c30a996c4a516409bdac9d065f44296ccd52bb75de3fcfdbe2bf130") ); - assert_eq!( - derive_key...
1
0
6
8a14cd28f568b560d8b88504f23c1e16a1f538c1
Arthur Gautier
2024-03-04T21:12:21
Fix CI // missing git branch (#1363) * Fix CI // missing git branch After https://github.com/RustCrypto/signatures/pull/809 the branch has been removed, and this now breaks the CI. Switch to master instead. * Update Cargo.toml --------- Co-authored-by: Tony Arcieri <bascule@gmail.com>
diff --git a/Cargo.lock b/Cargo.lock index c22371ab..1af7bd0f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -562,7 +562,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.17.0-pre.5" -source = "git+https://github.com/turbocool3r/signatures?branch=custom-errors#d9d394ad7a87de8943a0eb39b85f316149ebb025" +sour...
2
3
3
270dbcb01ff75791d6527ff7759d335a39585420
enri1196
2024-03-02T20:31:04
cms: add RFC5083 `AuthEnvelopedData` (#1357)
diff --git a/cms/src/authenveloped_data.rs b/cms/src/authenveloped_data.rs new file mode 100644 index 00000000..44294bb6 --- /dev/null +++ b/cms/src/authenveloped_data.rs @@ -0,0 +1,64 @@ +//! AuthEnvelopedData-related types + +use der::{asn1::SetOfVec, Sequence}; +use x509_cert::attr::Attribute; + +use crate::{ + a...
2
65
0
7784f2dfda3a870f191f88c27159960a8ffacbe7
Tony Arcieri
2024-03-02T20:29:32
der: add `Error::(set_)source`; remove `Clone` + `Copy` (#1328) When the `std` feature is enabled, adds support for propagating an arbitrary error source which can be set using `Error::set_source`. The main use case is passing back an arbitrary error value in the `ErrorKind::Value` use case, to handle passing bac...
diff --git a/der/src/error.rs b/der/src/error.rs index 902863d4..6302ce82 100644 --- a/der/src/error.rs +++ b/der/src/error.rs @@ -11,17 +11,24 @@ use crate::asn1::ObjectIdentifier; #[cfg(feature = "pem")] use crate::pem; +#[cfg(feature = "std")] +use alloc::boxed::Box; + /// Result type. pub type Result<T> = cor...
10
95
16
b5e73950b26a2921671e45dd91c47c7907b9992e
Carl Wallace
2024-02-19T15:53:12
Fix tagging mode on EncryptedValue structure (#1354) * fix CertRequest (should have used OptionalValidity, not Validity) * remove unused Validity reference * change tagging on EncryptedValue
diff --git a/crmf/src/controls.rs b/crmf/src/controls.rs index 698d13cc..bdf2d7ab 100644 --- a/crmf/src/controls.rs +++ b/crmf/src/controls.rs @@ -179,35 +179,35 @@ pub enum EncryptedKey { pub struct EncryptedValue { #[asn1( context_specific = "0", - tag_mode = "EXPLICIT", + tag_mode = "IMP...
1
5
5
435f10237c617f0ea186845acbca3030ee7f80b9
Arthur Gautier
2024-02-16T17:06:20
x509-cert: typo in documentation (#1353)
diff --git a/x509-cert/src/serial_number.rs b/x509-cert/src/serial_number.rs index bd0d9394..0a85c496 100644 --- a/x509-cert/src/serial_number.rs +++ b/x509-cert/src/serial_number.rs @@ -87,7 +87,7 @@ impl<P: Profile> SerialNumber<P> { /// of output from the CSPRNG. /// /// The specified length does not ...
1
1
1
b7a5924ce98e24fe23dab2d17713f112131c0061
Carl Wallace
2024-02-15T17:11:11
crmf: fix `CertTemplate` validity (#1352) Should have used `OptionalValidity`, not `Validity`
diff --git a/crmf/src/request.rs b/crmf/src/request.rs index 18d6cb16..4a44a628 100644 --- a/crmf/src/request.rs +++ b/crmf/src/request.rs @@ -9,7 +9,7 @@ use x509_cert::attr::Attribute; use x509_cert::ext::Extensions; use x509_cert::name::Name; use x509_cert::serial_number::SerialNumber; -use x509_cert::time::{Time...
1
2
2
809df65b20d61e88afb7f514b5cfdd3d1958a40f
Arthur Gautier
2024-02-12T19:10:52
async-signature+digest+ecdsa+rsa+sha+signature: bump pre-release version (#1344) async-signature 0.6.0-pre.1 digest 0.11.0-pre.8 ecdsa 0.17.0-pre.5 rsa 0.10.0-pre.1 sha1 0.11.0-pre.3 sha2 0.11.0-pre.3 sha3 0.11.0-pre.3 signature 2.3.0-pre.3
diff --git a/Cargo.lock b/Cargo.lock index 5155b595..465506b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -103,9 +103,9 @@ dependencies = [ [[package]] name = "async-signature" -version = "0.6.0-pre.0" +version = "0.6.0-pre.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6e5fa81ca...
6
80
77
ed868a19ddd7e6cab4f5e8c494c68628d8c62245
Franziskus Kiefer
2024-02-08T07:28:48
tls_codec: expose read/write of variable-length encoding (#1345)
diff --git a/Cargo.lock b/Cargo.lock index 282a2baa..5155b595 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1696,6 +1696,16 @@ dependencies = [ [[package]] name = "tls_codec" version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5e78c9c330f8c85b2bae7c8368f2739157db999123512...
4
23
18
f299a423e27f2ed28faf9b668bfa78cc0ce52ed0
shuja73
2024-02-03T13:13:24
pkcs1+pkcs8+sec1+spki: fix typos (#1340)
diff --git a/pkcs1/src/traits.rs b/pkcs1/src/traits.rs index cd3d04e2..c759b3f6 100644 --- a/pkcs1/src/traits.rs +++ b/pkcs1/src/traits.rs @@ -119,7 +119,7 @@ pub trait EncodeRsaPrivateKey { Ok(self.to_pkcs1_der()?.write_der_file(path)?) } - /// Write ASN.1 DER-encoded PKCS#1 private key to the given...
4
5
5
8d6896f4533beb04110f391f12fda97518a54f17
Franziskus Kiefer
2024-01-26T13:40:24
tls_codec v0.4.1 (#1336)
diff --git a/Cargo.lock b/Cargo.lock index 149d8346..b6d2e2e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1695,17 +1695,7 @@ dependencies = [ [[package]] name = "tls_codec" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d38a1d5fcfa859f0ec2b5e111dc903890bd7dac7f347...
3
8
29
14caf10145ed82b2191eedcb5b7391563ad25470
Konrad Kohbrok
2024-01-25T14:33:21
tls_codec: Introduce helper macro for conditional deserialization (#1330)
diff --git a/tls_codec/derive/src/lib.rs b/tls_codec/derive/src/lib.rs index d9653366..29ad5338 100644 --- a/tls_codec/derive/src/lib.rs +++ b/tls_codec/derive/src/lib.rs @@ -234,6 +234,32 @@ //! DeserializableExampleStruct::tls_deserialize(&mut serialized.as_slice()).unwrap(); //! # } //! ``` +//! +//! The help...
2
154
5
3cace2c217b171dec3517e150d1ebf29b987bb30
Konrad Kohbrok
2024-01-25T09:08:31
tls_codec: Add missing docs (#1334)
diff --git a/tls_codec/src/lib.rs b/tls_codec/src/lib.rs index 768f79dd..e35d0089 100644 --- a/tls_codec/src/lib.rs +++ b/tls_codec/src/lib.rs @@ -198,6 +198,9 @@ pub trait Deserialize: Size { } } +/// The `DeserializeBytes` trait defines functions to deserialize a byte slice +/// to a struct or enum. In contra...
1
3
0
b002bd979afda399b7a652dee40506b66fd69b4b
Paolo Capriotti
2024-01-25T09:08:03
Fix byte array reading and writing (#1159) `Read::read` is not guaranteed to fill the whole buffer, and similarly, `Write::write` is not guaranteed to write everything. This commit replaces them with `read_exact` and `write_all` respectively, and removes the corresponding assertions.
diff --git a/tls_codec/src/quic_vec.rs b/tls_codec/src/quic_vec.rs index 6209e03a..ec757c0c 100644 --- a/tls_codec/src/quic_vec.rs +++ b/tls_codec/src/quic_vec.rs @@ -558,21 +558,9 @@ mod rw_bytes { writer.write_all(&length_bytes)?; // Now serialize the elements - let mut written = 0; - ...
1
4
27
5612e91286d0f2bc8d12372cd1c0258da1b4550f
andrewmah
2024-01-23T22:48:58
Change RKeyId enum variant to use constructed encoding (#1333)
diff --git a/cms/src/enveloped_data.rs b/cms/src/enveloped_data.rs index 851bc3e0..8a0a3c12 100644 --- a/cms/src/enveloped_data.rs +++ b/cms/src/enveloped_data.rs @@ -299,7 +299,7 @@ pub struct RecipientEncryptedKey { #[allow(missing_docs)] pub enum KeyAgreeRecipientIdentifier { IssuerAndSerialNumber(IssuerAndSe...
1
1
1
dcbb4744e666a2bafc87b1ceee40a32fb16d40db
Tony Arcieri
2024-01-22T02:44:10
der: improve `TeletexStringRef` docs (#1329) Adds a citation for the quote from the ASN.1 mailing list
diff --git a/der/src/asn1/teletex_string.rs b/der/src/asn1/teletex_string.rs index 00ef9ec0..7c6ea621 100644 --- a/der/src/asn1/teletex_string.rs +++ b/der/src/asn1/teletex_string.rs @@ -34,10 +34,13 @@ macro_rules! impl_teletex_string { /// /// # Supported characters /// -/// The standard defines a complex characte...
1
6
3
5c1bbfeabe2b649ff3a360085376669cd65e3aa9
Arthur Gautier
2024-01-21T15:15:01
x509-cert: introduce a `builder::AsyncBuilder` trait (#1280)
diff --git a/Cargo.lock b/Cargo.lock index 18ddf0ad..f3d81ebd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,21 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "addr2line" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a30b2e23b9...
4
216
2
345ac96a5e2300dacd9093552ec17770e9ce05d0
Arthur Gautier
2024-01-20T04:55:44
x509-cert: don't bind builder with signer early (#1161) * x509-cert: don't bind builder with signer early This is mostly a draft after discussion in #1160 Signed-off-by: Arthur Gautier <baloo@superbaloo.net> * cms: pull builder changes Signed-off-by: Arthur Gautier <baloo@superbaloo.net> --------- Si...
diff --git a/cms/src/builder.rs b/cms/src/builder.rs index 906ed6bf..806cc852 100644 --- a/cms/src/builder.rs +++ b/cms/src/builder.rs @@ -35,11 +35,14 @@ use rsa::Pkcs1v15Encrypt; use sha2::digest; use signature::digest::DynDigest; use signature::{Keypair, Signer}; -use spki::{AlgorithmIdentifierOwned, DynSignature...
4
177
143
c410c4bc823a9f0a966d0332560470549d840fae
YX Cao
2024-01-20T01:35:03
fix(#1210): fix impl of SubjectDirectoryAttributes (#1286)
diff --git a/x509-cert/src/ext/pkix.rs b/x509-cert/src/ext/pkix.rs index 2c7a4ffe..911bc466 100644 --- a/x509-cert/src/ext/pkix.rs +++ b/x509-cert/src/ext/pkix.rs @@ -12,7 +12,7 @@ mod policymap; #[cfg(feature = "sct")] pub mod sct; -use crate::attr::AttributeTypeAndValue; +use crate::attr::Attribute; pub use ac...
1
3
3
b8b4e93097d87f6cbaecccedb1b3c06047b7e463
Arthur Gautier
2024-01-19T23:54:51
x509-cert: ignore commonName warning (#1327) With the upgrade of zlint to 3.6.0 came new lints. One of them is enforcement of one of the measure from SC-62 removing commonName from the Subject.
diff --git a/x509-cert/tests/builder.rs b/x509-cert/tests/builder.rs index d31eb8c7..6a8a55a8 100644 --- a/x509-cert/tests/builder.rs +++ b/x509-cert/tests/builder.rs @@ -165,6 +165,9 @@ fn leaf_certificate() { "e_subject_common_name_not_exactly_from_san", // Extended key usage needs to be added by en...
1
6
0
5239c33847c6968101eda9c187af36274865fb21
Tony Arcieri
2024-01-10T19:56:12
sec1: bump `hybrid-array` to v0.2.0-rc.0 (#1324) Also cuts a `sec1` v0.8.0-pre.1 release
diff --git a/Cargo.lock b/Cargo.lock index 595fb8f6..b87ca30c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -782,9 +782,9 @@ dependencies = [ [[package]] name = "hybrid-array" -version = "0.2.0-pre.8" +version = "0.2.0-rc.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27fbaf242418fe...
3
7
7
fb8db96b54bf662b1495ef3462b39c6a6cee936f
Tony Arcieri
2024-01-09T04:07:39
der: add `EncodingRules` enum (#1321) Adds an enum with `Ber` and `Der` (default) variants which can be used to selectively allow a limited number of BER productions when decoding certain BER-based security-oriented formats, e.g. CMS, PKCS#8. Currently this doesn't actually do anything, however the goal is to ad...
diff --git a/der/src/encoding_rules.rs b/der/src/encoding_rules.rs new file mode 100644 index 00000000..02aebfbe --- /dev/null +++ b/der/src/encoding_rules.rs @@ -0,0 +1,18 @@ +/// ASN.1 encoding rules. +/// +/// This enum identifies the specific encoding rules which are applied at the time a given document +/// is dec...
6
50
7
ea0d5f71b1b76c5b1b71977529f44707b547017e
Tony Arcieri
2024-01-08T21:21:11
pkcs12: add KDF security warning (#1319) Quotes RFC 7292 Appendix B on why the PKCS#12 KDF is a poor choice which is deprecated for new usage
diff --git a/pkcs12/src/kdf.rs b/pkcs12/src/kdf.rs index be53ef37..19389b39 100644 --- a/pkcs12/src/kdf.rs +++ b/pkcs12/src/kdf.rs @@ -1,5 +1,18 @@ -//! Implementation of the key derivation function -//! [RFC 7292 Appendix B](https://datatracker.ietf.org/doc/html/rfc7292#appendix-B) +//! Implementation of the PKCS#12 k...
1
15
2
3549a2c659dfbbeb6d669dff2b92c31e2bc6d6cc
Tony Arcieri
2024-01-08T19:30:29
sec1 v0.8.0-pre.0 (#1318)
diff --git a/Cargo.lock b/Cargo.lock index d8e877a1..e796b011 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1414,7 +1414,7 @@ dependencies = [ [[package]] name = "sec1" -version = "0.8.0-pre" +version = "0.8.0-pre.0" dependencies = [ "base16ct", "der 0.8.0-pre.0", diff --git a/sec1/Cargo.toml b/sec1/Cargo.toml ...
2
2
2
562244ae013cdddf2ef860ee305181aae3dfc571
enri1196
2024-01-08T19:05:35
RFC 5544 Implementation (#1258) Co-authored-by: Arthur Gautier <superbaloo+registrations.github@superbaloo.net>
diff --git a/cms/src/lib.rs b/cms/src/lib.rs index b663ea43..bcd72f40 100644 --- a/cms/src/lib.rs +++ b/cms/src/lib.rs @@ -38,3 +38,4 @@ pub mod encrypted_data; pub mod enveloped_data; pub mod revocation; pub mod signed_data; +pub mod timestamped_data; diff --git a/cms/src/timestamped_data.rs b/cms/src/timestamped_d...
2
200
0
d932742fd2aaaca9568fa2dcf25b5ba63bd7c096
Tony Arcieri
2024-01-08T18:32:12
pkcs1 v0.8.0-pre.0 (#1317)
diff --git a/Cargo.lock b/Cargo.lock index 0a489864..d8e877a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1006,7 +1006,7 @@ dependencies = [ [[package]] name = "pkcs1" -version = "0.8.0-pre" +version = "0.8.0-pre.0" dependencies = [ "const-oid 0.10.0-pre.2", "der 0.8.0-pre.0", diff --git a/pkcs1/Cargo.toml b/...
2
2
2
68fb76617a3bd26923bc0da21115746967263376
Tony Arcieri
2024-01-08T16:27:47
pkcs8 v0.8.0-pre.0 (#1316)
diff --git a/Cargo.lock b/Cargo.lock index a64cc746..0a489864 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1011,7 +1011,7 @@ dependencies = [ "const-oid 0.10.0-pre.2", "der 0.8.0-pre.0", "hex-literal 0.4.1", - "pkcs8 0.11.0-pre", + "pkcs8 0.11.0-pre.0", "spki 0.8.0-pre.0", "tempfile", ] @@ -1082,7 +1082,7 @@...
4
6
6
449d5ee0ee4ed2f1336adb227895e7484b13fec3
Tony Arcieri
2024-01-08T14:44:00
pkcs5 v0.8.0-pre.0 (#1315)
diff --git a/Cargo.lock b/Cargo.lock index 50d703d9..a64cc746 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1053,7 +1053,7 @@ dependencies = [ [[package]] name = "pkcs5" -version = "0.8.0-pre" +version = "0.8.0-pre.0" dependencies = [ "aes", "cbc", @@ -1086,7 +1086,7 @@ version = "0.11.0-pre" dependencies = [ ...
3
4
4
3556b59f21c17d2d9a613edae0692ede17e45e5f
Tony Arcieri
2024-01-08T02:44:15
spki v0.8.0-pre.0 (#1314)
diff --git a/Cargo.lock b/Cargo.lock index cf6d6bd2..50d703d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1012,7 +1012,7 @@ dependencies = [ "der 0.8.0-pre.0", "hex-literal 0.4.1", "pkcs8 0.11.0-pre", - "spki 0.8.0-pre", + "spki 0.8.0-pre.0", "tempfile", ] @@ -1065,7 +1065,7 @@ dependencies = [ "scrypt", ...
5
8
8
dd6f364d8d9c9d87da48e28f6028e684f0b27b4c
Tony Arcieri
2024-01-07T21:49:41
serdect v0.3.0-pre.0 (#1312)
diff --git a/Cargo.lock b/Cargo.lock index 0ca8b8f0..9dc998c1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1484,7 +1484,7 @@ dependencies = [ [[package]] name = "serdect" -version = "0.3.0-pre" +version = "0.3.0-pre.0" dependencies = [ "base16ct", "bincode", diff --git a/sec1/Cargo.toml b/sec1/Cargo.toml index...
3
3
3
2b8bdf839d44e84f1ab31a522378b9f43249b571
Tony Arcieri
2024-01-07T21:47:07
der v0.8.0-pre.0 redux (#1311) Unfortunately #1310 didn't actually bump the version
diff --git a/Cargo.lock b/Cargo.lock index f65cc278..0ca8b8f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -438,7 +438,7 @@ dependencies = [ [[package]] name = "der" -version = "0.8.0-pre" +version = "0.8.0-pre.0" dependencies = [ "arbitrary", "bytes", @@ -1009,7 +1009,7 @@ name = "pkcs1" version = "0.8.0-pre"...
7
12
12
1820067ed018ef81e8e4bcfa5dc4b558c782a7a2
Tony Arcieri
2024-01-07T19:58:48
der v0.8.0-pre.0 (#1310)
diff --git a/Cargo.lock b/Cargo.lock index 2724361b..f65cc278 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -443,7 +443,7 @@ dependencies = [ "arbitrary", "bytes", "const-oid 0.10.0-pre.2", - "der_derive 0.8.0-pre", + "der_derive 0.8.0-pre.0", "flagset", "hex-literal 0.4.1", "pem-rfc7468 1.0.0-pre.0", @@ -465...
3
4
4
ad0b44e99364c48407a665d3482ad34e93dbbed2
Tony Arcieri
2024-01-07T19:05:55
pem-rfc7468 v1.0.0-pre.0 (#1309)
diff --git a/Cargo.lock b/Cargo.lock index ea87b7a4..2724361b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -446,7 +446,7 @@ dependencies = [ "der_derive 0.8.0-pre", "flagset", "hex-literal 0.4.1", - "pem-rfc7468 1.0.0-pre", + "pem-rfc7468 1.0.0-pre.0", "proptest", "time", "zeroize", @@ -976,7 +976,7 @@ depen...
3
4
4
450f194451d19b37729239cb46b62de26d9e5e4a
Tony Arcieri
2024-01-05T17:28:36
const-oid v0.10.0-pre.2 (#1307)
diff --git a/Cargo.lock b/Cargo.lock index 64e09bc5..ea87b7a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -339,7 +339,7 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.10.0-pre.1" +version = "0.10.0-pre.2" dependencies = [ "arbitrary", "hex-literal 0.4.1", @@ -442,7 +442,7 @@ version = "0.8.0-...
5
14
6
c940804048e427725431c16717e658790f67a955
Tony Arcieri
2024-01-05T16:35:28
const-oid: impl `AsRef<ObjectIdentifierRef>` for `ObjectIdentifier` (#1308) `AsRef` is a convenient trait because it's in the prelude
diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs index 938ecc94..9d137026 100644 --- a/const-oid/src/lib.rs +++ b/const-oid/src/lib.rs @@ -191,6 +191,12 @@ impl<const MAX_SIZE: usize> AsRef<[u8]> for ObjectIdentifier<MAX_SIZE> { } } +impl<const MAX_SIZE: usize> AsRef<ObjectIdentifierRef> for ObjectIdent...
1
6
0
efa381e19227920a4781f8e9787235692c64fe49
Arthur Gautier
2024-01-05T13:12:23
x509-cert: adds serial numbers generator (#1270) This follows the CABF ballot 164 recommendation to have serials use 64 bits from a CSPRNG. This also provides the user with the option to prefix its values (for use of an instance id).
diff --git a/x509-cert/src/serial_number.rs b/x509-cert/src/serial_number.rs index 42952fd8..bd0d9394 100644 --- a/x509-cert/src/serial_number.rs +++ b/x509-cert/src/serial_number.rs @@ -7,6 +7,8 @@ use der::{ DecodeValue, EncodeValue, ErrorKind, FixedTag, Header, Length, Reader, Result, Tag, ValueOrd, Writer...
1
85
0
5d7064cdfe7f96a6b023863746fff92a29870d8a
Tony Arcieri
2024-01-05T13:10:07
const-oid: add `ObjectIdentifierRef` (#1305) Adds a `repr(transparent)` newtype for a `[u8]` which is guaranteed to contain a valid BER serialization of an OID. This is a similar approach to how `Path`/`PathBuf` or `OsStr`/`OsString` work (except with `ObjectIdentifier` being stack-allocated instead of heap allocat...
diff --git a/const-oid/src/arcs.rs b/const-oid/src/arcs.rs index ab3923ef..59d340c4 100644 --- a/const-oid/src/arcs.rs +++ b/const-oid/src/arcs.rs @@ -58,7 +58,8 @@ impl<'a> Arcs<'a> { match self.cursor { // Indicates we're on the root arc None => { - let root = RootArc...
7
253
110
12820eb39018a6832da6d23890338f6b07920691
Tony Arcieri
2024-01-05T03:43:44
const-oid: fix `Encoder` size check and off-by-one error (#1304) The `Encoder` previously returned `Error::Length` even when there was one remaining byte in the buffer. This fixes that error and adds an edge case test.
diff --git a/const-oid/src/encoder.rs b/const-oid/src/encoder.rs index 049e60ab..e4e8a4bf 100644 --- a/const-oid/src/encoder.rs +++ b/const-oid/src/encoder.rs @@ -80,7 +80,7 @@ impl<const MAX_SIZE: usize> Encoder<MAX_SIZE> { let nbytes = base128_len(arc); // Shouldn't overflow on any...
1
1
1
09fcf9363f1144a57c4dc46cd96d96c7791a5f9e
Tony Arcieri
2024-01-05T01:24:29
der: bump `const-oid` to v0.10.0-pre.1 (#1302) ...as sourced from this repo, as it has diverged from the crate release
diff --git a/Cargo.lock b/Cargo.lock index 454104eb..64e09bc5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -442,7 +442,7 @@ version = "0.8.0-pre" dependencies = [ "arbitrary", "bytes", - "const-oid 0.9.6", + "const-oid 0.10.0-pre.1", "der_derive 0.8.0-pre", "flagset", "hex-literal 0.4.1", @@ -1008,7 +1008,7 @...
6
7
7
26a1a02aef326c2441608ffb059e07f39cbafe98
Tony Arcieri
2024-01-05T00:20:42
const-oid: factor traits into module (#1301) Adds a `traits` module containing `AssociatedOid` and `DynAssociatedOid`
diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs index 794daaa1..b966f270 100644 --- a/const-oid/src/lib.rs +++ b/const-oid/src/lib.rs @@ -30,6 +30,7 @@ mod buffer; mod encoder; mod error; mod parser; +mod traits; #[cfg(feature = "db")] pub mod db; @@ -38,6 +39,7 @@ pub use crate::{ arcs::{Arc, Arcs...
2
27
22
2bdc827d87665833acae7425181ae5d833f75ab0
Tony Arcieri
2024-01-04T23:37:26
const-oid: make `ObjectIdentifier`'s size const generic (#1300) Previously the v0.10-pre release series has attempted to make `ObjectIdentifier` generic around a backing buffer containing the BER encoding and bounded on `AsRef<[u8]>`. This approach has a drawback though: we can't use derived `PartialEq`/`Eq`, wh...
diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs index 34b3d2a2..794daaa1 100644 --- a/const-oid/src/lib.rs +++ b/const-oid/src/lib.rs @@ -46,7 +46,7 @@ use core::{fmt, str::FromStr}; /// Default maximum size. /// /// Makes `ObjectIdentifier` 40-bytes total w\ 1-byte length. -const MAX_SIZE: usize = 39; +con...
1
9
25
734b7b110c09ba0e9ae4a6245cc6912a0e6e4aa5
Tony Arcieri
2024-01-04T21:21:40
sec1: migrate from `generic-array` to `hybrid-array` (#1298) The RustCrypto/traits crates are now using `hybrid-array`, which features a mostly safe implementation that natively leverages const generics as much as possible.
diff --git a/Cargo.lock b/Cargo.lock index 179c0d65..454104eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -780,6 +780,15 @@ dependencies = [ "digest", ] +[[package]] +name = "hybrid-array" +version = "0.2.0-pre.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27fbaf242418fe980caf09...
4
71
53
a40e97b8e97ce1f548da46dbb36796a99723ea2b
Arthur Gautier
2024-01-04T20:37:31
spki: borrow the public key in `spki::from_key` (#1290) `SubjectPublicKeyInfoOwned` does not require the ownership of the key. This is a breaking change.
diff --git a/spki/src/spki.rs b/spki/src/spki.rs index b7e4c928..192b726a 100644 --- a/spki/src/spki.rs +++ b/spki/src/spki.rs @@ -207,7 +207,7 @@ mod allocating { impl SubjectPublicKeyInfoOwned { /// Create a [`SubjectPublicKeyInfoOwned`] from any object that implements /// [`EncodePublicKey`]. ...
1
1
1
189b4d0d43c75b5e3ab9031ef0008c7ba9ae9378
Andrew Pan
2024-01-04T18:41:09
tls_codec: implement `U24` (#1284)
diff --git a/tls_codec/src/lib.rs b/tls_codec/src/lib.rs index 3a01567e..768f79dd 100644 --- a/tls_codec/src/lib.rs +++ b/tls_codec/src/lib.rs @@ -41,9 +41,10 @@ mod quic_vec; mod tls_vec; pub use tls_vec::{ - SecretTlsVecU16, SecretTlsVecU32, SecretTlsVecU8, TlsByteSliceU16, TlsByteSliceU32, - TlsByteSliceU8...
7
106
22
a8784495a59c8d6f0777454c9aae43b3953f395d
Tony Arcieri
2024-01-03T21:19:39
const-oid v0.10.0-pre.1 (#1291)
diff --git a/Cargo.lock b/Cargo.lock index eee78892..605f6086 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -339,7 +339,7 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.10.0-pre.0" +version = "0.10.0-pre.1" dependencies = [ "arbitrary", "hex-literal 0.4.1", diff --git a/const-oid/Cargo.toml b/c...
2
2
2
b579ad6c3a85e117d9f4c025d84f05d51f3eab4a
Raminder Singh
2023-12-19T14:34:17
x509-cert: add Signed Certificate Timestamp (SCT) extension support (#1134) Adds support for Signed Certificate Timestamp (SCT) extension[1] to the `x509-cert` crate. Since the structures in SCT extension are TLS encoded we need to add a dependency on the `tls_codec` crate. This dependency has been made optional ...
diff --git a/Cargo.lock b/Cargo.lock index e3f140dd..c97c0d8c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1599,7 +1599,17 @@ dependencies = [ "criterion", "regex", "serde", - "tls_codec_derive", + "tls_codec_derive 0.3.0", + "zeroize", +] + +[[package]] +name = "tls_codec" +version = "0.4.0" +source = "registry+...
4
769
3
1d825c1fe519eb4592b7f5b03d4bde9db0a2a6c1
Arthur Gautier
2023-11-28T20:50:37
x509-cert: use `SubjectPublicKeyInfoOwned::from_key` (#1271)
diff --git a/x509-cert/Cargo.toml b/x509-cert/Cargo.toml index b9040175..033f48b3 100644 --- a/x509-cert/Cargo.toml +++ b/x509-cert/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.65" [dependencies] const-oid = { version = "0.9.3", features = ["db"] } der = { version = "0.7.6", features = ["alloc", "derive", "flagset...
2
3
7
085edf92b2a883f20a96beeedd25cb3d0f893096
Arthur Gautier
2023-11-28T19:04:27
spki: adds a public key to SubjectPublicKeyInfoOwned helper (#1269) This adds a `SubjectPublicKeyInfoOwned::from_key` helper that will accept any public key (an object implementing `EncodePublicKey`).
diff --git a/spki/src/spki.rs b/spki/src/spki.rs index 3d949f88..b7e4c928 100644 --- a/spki/src/spki.rs +++ b/spki/src/spki.rs @@ -181,6 +181,7 @@ impl<Params, Key> PemLabel for SubjectPublicKeyInfo<Params, Key> { #[cfg(feature = "alloc")] mod allocating { use super::*; + use crate::EncodePublicKey; use ...
1
12
0
c281f4708cd959e2de6ae3d7876b25b4c783972c
Franziskus Kiefer
2023-11-21T18:49:25
tls_codec: v0.4.0
diff --git a/Cargo.lock b/Cargo.lock index 03cc20d9..c3ac2b1a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -401,9 +401,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28f85c3514d2a6e64160359b...
3
17
17
fb91b1c71484f4b04ffbb187778b50f15a2f8c55
Konrad Kohbrok
2023-11-21T11:46:23
fix macro docs and bump version (#1268)
diff --git a/Cargo.lock b/Cargo.lock index 2dc47ee7..03cc20d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1589,7 +1589,7 @@ dependencies = [ [[package]] name = "tls_codec" -version = "0.4.0-pre.3" +version = "0.4.0-pre.4" dependencies = [ "anstyle", "anstyle-parse", @@ -1605,7 +1605,7 @@ dependencies = [ [...
4
24
15
f2dc3dbcaeb477b0e5d6f20144280f48a16356af
Konrad Kohbrok
2023-11-20T14:19:53
tls_codec: Re-export attribute macro from base crate and bump pre-release version (#1264) * publish attribute macro * bump pre-release version
diff --git a/Cargo.lock b/Cargo.lock index 945e2c72..2dc47ee7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1589,7 +1589,7 @@ dependencies = [ [[package]] name = "tls_codec" -version = "0.4.0-pre.2" +version = "0.4.0-pre.3" dependencies = [ "anstyle", "anstyle-parse", @@ -1605,7 +1605,7 @@ dependencies = [ [...
4
12
9
a8a67d1c105aabcbbb5c0303c8023adc165f4fb6
Franziskus Kiefer
2023-11-18T08:59:17
tls_codec: v0.4.0-pre.1 (#1260)
diff --git a/Cargo.lock b/Cargo.lock index 2fc71cdc..76687257 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -490,9 +490,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.16.8" +version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4b1e0c257a9e9f25f90ff76d7a683...
3
18
18
c61f06635d0f85a8cf84734a5572a49710f3798b
Artyom Pavlov
2023-11-15T23:51:21
Update Cargo.lock (#1256)
diff --git a/Cargo.lock b/Cargo.lock index 9acfb18b..2fc71cdc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -401,9 +401,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "740fe28e594155f10cfc3839...
4
40
32
ce9d249e5ca11a7b4af0d2425fefe0e9355ec4f4
Tony Arcieri
2023-11-01T01:32:17
Cargo.lock: update dependencies (#1245) Bumps the following dependencies: $ cargo update Updating aho-corasick v1.0.5 -> v1.1.2 Updating arbitrary v1.3.0 -> v1.3.2 Updating base64 v0.21.4 -> v0.21.5 Updating basic-toml v0.1.4 -> v0.1.7 Updating bitflags v2.4.0 -> v2.4.1 Updating by...
diff --git a/Cargo.lock b/Cargo.lock index 1429d6cf..9acfb18b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -15,9 +15,9 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "1.0.5" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c378d78423fdad8089616f8275...
1
121
131
3137922ed7db7e9a44532cb6be82286d1b2b6043
Tony Arcieri
2023-10-31T18:27:34
serdect: bump version to v0.3.0-pre (#1243) PR #1112 contained breaking changes. To reflect that, this bumps the `serdect` version to a prerelease. Note that there is not a crate release associated with this bump. If there is a prerelease, it will be `v0.3.0-pre.0`.
diff --git a/Cargo.lock b/Cargo.lock index 1c76e692..78bb4f65 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1345,7 +1345,7 @@ dependencies = [ "generic-array", "hex-literal 0.4.1", "pkcs8", - "serdect", + "serdect 0.2.0", "subtle", "tempfile", "zeroize", @@ -1409,7 +1409,17 @@ dependencies = [ [[package]]...
2
13
3
7543df3eb5f963ae4dd7a9a0f62673cb2986110a
bhesh
2023-10-30T19:33:06
x509-ocsp: remove lifetimes and implement `AsExtension` (#1241) Reorganizes `x509-ocsp` into separate files for readability and makes use of alloc to remove lifetimes. It also implements an OCSP version of AsExtension for all possible Extensions outlined in RFC-6960 (in a similar fashion to x509-cert) to be used i...
diff --git a/Cargo.lock b/Cargo.lock index 8bfbc00c..f2017f09 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1839,6 +1839,7 @@ dependencies = [ "const-oid 0.9.5", "der", "hex-literal 0.4.1", + "rand_core", "spki", "x509-cert", ] diff --git a/x509-ocsp/Cargo.toml b/x509-ocsp/Cargo.toml index 9421b52f..e7291465 ...
7
701
459
52656aee805a6d3f3355c23d6ffcdf04695b0ebc
Tony Arcieri
2023-10-08T22:21:10
const-oid v0.10.0-pre.0 (#1238)
diff --git a/Cargo.lock b/Cargo.lock index d0d9a00d..6310522c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -348,7 +348,7 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.10.0-pre" +version = "0.10.0-pre.0" dependencies = [ "arbitrary", "hex-literal 0.4.1", diff --git a/const-oid/Cargo.toml b/con...
2
2
2