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 |
|---|---|---|---|---|---|---|---|
21ff8947725fdfc53cb36fe958539e28a06e742c | Carl Wallace | 2023-09-21T02:26:10 | add comment to address #1206 (#1226) | diff --git a/crmf/src/request.rs b/crmf/src/request.rs
index da7737c1..18d6cb16 100644
--- a/crmf/src/request.rs
+++ b/crmf/src/request.rs
@@ -90,6 +90,16 @@ pub struct CertRequest {
/// extensions [9] Extensions{{CertExtensions}} OPTIONAL }
/// ```
///
+/// Note, the EXPLICIT tagging attribute used in the ... | 1 | 10 | 0 |
65f0b2f9207730998ea080fd582b522d6f0fbfdd | Tony Arcieri | 2023-09-13T15:49:41 | Cargo.lock: update dependencies (#1220)
Updates the following dependencies:
Updating crates.io index
Updating aho-corasick v1.0.4 -> v1.0.5
Updating anstyle v1.0.1 -> v1.0.3
Updating base64 v0.21.2 -> v0.21.4
Updating bytes v1.4.0 -> v1.5.0
Updating clap v4.3.23 -> v4.4.2
Updating ... | diff --git a/Cargo.lock b/Cargo.lock
index a81b1d90..2423c36e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -15,9 +15,9 @@ dependencies = [
[[package]]
name = "aho-corasick"
-version = "1.0.4"
+version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6748e8def348ed4d14996fa801f... | 3 | 113 | 251 |
4f41bdbd525a149d93b8218351220f3a8d982c43 | Tony Arcieri | 2023-09-05T16:53:19 | pkcs12: use `der::BmpString` for KDF (#1209)
Uses the `BmpString` type to implement transcoding from UTF-8 to
BMP/UCS-2.
This type notably restricts the use of UTF-16 surrogate pairs, something
the previous implementation was not doing correctly. This entailed
making the methods which transcode UTF-8 fallible, s... | diff --git a/Cargo.lock b/Cargo.lock
index 360fa8a6..27f36481 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1005,6 +1005,7 @@ dependencies = [
name = "pkcs12"
version = "0.0.0"
dependencies = [
+ "der",
"digest",
"hex-literal",
"sha2",
diff --git a/der/src/asn1/bmp_string.rs b/der/src/asn1/bmp_string.rs
index b... | 5 | 71 | 47 |
953b503e314c407db16b52f1f254b4ed0ef06c9c | Konrad Kohbrok | 2023-08-16T07:07:27 | tls_codec: Add allow(non-snake-case) to constants generated during trait derivation (#1172) | diff --git a/tls_codec/derive/src/lib.rs b/tls_codec/derive/src/lib.rs
index dbb48b61..f6559172 100644
--- a/tls_codec/derive/src/lib.rs
+++ b/tls_codec/derive/src/lib.rs
@@ -568,6 +568,7 @@ fn define_discriminant_constants(
))
} else {
Ok(quote! {
+ ... | 1 | 4 | 3 |
90a432447f6fa9997bff9ff1af392d0df58a02c9 | Raminder Singh | 2023-08-10T07:49:31 | Implement `SerializeBytes` for `TlsByteVecUX` types (#1133)
Co-authored-by: Franziskus Kiefer <franziskuskiefer@gmail.com> | diff --git a/tls_codec/src/tls_vec.rs b/tls_codec/src/tls_vec.rs
index f29f0447..f24b2a4a 100644
--- a/tls_codec/src/tls_vec.rs
+++ b/tls_codec/src/tls_vec.rs
@@ -13,7 +13,7 @@ use serde::ser::SerializeStruct;
use std::io::{Read, Write};
use zeroize::Zeroize;
-use crate::{Deserialize, DeserializeBytes, Error, Seria... | 2 | 87 | 33 |
00fbef3a3f5a3a6b567983050400e1c10b3fbab7 | Arthur Gautier | 2023-08-07T19:15:26 | der: impl `RefToOwned`/`OwnedToRef` for `&[u8]`/`Box<[u8]>` (#1188)
Signed-off-by: Arthur Gautier <baloo@superbaloo.net> | diff --git a/der/src/referenced.rs b/der/src/referenced.rs
index bb920db3..b0c8f032 100644
--- a/der/src/referenced.rs
+++ b/der/src/referenced.rs
@@ -45,3 +45,25 @@ where
self.as_ref().map(|o| o.ref_to_owned())
}
}
+
+#[cfg(feature = "alloc")]
+mod allocating {
+ use super::{OwnedToRef, RefToOwned};
... | 1 | 22 | 0 |
c512452151665c23776a6bf87259ada6cb1e9a12 | Jonas Platte | 2023-08-05T13:28:12 | der_derive: remove proc-macro-error dependency (#1180) | diff --git a/Cargo.lock b/Cargo.lock
index 5ea45d14..d7ea3627 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -441,7 +441,6 @@ dependencies = [
name = "der_derive"
version = "0.7.1"
dependencies = [
- "proc-macro-error",
"proc-macro2",
"quote",
"syn 2.0.25",
@@ -1079,30 +1078,6 @@ dependencies = [
"elliptic-curv... | 10 | 162 | 168 |
51712775059dac625a01d0ad8052632d53b09e17 | Eric Seppanen | 2023-08-05T13:03:37 | der_derive: fix doc typo and use a valid tag number (#1184)
Add the missing close-parenthesis. Also change the number in the
example, because "42" isn't a valid tag, and will result in a vague
compile-time error if the reader pastes this example into their code. | diff --git a/der/derive/src/lib.rs b/der/derive/src/lib.rs
index f3301827..b46191b7 100644
--- a/der/derive/src/lib.rs
+++ b/der/derive/src/lib.rs
@@ -55,7 +55,7 @@
//! This attribute can be added to associate a particular `CONTEXT-SPECIFIC`
//! tag number with a given enum variant or struct field.
//!
-//! The valu... | 1 | 1 | 1 |
b1af1f982d02079d425689209ca537305bd2b8a0 | Arthur Gautier | 2023-08-01T21:42:31 | x509-cert: relax dependencies (#1179)
* x509-cert: relax dependencies
* base64ct: preserve MSRV, drop tempfile/rustix | diff --git a/Cargo.lock b/Cargo.lock
index 3daf9fa4..877603d5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -548,12 +548,9 @@ dependencies = [
[[package]]
name = "fastrand"
-version = "1.9.0"
+version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e51093e27b0797c359783294ca4f... | 3 | 12 | 56 |
0b60b286570f4c728a6a6c59ec5eb1b24330b491 | Tony Arcieri | 2023-07-24T21:15:34 | der: no-panic cleanup (#1169)
Gets rid of an `expect` | diff --git a/der/src/asn1/bmp_string.rs b/der/src/asn1/bmp_string.rs
index 3ae31393..b4135d51 100644
--- a/der/src/asn1/bmp_string.rs
+++ b/der/src/asn1/bmp_string.rs
@@ -79,7 +79,7 @@ impl BmpString {
// TODO(tarcieri): use `array_chunks`
self.as_bytes()
.chunks_exact(2)
- .ma... | 1 | 1 | 1 |
f8f2cbdcec98738ebb2b7435d78f5cc337c8d71b | Tony Arcieri | 2023-07-24T18:00:23 | der: add `BmpString` (#1164)
Adds initial support for a Basic Multilingual Plane (a.k.a. UCS-2)
string type. | diff --git a/der/src/asn1.rs b/der/src/asn1.rs
index dead9ae0..b04b1b58 100644
--- a/der/src/asn1.rs
+++ b/der/src/asn1.rs
@@ -6,6 +6,8 @@ mod internal_macros;
mod any;
mod bit_string;
+#[cfg(feature = "alloc")]
+mod bmp_string;
mod boolean;
mod choice;
mod context_specific;
@@ -52,6 +54,7 @@ pub use self::{
pu... | 3 | 173 | 0 |
47a73cc282b79768dae045d89851d409e0b5b76c | Tony Arcieri | 2023-07-23T23:01:56 | pkcs8: eagerly decode PEM labels (#1163)
This should give better errors for invalid PEM type labels even if there
are subsequent Base64 processing errors, which might occur if e.g.
Base64 is wrapped at a nonstandard width.
Notably such errors will include the expected PEM type label. | diff --git a/pem-rfc7468/src/error.rs b/pem-rfc7468/src/error.rs
index 6a93465b..61da6477 100644
--- a/pem-rfc7468/src/error.rs
+++ b/pem-rfc7468/src/error.rs
@@ -45,7 +45,7 @@ pub enum Error {
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- match self {
+ ... | 2 | 18 | 7 |
4e079158275fdba176cac87f05168e55ce15be14 | Tony Arcieri | 2023-07-23T21:47:08 | pkcs12: Cargo.toml cleanups (#1162)
- Remove unused `cfg-if` dependency
- Whitespace fixups
- Move features before docs.rs metadata
- Remove category `data-structures` which is more for data structure
algorithms than data format decoders/encoders | diff --git a/Cargo.lock b/Cargo.lock
index ee876fd3..fb37de02 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1019,7 +1019,6 @@ dependencies = [
name = "pkcs12"
version = "0.0.0"
dependencies = [
- "cfg-if",
"digest",
"hex-literal",
"sha2",
diff --git a/pkcs12/Cargo.toml b/pkcs12/Cargo.toml
index 937fcf67..206c5c... | 2 | 5 | 8 |
ad234de5536a855ffb7220b7ed4c6f0fb2e33b3e | Mark Beinker | 2023-07-23T20:50:01 | pkcs12: KDF support (#1154)
Implementation of the KDF in RFC7292 Appendix B | diff --git a/Cargo.lock b/Cargo.lock
index 284bfd2e..ee876fd3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1018,6 +1018,14 @@ dependencies = [
[[package]]
name = "pkcs12"
version = "0.0.0"
+dependencies = [
+ "cfg-if",
+ "digest",
+ "hex-literal",
+ "sha2",
+ "whirlpool",
+ "zeroize",
+]
[[package]]
name = "pkcs... | 5 | 365 | 1 |
3a0f2fa4e86df87119352d2212340eb091aea2c7 | Tony Arcieri | 2023-07-17T01:07:11 | der: `bytes` feature (#1156)
Adds (optional) support for using `bytes::Bytes` as an `OctetString`. | diff --git a/Cargo.lock b/Cargo.lock
index e387ce98..b5988fed 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -156,6 +156,12 @@ version = "1.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
+[[package]]
+name = "bytes"
+v... | 3 | 38 | 2 |
d4c6d4ff9486ab6496205967cf4b4e03336974aa | Arthur Gautier | 2023-07-14T16:43:47 | Fixed encoding of `SubjectKeyIdentifier` (#1152)
Co-authored-by: Bernd Krietenstein <bernd.krietenstein@rohde-schwarz.com> | diff --git a/cms/src/signed_data.rs b/cms/src/signed_data.rs
index bd5e3e74..04ff9eb3 100644
--- a/cms/src/signed_data.rs
+++ b/cms/src/signed_data.rs
@@ -169,7 +169,7 @@ pub type SignedAttributes = Attributes;
pub enum SignerIdentifier {
IssuerAndSerialNumber(IssuerAndSerialNumber),
- #[asn1(context_specifi... | 1 | 1 | 1 |
696413254256a3ebbfa788bfdf486b7294c9c5f9 | Arthur Gautier | 2023-07-12T14:49:04 | x509-cert: fixup `Arbitrary` for certificates (#1150)
Fixes #1149
This broke with the parsing profiles (#987) | diff --git a/x509-cert/src/certificate.rs b/x509-cert/src/certificate.rs
index 80ff8590..c5a105db 100644
--- a/x509-cert/src/certificate.rs
+++ b/x509-cert/src/certificate.rs
@@ -31,6 +31,7 @@ pub trait Profile: PartialEq + Debug + Eq + Clone {
}
}
+#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary)... | 2 | 21 | 0 |
5b477c3d171956c03d61f9208f1e8bbccb68d45b | Bernd Krietenstein | 2023-07-12T14:48:46 | cms: don't insert signing time attribute by default (#1148)
The previous implementation of `SignedDataBuilder` inserted a signing time
attribute by default.
This was removed, as it is not required and might even be unwanted. | diff --git a/cms/src/builder.rs b/cms/src/builder.rs
index 8a03bd9d..de484f5c 100644
--- a/cms/src/builder.rs
+++ b/cms/src/builder.rs
@@ -204,23 +204,9 @@ where
},
};
- // We set the signing time attribute. In this case, signed attributes are used and
- // will be signed instead o... | 1 | 3 | 17 |
ad84120fe86fd74749ce3f3334921670a0016d74 | Tony Arcieri | 2023-07-10T21:18:01 | Cargo.lock: bump dependencies (#1147)
Updates the following:
$ cargo update
Updating crates.io index
Updating anstyle v1.0.0 -> v1.0.1
Updating basic-toml v0.1.2 -> v0.1.3
Adding bitflags v2.3.3
Updating clap v4.3.4 -> v4.3.11
Updating clap_builder v4.3.4 -> v4.3.11
Updating... | diff --git a/Cargo.lock b/Cargo.lock
index d15e7c14..a8da8b26 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -30,9 +30,9 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
[[package]]
name = "anstyle"
-version = "1.0.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/c... | 1 | 123 | 97 |
688e8806a6133e2c563c9df682f7cb085542b5b0 | Arthur Gautier | 2023-07-10T00:58:41 | x509-cert: adds `add_attribute` to `RequestBuilder` (#1137)
See #1041 | diff --git a/x509-cert/src/builder.rs b/x509-cert/src/builder.rs
index 09d45de7..ec51a7e3 100644
--- a/x509-cert/src/builder.rs
+++ b/x509-cert/src/builder.rs
@@ -18,7 +18,7 @@ use crate::{
AsExtension, Extension, Extensions,
},
name::Name,
- request::{CertReq, CertReqInfo, ExtensionReq},
+ req... | 4 | 107 | 7 |
e0e12c8594198fe0124a5c1319a94343132ca4ab | Raminder Singh | 2023-07-03T18:03:46 | tls_codec: Fix TlsByteVecUX deserialization (#1132)
The DeserializeBytes impl of TlsByteVecUX did not skip the length prefix
bytes. | diff --git a/tls_codec/src/tls_vec.rs b/tls_codec/src/tls_vec.rs
index da0c9f0a..f29f0447 100644
--- a/tls_codec/src/tls_vec.rs
+++ b/tls_codec/src/tls_vec.rs
@@ -74,7 +74,9 @@ macro_rules! impl_byte_deserialize {
u16::MAX
)));
}
- let vec = bytes.get(..len)... | 2 | 31 | 1 |
ecc545ab45f39aed7fb8f8ba461e59fa5c2a0582 | Arthur Gautier | 2023-07-03T06:16:25 | Missing `Cargo.lock` changes (#1136)
with #1130 there were changes in `Cargo.lock` missing after the bump of
`const-oid` version. | diff --git a/Cargo.lock b/Cargo.lock
index d8d09dfd..38890643 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -244,7 +244,7 @@ checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b"
name = "cmpv2"
version = "0.2.0"
dependencies = [
- "const-oid 0.9.2",
+ "const-oid 0.9.3",
"crmf",
"der",
"he... | 1 | 11 | 11 |
9e9a980a3df7b2490770fba5e7341dab6c2f4249 | Arthur Gautier | 2023-06-30T01:38:39 | x509-cert: use the shortest name when looking attr OID (#1130)
Before this commit, the string serialization will format some attributes
with the longer name when the same OID was provided by two RFC.
For example this would use `STATEORPROVINCENAME` instead of `ST` for oid 2.5.4.8 | diff --git a/x509-cert/Cargo.toml b/x509-cert/Cargo.toml
index 01bdc0d3..8a78260c 100644
--- a/x509-cert/Cargo.toml
+++ b/x509-cert/Cargo.toml
@@ -15,7 +15,7 @@ edition = "2021"
rust-version = "1.65"
[dependencies]
-const-oid = { version = "0.9.2", features = ["db"] } # TODO: path = "../const-oid"
+const-oid = { ve... | 3 | 27 | 4 |
41bbcec47cd4a2a6238f8d0377399ebaed97e13d | Arthur Gautier | 2023-06-29T20:32:04 | const-oid: return all matched names when looking up oid (#1129)
Multiple RFCs may be defining the same OID. This commit provides
a `Database::find_names_for_oid` method that will return all values
that were matched. | diff --git a/const-oid/src/db.rs b/const-oid/src/db.rs
index 85b66389..46dafe86 100644
--- a/const-oid/src/db.rs
+++ b/const-oid/src/db.rs
@@ -36,6 +36,7 @@ const fn eq_case(lhs: &[u8], rhs: &[u8]) -> bool {
}
/// A query interface for OIDs/Names.
+#[derive(Copy, Clone)]
pub struct Database<'a>(&'a [(&'a ObjectIde... | 1 | 38 | 0 |
409be053d4e586e0a8ad499ea7e13f7c38c57ea7 | Konrad Kohbrok | 2023-06-28T04:47:37 | tls_codec: fix deserialization of option (#1125) | diff --git a/tls_codec/src/primitives.rs b/tls_codec/src/primitives.rs
index 94fcfbb0..ae2d2d18 100644
--- a/tls_codec/src/primitives.rs
+++ b/tls_codec/src/primitives.rs
@@ -95,13 +95,13 @@ impl<T: Deserialize> Deserialize for Option<T> {
impl<T: DeserializeBytes> DeserializeBytes for Option<T> {
#[inline]
... | 2 | 17 | 3 |
f36bcbbe462dab41b2ed656e1711c0aac42d41bf | Arthur Gautier | 2023-06-27T23:12:51 | x509-cert: fixup RDN string representation (#1126)
* x509-cert: fixup RDN string representation
* x509-cert: parse RDN strings according to RFC4514 | diff --git a/x509-cert/src/name.rs b/x509-cert/src/name.rs
index c21ec866..ec622497 100644
--- a/x509-cert/src/name.rs
+++ b/x509-cert/src/name.rs
@@ -47,10 +47,11 @@ impl FromStr for RdnSequence {
type Err = der::Error;
fn from_str(s: &str) -> der::Result<Self> {
- split(s, b',')
+ let mut pa... | 2 | 55 | 32 |
43e208dd68babffbf1f839fcf7f7fc8c7762e33b | Franziskus Kiefer | 2023-06-22T08:23:01 | tls_codec: v0.3.0 (#1113) | diff --git a/Cargo.lock b/Cargo.lock
index be38e597..218d46ab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1631,7 +1631,7 @@ dependencies = [
[[package]]
name = "tls_codec"
-version = "0.3.0-pre.4"
+version = "0.3.0"
dependencies = [
"arbitrary",
"criterion",
@@ -1643,7 +1643,7 @@ dependencies = [
[[package... | 3 | 5 | 5 |
9139bdc8d34ca7eab2bc82ad33daecefd675e6f9 | Артём Павлов [Artyom Pavlov] | 2023-06-16T13:33:09 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 03820521..cf8f260a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -15,9 +15,9 @@ dependencies = [
[[package]]
name = "aho-corasick"
-version = "1.0.1"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67fc08ce920c31afb70f013dcce... | 1 | 71 | 136 |
8bea5699c37a842540fd0efa56227ad89d0df99a | Noa Resare | 2023-06-12T15:00:17 | sec1: implement `Hash` for `EncodedPoint` (#1102) | diff --git a/sec1/src/point.rs b/sec1/src/point.rs
index fb0e0456..818f5bda 100644
--- a/sec1/src/point.rs
+++ b/sec1/src/point.rs
@@ -10,6 +10,7 @@ use base16ct::HexDisplay;
use core::{
cmp::Ordering,
fmt::{self, Debug},
+ hash::{Hash, Hasher},
ops::Add,
str,
};
@@ -294,6 +295,15 @@ where
... | 1 | 10 | 0 |
b7a7ac10a921080d272c8af5b7ec1ad3c0ad6ed6 | Carl Wallace | 2023-06-07T16:38:55 | fix typos in status values (#1100) | diff --git a/cmpv2/src/status.rs b/cmpv2/src/status.rs
index 2904bf3e..64bf1145 100644
--- a/cmpv2/src/status.rs
+++ b/cmpv2/src/status.rs
@@ -139,9 +139,9 @@ flags! {
BadRecipientNonce = 13,
TimeNotAvailable = 14,
UnacceptedPolicy = 15,
- UnacceptedExtension = 15,
- AddInfoNo... | 1 | 3 | 3 |
dbcd654c3716c83d9445592233a0162cc4c24eee | Konrad Kohbrok | 2023-06-07T14:32:07 | tls_codec: export DeserializeBytes macro from tls_codec (#1099)
* export DeserializeBytes macro from tls_codec
* add path to derive crate in Cargo.toml | diff --git a/tls_codec/Cargo.toml b/tls_codec/Cargo.toml
index ddffc801..c60cae01 100644
--- a/tls_codec/Cargo.toml
+++ b/tls_codec/Cargo.toml
@@ -16,7 +16,7 @@ zeroize = { version = "1.6", default-features = false, features = ["alloc", "zer
# optional dependencies
arbitrary = { version = "1", features = ["derive"], ... | 2 | 2 | 2 |
679d0ea1082247edb707c54101d5eff18049fed8 | Konrad Kohbrok | 2023-06-07T12:59:25 | tls_codec: fix derive macro and add a few more tests (#1098) | diff --git a/tls_codec/derive/src/lib.rs b/tls_codec/derive/src/lib.rs
index 7cdc5f2f..e32f5c39 100644
--- a/tls_codec/derive/src/lib.rs
+++ b/tls_codec/derive/src/lib.rs
@@ -883,19 +883,32 @@ fn impl_deserialize_bytes(parsed_ast: TlsStruct) -> TokenStream2 {
}) => {
let ((members, member_prefixes... | 3 | 131 | 39 |
0737947cc049346583af8375ccb1ef60745257a5 | Paolo Capriotti | 2023-06-01T08:18:51 | tls_codec: Fix variable length encoding (#1084)
* Fix variable length encoding
- Lengths over 2 bytes were serialised with an incorrect prefix
- Fixed off-by-one errors on encoding length boundaries
- Length prefix should be the logarithm of the number of bytes to read
to extract the length
* quic_vec: inclusive l... | diff --git a/tls_codec/src/quic_vec.rs b/tls_codec/src/quic_vec.rs
index 37539d5f..3449d97d 100644
--- a/tls_codec/src/quic_vec.rs
+++ b/tls_codec/src/quic_vec.rs
@@ -25,11 +25,11 @@ use crate::{Deserialize, Error, Serialize, Size};
#[cfg(not(feature = "mls"))]
const MAX_LEN: u64 = (1 << 62) - 1;
#[cfg(not(feature =... | 3 | 61 | 13 |
7019ca0058a6702f1924cd991c214048be0bceb3 | Bernd Krietenstein | 2023-05-30T13:13:50 | Added TryFrom for RelativeDistinguishedName (#1092) | diff --git a/x509-cert/src/name.rs b/x509-cert/src/name.rs
index dfceea11..c21ec866 100644
--- a/x509-cert/src/name.rs
+++ b/x509-cert/src/name.rs
@@ -166,6 +166,14 @@ impl FromStr for RelativeDistinguishedName {
}
}
+impl TryFrom<Vec<AttributeTypeAndValue>> for RelativeDistinguishedName {
+ type Error = der... | 1 | 8 | 0 |
dd61aa8c54091759f68a544024ca8b4e9a0ca311 | Tony Arcieri | 2023-05-29T22:20:43 | Cargo.lock: bump dependencies (#1091)
Bumps the following dependencies:
$ cargo update
Updating crates.io index
Updating base64 v0.21.1 -> v0.21.2
Updating bumpalo v3.12.0 -> v3.13.0
Updating cpufeatures v0.2.6 -> v0.2.7
Updating crypto-bigint v0.5.1 -> v0.5.2
Updating digest v0.10... | diff --git a/Cargo.lock b/Cargo.lock
index 675e62ef..bb05b434 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -69,9 +69,9 @@ dependencies = [
[[package]]
name = "base64"
-version = "0.21.1"
+version = "0.21.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f1e31e207a6b8fb791a38ea3105e6c... | 1 | 66 | 76 |
1373866ebebe0df1e06f9366f08f0ec78f637c67 | Tony Arcieri | 2023-05-20T21:44:46 | gss-api: add `krb5` keyword to Cargo.toml (#1077) | diff --git a/gss-api/Cargo.toml b/gss-api/Cargo.toml
index 13d817f5..97289e9e 100644
--- a/gss-api/Cargo.toml
+++ b/gss-api/Cargo.toml
@@ -9,7 +9,7 @@ authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/formats/tree/master/gss-api"
categories = ["cryptography... | 1 | 1 | 1 |
55cfcaa0166bbbe89de18942db69e62bd283a2f3 | turbocool3r | 2023-05-20T18:51:06 | Implement TryFrom<String> for strings based on StrOwned. (#1064) | diff --git a/der/src/asn1/ia5_string.rs b/der/src/asn1/ia5_string.rs
index c3f24f01..1b06dcef 100644
--- a/der/src/asn1/ia5_string.rs
+++ b/der/src/asn1/ia5_string.rs
@@ -90,8 +90,9 @@ mod allocation {
use crate::{
asn1::AnyRef,
referenced::{OwnedToRef, RefToOwned},
- FixedTag, Result, Str... | 4 | 46 | 8 |
57b6ca51d40dea60ac7d7cdb59aeb77462a0d3bd | Tony Arcieri | 2023-05-15T17:41:43 | der: fix handling of non-unique items in `SetOf`(Vec) (#1066)
The `TryFrom` constructors were not properly tested for the handling of
duplicate items and allowed them to be inserted.
This commit fixes the handling and adds tests. In the event there are
duplicates in a set, a newly added `ErrorKind::SetDuplicate` ... | diff --git a/der/src/asn1/set_of.rs b/der/src/asn1/set_of.rs
index 7e958e1e..fcfaeb8c 100644
--- a/der/src/asn1/set_of.rs
+++ b/der/src/asn1/set_of.rs
@@ -51,8 +51,10 @@ where
pub fn add(&mut self, new_elem: T) -> Result<()> {
// Ensure set elements are lexicographically ordered
if let Some(last_... | 3 | 49 | 17 |
b0be47a5c1c3d70db0a6fefe99d484e21a3d4b0d | Tony Arcieri | 2023-05-15T16:09:29 | der: add `SetOfVec::{extend, from_iter}` (#1065)
Adds inherent methods to `SetOfVec` shaped like the `Extend` and
`FromIterator` traits.
However, the methods are fallible, so they don't quite fit the existing
traits, hence why inherent methods are used instead. | diff --git a/der/src/asn1/set_of.rs b/der/src/asn1/set_of.rs
index e8f20e9c..7e958e1e 100644
--- a/der/src/asn1/set_of.rs
+++ b/der/src/asn1/set_of.rs
@@ -214,6 +214,18 @@ where
}
}
+ /// Create a new [`SetOfVec`] from the given iterator.
+ ///
+ /// Note: this is an inherent method instead of ... | 1 | 24 | 0 |
bb6bb25b3f0244e7cff5ed29bddc73680d91ed43 | Arthur Gautier | 2023-05-11T16:28:05 | x509-cert: 0.2.2-pre.1 (#1059) | diff --git a/Cargo.lock b/Cargo.lock
index 4081c6a6..e2a7934b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1980,7 +1980,7 @@ dependencies = [
[[package]]
name = "x509-cert"
-version = "0.2.2-pre"
+version = "0.2.2-pre.1"
dependencies = [
"arbitrary",
"const-oid 0.9.2",
diff --git a/x509-cert/Cargo.toml b/x509-... | 2 | 2 | 2 |
890333525daed0cee2068f76f1946f74a7c572d1 | Arthur Gautier | 2023-05-11T16:17:44 | x509-cert: consume the `SignatureBitStringEncoding` trait (#1048) | diff --git a/Cargo.lock b/Cargo.lock
index b7982afc..4081c6a6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -461,15 +461,16 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.16.6"
+version = "0.16.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a48e5d537b8a30c0b023116d981b... | 3 | 15 | 13 |
bee8a6ea34f978ca474e4e42fceb158f9a39d6dd | Nick Santana | 2023-05-06T00:08:59 | Add notes about `UTCTime` range being 1970-2049 (#1052)
RFC 5280 says that `UTCTime` is 1950-2049, however due the common use of
computer times being based off of `UNIX_EPOCH` the implementation of
[`UtcTime`](https://docs.rs/der/latest/der/asn1/struct.UtcTime.html) is limited to 1970.
This limitation is due to t... | diff --git a/der/src/asn1/utc_time.rs b/der/src/asn1/utc_time.rs
index 0c10e3af..9f2f1713 100644
--- a/der/src/asn1/utc_time.rs
+++ b/der/src/asn1/utc_time.rs
@@ -25,6 +25,9 @@ use std::time::SystemTime;
/// > interpreted as `19YY`; and
/// > - Where `YY` is less than 50, the year SHALL be interpreted as `20YY`.
/... | 2 | 7 | 1 |
3b3def5506b898440cb14d0e8f6fda465140e8b0 | Arthur Gautier | 2023-05-04T23:07:08 | x509-cert: missing extension implementations (#1050) | diff --git a/x509-cert/src/ext/pkix/crl.rs b/x509-cert/src/ext/pkix/crl.rs
index 5516fbc9..f3e9397b 100644
--- a/x509-cert/src/ext/pkix/crl.rs
+++ b/x509-cert/src/ext/pkix/crl.rs
@@ -45,6 +45,7 @@ impl AssociatedOid for BaseCrlNumber {
}
impl_newtype!(BaseCrlNumber, Uint);
+impl_extension!(BaseCrlNumber, critical =... | 3 | 7 | 0 |
82a6ed591890933ff11a996f622736c7fc58511c | Arthur Gautier | 2023-05-04T20:46:31 | spki: Adds a `SignatureBitStringEncoding` trait (#1047)
This is used to differentiate the different encoding for signatures as
x509 related structures rely on `BitString` encoding of the various
signatures.
This is mostly used as a marker trait to ensure misuse resistance of the
API. | diff --git a/spki/src/lib.rs b/spki/src/lib.rs
index 026109c2..6c0caa72 100644
--- a/spki/src/lib.rs
+++ b/spki/src/lib.rs
@@ -61,6 +61,7 @@ pub use {
spki::SubjectPublicKeyInfoOwned,
traits::{
DynAssociatedAlgorithmIdentifier, DynSignatureAlgorithmIdentifier, EncodePublicKey,
+ ... | 2 | 11 | 1 |
80c2c121d1976f2a81d3e68c227833e704d1a9de | Arthur Gautier | 2023-05-04T02:43:04 | x509-cert: fixup CI flakiness (#1042)
rsa 0.9.1 provides a fix for invalid signatures sometimes generated | diff --git a/Cargo.lock b/Cargo.lock
index b61ffec5..e6ea2860 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1245,9 +1245,9 @@ dependencies = [
[[package]]
name = "rsa"
-version = "0.9.0"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3dd2017d3e6d67384f301f8b06fbf456... | 2 | 3 | 3 |
664ee446dd34caf87cafc06f0e1b5a5e2c6d1b62 | Arthur Gautier | 2023-05-03T19:37:46 | x509-cert: v0.2.2-pre (#1039) | diff --git a/Cargo.lock b/Cargo.lock
index 51937bb5..b61ffec5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -249,7 +249,7 @@ dependencies = [
"der",
"hex-literal",
"spki",
- "x509-cert",
+ "x509-cert 0.2.1",
]
[[package]]
@@ -261,7 +261,7 @@ dependencies = [
"hex-literal",
"pkcs5",
"spki",
- "x509-cert",
... | 2 | 17 | 6 |
203013243481fc46ff035857e6e7e950da0a6c92 | Arthur Gautier | 2023-05-03T18:53:54 | x509-cert: adds a `CertReq` builder (#1034)
* x509-cert: decorelate `AsExtension` from `TbsCertificate`
* x509-cert: adds a `CertReq` builder
* x509-cert: adds a `Builder` trait for `Certificate` and `CertReq` | diff --git a/x509-cert/src/builder.rs b/x509-cert/src/builder.rs
index e8f8ae48..6040e927 100644
--- a/x509-cert/src/builder.rs
+++ b/x509-cert/src/builder.rs
@@ -15,9 +15,10 @@ use crate::{
pkix::{
AuthorityKeyIdentifier, BasicConstraints, KeyUsage, KeyUsages, SubjectKeyIdentifier,
},
- ... | 9 | 280 | 77 |
91b951da1c9df7e8534d246ff24f9725b9754946 | Tony Arcieri | 2023-05-03T00:35:53 | der: fix off-by-one error in BMPString tag (#1037)
The tag was previously configured to be 0x1D.
The correct decimal value of BMPString's tag is 30, or 0x1E in hex. | diff --git a/der/src/tag.rs b/der/src/tag.rs
index b0853a84..7a1fed1b 100644
--- a/der/src/tag.rs
+++ b/der/src/tag.rs
@@ -213,7 +213,7 @@ impl Tag {
Tag::UtcTime => 0x17,
Tag::GeneralizedTime => 0x18,
Tag::VisibleString => 0x1A,
- Tag::BmpString => 0x1D,
+ T... | 1 | 2 | 2 |
79585b3bc84e87b614833a52200ce1a4a717da20 | Arthur Gautier | 2023-05-01T22:49:13 | x509-cert: adds conversion from `std::net::IpAddr` (#1035) | diff --git a/x509-cert/src/ext/pkix/name/general.rs b/x509-cert/src/ext/pkix/name/general.rs
index 4651cc49..bd0fa7e9 100644
--- a/x509-cert/src/ext/pkix/name/general.rs
+++ b/x509-cert/src/ext/pkix/name/general.rs
@@ -61,3 +61,49 @@ pub enum GeneralName {
#[asn1(context_specific = "8", tag_mode = "IMPLICIT")]
... | 1 | 46 | 0 |
e3a8214454e8f5b7dfdf1891a83eb5368e492e0d | Konrad Kohbrok | 2023-04-27T17:17:18 | tls_codec: Derive Zeroize and ZeroizeOnDrop for VLBytes (#1029)
* add SecretVLBytes that derives ZeroizeOnDrop
* add small test
* bump version to 0.3.0-pre.3
* update to zeroize 1.6
---------
Co-authored-by: Franziskus Kiefer <franziskuskiefer@gmail.com> | diff --git a/tls_codec/Cargo.toml b/tls_codec/Cargo.toml
index 4b842536..3083ffc3 100644
--- a/tls_codec/Cargo.toml
+++ b/tls_codec/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "tls_codec"
-version = "0.3.0-pre.2"
+version = "0.3.0-pre.3"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
documentati... | 3 | 113 | 49 |
f005791cecf75b6e9b7e4b42e69ac35fbd797ad5 | Arthur Gautier | 2023-04-25T17:03:22 | x509-cert: make SKI optional in leaf certificate (#1028)
[RFC5280 Section 4.2.1.2] recommends the SKI to be included but other
specifications (IEEE 801.1AR Section 8.10.2 subjectKeyIdentifier) says
it should not be included.
This introduces a tunable in the Leaf profile under the `hazmat` feature
not to include ... | diff --git a/x509-cert/src/builder.rs b/x509-cert/src/builder.rs
index 399e7ee2..e8f8ae48 100644
--- a/x509-cert/src/builder.rs
+++ b/x509-cert/src/builder.rs
@@ -92,6 +92,14 @@ pub enum Profile {
enable_key_agreement: bool,
/// should the key encipherment flag of KeyUsage be enabled
enable_k... | 2 | 56 | 7 |
3c1060ec3f4c0f595cdf2c277d1cf7c7ab6991aa | Arthur Gautier | 2023-04-25T15:31:43 | x509-cert: adds support for `Time::INFINITY` (#1024)
When certificates are burned in hardware, the expiration date could be
set to infinity.
For example with IDevID when burned to TPM:
https://trustedcomputinggroup.org/wp-content/uploads/TPM-2p0-Keys-for-Device-Identity-and-Attestation_v1_r12_pub10082021.pdf#page... | diff --git a/x509-cert/Cargo.toml b/x509-cert/Cargo.toml
index 499b3541..47cabb23 100644
--- a/x509-cert/Cargo.toml
+++ b/x509-cert/Cargo.toml
@@ -16,7 +16,7 @@ rust-version = "1.65"
[dependencies]
const-oid = { version = "0.9.2", features = ["db"] } # TODO: path = "../const-oid"
-der = { version = "0.7.4", feature... | 2 | 5 | 1 |
1dd1c5fdf0d59ab23ac3b56c4d576e79d2b727a7 | Arthur Gautier | 2023-04-24T23:35:26 | der: adds support for `DateTime::INFINITY` (#1026)
When certificates are burned in hardware, the expiration date could be
set to infinity.
For example with IDevID when burned to TPM:
https://trustedcomputinggroup.org/wp-content/uploads/TPM-2p0-Keys-for-Device-Identity-and-Attestation_v1_r12_pub10082021.pdf#page=5... | diff --git a/der/src/asn1/generalized_time.rs b/der/src/asn1/generalized_time.rs
index f7b6f180..8837917c 100644
--- a/der/src/asn1/generalized_time.rs
+++ b/der/src/asn1/generalized_time.rs
@@ -37,7 +37,7 @@ impl GeneralizedTime {
const LENGTH: usize = 15;
/// Create a [`GeneralizedTime`] from a [`DateTime... | 2 | 13 | 1 |
683cbaa5a37bf902a001027d5f0a7adb3d54fa2f | Arthur Gautier | 2023-04-24T22:13:24 | pkcs1: missing Cargo.lock update with release 0.7.5 (#1025) | diff --git a/Cargo.lock b/Cargo.lock
index 5f02e383..2ef8d412 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -969,7 +969,7 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]]
name = "pkcs1"
-version = "0.7.4"
+version = "0.7.5"
dependencies = [
"const-oid 0.9.2",
"der", | 1 | 1 | 1 |
8d0737f743168d2677be7fbcd689da3ba1f1c9e6 | Tony Arcieri | 2023-04-24T18:39:35 | pkcs1: fix import failure (#1021)
When building with the `alloc` and `pkcs8` features, the following error
occurs:
error[E0433]: failed to resolve: use of undeclared type `RsaPrivateKey`
--> /Users/tarcieri/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pkcs1-0.7.4/src/traits.rs:190:9
|
190 | ... | diff --git a/pkcs1/src/traits.rs b/pkcs1/src/traits.rs
index fda603e2..cd3d04e2 100644
--- a/pkcs1/src/traits.rs
+++ b/pkcs1/src/traits.rs
@@ -21,12 +21,12 @@ use {
#[cfg(feature = "std")]
use std::path::Path;
-#[cfg(all(feature = "alloc", feature = "pem"))]
-use crate::{RsaPrivateKey, RsaPublicKey};
-
#[cfg(all(f... | 1 | 3 | 3 |
5bd941f03f977085c0eefbb6ff243461d1efe4af | Jiahao XU | 2023-04-21T12:13:53 | Fix feature `alloc` and `pem` in `pkcs1` (#1013)
Avoid pulling in dep `pkcs8` or `zeroize` just because feature
`alloc`/`pem`/`std` is enabled.
Also removes unused dependency `zeeroize` and replace it with a feature.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com> | diff --git a/Cargo.lock b/Cargo.lock
index e809d920..e49dd820 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -977,7 +977,6 @@ dependencies = [
"pkcs8",
"spki",
"tempfile",
- "zeroize",
]
[[package]]
diff --git a/pkcs1/Cargo.toml b/pkcs1/Cargo.toml
index fd6da093..d79186d0 100644
--- a/pkcs1/Cargo.toml
+++ b/pkcs... | 3 | 8 | 9 |
b020fcd131d6e33ed4a5b9e968606cf1a87bd157 | Tony Arcieri | 2023-04-20T16:31:44 | x509-cert: better debug info when `zlint` isn't installed (#1018) | diff --git a/x509-cert/test-support/src/zlint.rs b/x509-cert/test-support/src/zlint.rs
index dd72dead..e3743a75 100644
--- a/x509-cert/test-support/src/zlint.rs
+++ b/x509-cert/test-support/src/zlint.rs
@@ -6,7 +6,7 @@ use std::{
collections::HashMap,
fmt,
fs::File,
- io::{Read, Write},
+ io::{self... | 1 | 8 | 2 |
e74ef5e673ec91ec983595e9668480e7dd89d912 | Arthur Gautier | 2023-04-20T16:08:49 | x509-cert: extraneous PhantomData in `TbsCertificate` (#1017) | diff --git a/x509-cert/src/builder.rs b/x509-cert/src/builder.rs
index 16579d70..399e7ee2 100644
--- a/x509-cert/src/builder.rs
+++ b/x509-cert/src/builder.rs
@@ -280,8 +280,6 @@ where
// https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.8
issuer_unique_id: None,
subject... | 2 | 1 | 5 |
81429f3c34d55eb9911896210b586cbdeecbae88 | Dmitry Baryshkov | 2023-04-19T20:52:01 | x509-cert: builder: support `RandomizedSigner` (#1007)
- Add support for using RandomizedSigner for signing certificates in
addition to just Signer keys.
- The Signature parameter of CertificateBuilder::new() is unused. Let's
drop it. We still bind the signature type at the time of
CertificateBuilder::build(... | diff --git a/Cargo.lock b/Cargo.lock
index c644d4c8..eb95d7d0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1240,9 +1240,9 @@ dependencies = [
[[package]]
name = "rsa"
-version = "0.9.0-pre.1"
+version = "0.9.0-pre.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f16504cc31b04d2a5ec7... | 4 | 103 | 36 |
efa5823a69b6a5fb1dfdd85f614a5ca11904cfa6 | Arthur Gautier | 2023-04-19T20:43:16 | der_derive: handle type generics in `Sequence` macro (#1014) | diff --git a/der/derive/src/choice.rs b/der/derive/src/choice.rs
index e80d04fb..d0aa6a24 100644
--- a/der/derive/src/choice.rs
+++ b/der/derive/src/choice.rs
@@ -61,7 +61,10 @@ impl DeriveChoice {
let lifetime = match self.lifetime {
Some(ref lifetime) => quote!(#lifetime),
- None =>... | 3 | 47 | 35 |
0aa9ab6e17a24c04cb13f401e7ca2980683654cd | Arthur Gautier | 2023-04-18T19:05:33 | der: provide a noop implementation for PhantomData (#1012)
similar to #1009, provide a `der::DerOrd` and a `der::ValueOrd` noop
implementation for PhantomData | diff --git a/der/src/ord.rs b/der/src/ord.rs
index fd967bf8..42d46234 100644
--- a/der/src/ord.rs
+++ b/der/src/ord.rs
@@ -1,7 +1,7 @@
//! Ordering trait.
use crate::{EncodeValue, Result, Tagged};
-use core::cmp::Ordering;
+use core::{cmp::Ordering, marker::PhantomData};
/// DER ordering trait.
///
@@ -69,3 +69... | 1 | 15 | 1 |
86baf66dbb9441d3c91f5b566be9edbe6749aa4a | Tony Arcieri | 2023-04-18T17:31:40 | der: add `Decode` and `Encode` impls for `PhantomData` (#1009)
Allows `PhantomData` fields to be used with custom derive | diff --git a/der/src/decode.rs b/der/src/decode.rs
index 0efcae69..fe53341b 100644
--- a/der/src/decode.rs
+++ b/der/src/decode.rs
@@ -1,6 +1,7 @@
//! Trait definition for [`Decode`].
use crate::{FixedTag, Header, Reader, Result, SliceReader};
+use core::marker::PhantomData;
#[cfg(feature = "pem")]
use crate::{... | 3 | 32 | 0 |
8c62e09945a5ee8bd9ad78cbc8b1f1a4b7f49ce1 | Dmitry Baryshkov | 2023-04-18T14:12:29 | RsaPssParams and RsaOaepParams fixes (#1010)
- use NULL parameters for SHA AlgorithmIdentifiers:
Obviously Mozilla policy insists on having NULL parameters for MD/SHA
algorithm identifiers. Change RsaPssParams/RsaOaepParams defaults to
use NULL instead of empty parameters.
- provide functions to construct Rs... | diff --git a/pkcs1/src/params.rs b/pkcs1/src/params.rs
index 119276e5..74a1ee48 100644
--- a/pkcs1/src/params.rs
+++ b/pkcs1/src/params.rs
@@ -1,10 +1,11 @@
//! PKCS#1 RSA parameters.
use crate::{Error, Result};
-use der::asn1::{AnyRef, ObjectIdentifier};
use der::{
- asn1::ContextSpecificRef, Decode, DecodeVal... | 2 | 135 | 23 |
8c29e1298aac72f56bdabeacf2be9e7b2da9d20e | Dmitry Baryshkov | 2023-04-18T00:54:56 | x509-cert: builder updates (#1001)
- Per RFC5280, DigitalSignature 'is asserted when the subject public key
is used for verifying digital signatures, other than signatures on
certificates (bit 5) and CRLs (bit 6)'.
Using CA keys to sign random data would definitely be a bad practice and
should be avoided. ... | diff --git a/x509-cert/Cargo.toml b/x509-cert/Cargo.toml
index 8d74686d..f216f621 100644
--- a/x509-cert/Cargo.toml
+++ b/x509-cert/Cargo.toml
@@ -22,7 +22,7 @@ spki = { version = "0.7.1", features = ["alloc"] }
# optional dependencies
arbitrary = { version = "1.3", features = ["derive"], optional = true }
sha1 = { ... | 4 | 55 | 73 |
498e20e631a59f19903b7131c8d1ae7b449ee30c | Tony Arcieri | 2023-04-17T20:57:03 | Cargo.lock: bump dependencies (#1006) | diff --git a/Cargo.lock b/Cargo.lock
index 91452c6d..25593c4d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -58,12 +58,6 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
name = "base16ct"
version = "0.2.0"
-[[package]]
-name = "base16ct"
-version = "0.2.0"
-source = "registry+https://g... | 1 | 61 | 139 |
35b613026d00c416190df46c6c85f88cb9640aaa | Bernd Krietenstein | 2023-04-10T21:42:29 | pkcs7: make types for creating messages public (#991)
Co-authored-by: Bernd Krietenstein <bernd.krietenstein@gmx.de>
Co-authored-by: Tony Arcieri <bascule@gmail.com> | diff --git a/pkcs7/Cargo.toml b/pkcs7/Cargo.toml
index 57e80f87..0f620df8 100644
--- a/pkcs7/Cargo.toml
+++ b/pkcs7/Cargo.toml
@@ -20,7 +20,9 @@ spki = { version = "0.7" }
x509-cert = { version = "0.2", default-features = false }
[dev-dependencies]
+der = { version = "0.7", features = ["oid", "pem"] }
hex-literal ... | 6 | 89 | 25 |
8518bd3535cb206bba74ff1f6b571599bc4082a9 | Tony Arcieri | 2023-04-10T20:39:23 | Bump `hex-literal` to v0.4.1 (#999) | diff --git a/Cargo.lock b/Cargo.lock
index a4c264bd..d653bc18 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -654,9 +654,9 @@ checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286"
[[package]]
name = "hex-literal"
-version = "0.3.4"
+version = "0.4.1"
source = "registry+https://github.com/rust-... | 14 | 15 | 15 |
eb1b8cec1b9647f34fae514b1c1fcb36d9fa6e79 | Arthur Gautier | 2023-04-10T19:11:07 | Handle cyclic dependencies (#997)
When cyclic dependencies are used for either doctests or integrations
tests (`x509-cert` depends on `rsa` which depends back to `der` in this
workspace), the compiler will complain about lack of trait
implementation because two crates will be pulled. One from this checkout
as well... | diff --git a/Cargo.toml b/Cargo.toml
index b0d96656..8328d10f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -28,3 +28,31 @@ members = [
[profile.dev]
opt-level = 2
+
+[patch.crates-io]
+# A global patch crates-io block is used to avoid cyclic dependencies errors
+# If we use other crates from the RustCrypto ecosystem... | 16 | 68 | 40 |
ba71f7a9acbaf6ceaa4b0eabd5bcacb193d383c5 | Tony Arcieri | 2023-04-10T03:29:14 | sec1: impl `ModulusSize` for `U24` (#995)
Needed for `p192` | diff --git a/sec1/src/point.rs b/sec1/src/point.rs
index 2db4940a..fb0e0456 100644
--- a/sec1/src/point.rs
+++ b/sec1/src/point.rs
@@ -14,7 +14,7 @@ use core::{
str,
};
use generic_array::{
- typenum::{U1, U28, U32, U48, U66},
+ typenum::{U1, U24, U28, U32, U48, U66},
ArrayLength, GenericArray,
};
... | 1 | 2 | 2 |
776c75727809c44eefdd3c54fc71ec2aef386867 | stormshield-guillaumed | 2023-04-06T14:29:08 | x509-cert: fix `KeyUsage` bit tests (#993) | diff --git a/x509-cert/src/ext/pkix/keyusage.rs b/x509-cert/src/ext/pkix/keyusage.rs
index 5ac4de64..bb37e502 100644
--- a/x509-cert/src/ext/pkix/keyusage.rs
+++ b/x509-cert/src/ext/pkix/keyusage.rs
@@ -56,43 +56,43 @@ impl_newtype!(KeyUsage, FlagSet<KeyUsages>);
impl KeyUsage {
/// The subject public key is used... | 1 | 38 | 9 |
e90716558a7980cb27e71db8e1a428ec3c857e1e | Franziskus Kiefer | 2023-04-06T12:41:34 | tls_codec: 0.3.0-pre.2 and more (#990)
* tls_codec: 0.3.0-pre.2
* fixes some warnings
* adds tls_deserialize_exact and tls_deserialize_bytes default implementations
* adds UnknownValue error for deserialising unknown types | diff --git a/Cargo.lock b/Cargo.lock
index 12fa3d0e..e4ff76d9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -136,9 +136,9 @@ dependencies = [
[[package]]
name = "block-padding"
-version = "0.3.2"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a90ec2df9600c28a01c56c4... | 6 | 205 | 61 |
68a83c615edc07df34157b4d4c2f8ef2d9e7b41b | Arthur Gautier | 2023-04-06T03:57:06 | der: export `asn1::UtcTime::MAX_YEAR` (#989) | diff --git a/der/src/asn1/utc_time.rs b/der/src/asn1/utc_time.rs
index 002a1657..0c10e3af 100644
--- a/der/src/asn1/utc_time.rs
+++ b/der/src/asn1/utc_time.rs
@@ -11,9 +11,6 @@ use core::time::Duration;
#[cfg(feature = "std")]
use std::time::SystemTime;
-/// Maximum year that can be represented as a `UTCTime`.
-pub... | 1 | 5 | 5 |
7827172dd6d9f4fb82b53fdb234dc339814c7829 | Tony Arcieri | 2023-04-05T21:04:02 | x509-cert: use `ErrorKind::Value` for overlength serial (#988)
This at least surfaces that the error has to do with an integer field,
which would've been helpful with tracing it down to SerialNumber.
`Overlength` has a bit of a specific meaning in the context of the
`ErrorKind`, namely it's used for framing error... | diff --git a/x509-cert/src/serial_number.rs b/x509-cert/src/serial_number.rs
index ae9242b2..814c0962 100644
--- a/x509-cert/src/serial_number.rs
+++ b/x509-cert/src/serial_number.rs
@@ -80,7 +80,7 @@ impl<'a> DecodeValue<'a> for SerialNumber {
// since some X.509 implementations interpret the limit of 20 byte... | 1 | 1 | 1 |
91e9607373d0d16f0e624d1b920e2b3686967de0 | Tony Arcieri | 2023-04-05T03:22:28 | spki: add `AlgorithmIdentifierWithOid` (#986)
Type alias for `AlgorithmIdentifier<ObjectIdentifier>` | diff --git a/spki/src/algorithm.rs b/spki/src/algorithm.rs
index b0e08b5b..5f4b5e8c 100644
--- a/spki/src/algorithm.rs
+++ b/spki/src/algorithm.rs
@@ -88,6 +88,9 @@ where
/// `AlgorithmIdentifier` reference which has `AnyRef` parameters.
pub type AlgorithmIdentifierRef<'a> = AlgorithmIdentifier<AnyRef<'a>>;
+/// `A... | 2 | 4 | 1 |
672ab4fade876f665bcf6526fae6f12aae38f5f7 | Tony Arcieri | 2023-04-04T21:14:45 | spki: simplify bounds for `*AlgorithmIdentifier` traits (#980)
Makes the associated type bounds `Tagged + EncodeValue` which means the
blanket impls will always work. | diff --git a/spki/src/traits.rs b/spki/src/traits.rs
index 745b0698..1126c7c4 100644
--- a/spki/src/traits.rs
+++ b/spki/src/traits.rs
@@ -1,11 +1,12 @@
//! Traits for encoding/decoding SPKI public keys.
use crate::{AlgorithmIdentifier, Error, Result, SubjectPublicKeyInfoRef};
+use der::{EncodeValue, Tagged};
#[... | 1 | 4 | 5 |
d79c577a239d65ba45408c6f44b1a9fb3df0f0da | Dmitry Baryshkov | 2023-04-04T03:06:19 | spki: use Result for Dyn*AlgorithmIdentifier traits (#974)
There is a possibility that creating the AlgorithmIdentifier results in
the Error. Change corresponding methods to return
Result<AlgorithmIdentifier>.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | diff --git a/spki/src/traits.rs b/spki/src/traits.rs
index a4c51ed6..745b0698 100644
--- a/spki/src/traits.rs
+++ b/spki/src/traits.rs
@@ -5,7 +5,7 @@ use crate::{AlgorithmIdentifier, Error, Result, SubjectPublicKeyInfoRef};
#[cfg(feature = "alloc")]
use {
crate::AlgorithmIdentifierOwned,
- der::{Any, Documen... | 1 | 21 | 13 |
94cc74155d9df7c24de8ceb8b91cdd7a576da40a | Tony Arcieri | 2023-04-04T01:59:01 | der: add `Any::encode_from` (#976)
Support for encoding an `Any` value from any type which impls `Tagged` +
`EncodeValue`. | diff --git a/der/src/asn1/any.rs b/der/src/asn1/any.rs
index ad4bc372..017a9090 100644
--- a/der/src/asn1/any.rs
+++ b/der/src/asn1/any.rs
@@ -8,6 +8,9 @@ use crate::{
};
use core::cmp::Ordering;
+#[cfg(feature = "alloc")]
+use crate::SliceWriter;
+
/// ASN.1 `ANY`: represents any explicitly tagged ASN.1 value.
/... | 1 | 16 | 0 |
260faa90431c12837e53426e91214102d4810fea | Arthur Gautier | 2023-04-03T12:45:07 | der: add a `Any::null` helper (#969) | diff --git a/der/src/asn1/any.rs b/der/src/asn1/any.rs
index d2d3c880..ad4bc372 100644
--- a/der/src/asn1/any.rs
+++ b/der/src/asn1/any.rs
@@ -201,6 +201,14 @@ mod allocating {
{
AnyRef::from(self).sequence(f)
}
+
+ /// [`Any`] representation of the ASN.1 `NULL` type.
+ pub ... | 1 | 8 | 0 |
08906a716e16af75e3e7e886972aa09d9b9cf88c | Dmitry Baryshkov | 2023-04-02T23:08:50 | spki: add (Dyn)SignatureAlgorithmIdentifier traits (#967)
Add SignatureAlgorithmIdentifier and DynSignatureAlgorithmIdentifier
which are useful for specifying the Signature AlgorithmIdentifier for
Signing/Verifying keys.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | diff --git a/spki/src/lib.rs b/spki/src/lib.rs
index 3eef1c4f..2ac8d9d1 100644
--- a/spki/src/lib.rs
+++ b/spki/src/lib.rs
@@ -50,7 +50,7 @@ pub use crate::{
algorithm::{AlgorithmIdentifier, AlgorithmIdentifierRef},
error::{Error, Result},
spki::{SubjectPublicKeyInfo, SubjectPublicKeyInfoRef},
- trait... | 2 | 40 | 2 |
fd069a6ff7a9f5abfd3d797b51f50ca0a5307e44 | Tony Arcieri | 2023-04-02T20:34:14 | spki: add `AssociatedAlgorithmIdentifier::Params` type (#966)
Adds an associated `Params` type which is passed as
`AlgorithmIdentifier<Params>`, which makes it *much* easier to define
`AlgorithmIdentifier` constants.
Without this, `const fn` type conversions are required to
`AnyRef<'static>`. This isn't currentl... | diff --git a/spki/src/traits.rs b/spki/src/traits.rs
index 6838a07d..73e8c1b8 100644
--- a/spki/src/traits.rs
+++ b/spki/src/traits.rs
@@ -1,11 +1,11 @@
//! Traits for encoding/decoding SPKI public keys.
-use crate::{AlgorithmIdentifierRef, Error, Result, SubjectPublicKeyInfoRef};
+use crate::{AlgorithmIdentifier, E... | 1 | 15 | 5 |
59afffbffd95d472871ce8ea3a0fc24b08115040 | Tony Arcieri | 2023-04-02T18:43:05 | der: add `From<ObjectIdentifier>` impl for `Any` (#965)
This is useful for writing a blanket impl for converting generic
`AlgorithmIdentifier<Params>` to `AlgorithmIdentifierOwned`,
specifically for the `AlgorithmIdentifier<ObjectIdentifier>` case, but
other types can opt into this same protocol. | diff --git a/der/src/asn1/oid.rs b/der/src/asn1/oid.rs
index 0ff87f4b..3daa452b 100644
--- a/der/src/asn1/oid.rs
+++ b/der/src/asn1/oid.rs
@@ -6,6 +6,9 @@ use crate::{
};
use const_oid::ObjectIdentifier;
+#[cfg(feature = "alloc")]
+use super::Any;
+
impl<'a> DecodeValue<'a> for ObjectIdentifier {
fn decode_va... | 1 | 10 | 0 |
78910e2e73204e1d414baa33bd92214e96baddb7 | Tony Arcieri | 2023-04-01T23:54:58 | const-oid: add `ObjectIdentifier::starts_with` (#964)
Adds a method for determining if one OID starts with another. | diff --git a/const-oid/src/lib.rs b/const-oid/src/lib.rs
index 5ad5dd66..1a86e216 100644
--- a/const-oid/src/lib.rs
+++ b/const-oid/src/lib.rs
@@ -181,6 +181,26 @@ impl ObjectIdentifier {
Err(err) => Err(err),
}
}
+
+ /// Does this OID start with the other OID?
+ pub fn starts_with(&sel... | 2 | 42 | 8 |
07d49496a525a1f25d1c05bc0e2013e5a58ddd03 | Tony Arcieri | 2023-04-01T19:23:43 | spki: re-export `AssociatedAlgorithmIdentifier` (#963) | diff --git a/spki/src/lib.rs b/spki/src/lib.rs
index eaa93a6b..3eef1c4f 100644
--- a/spki/src/lib.rs
+++ b/spki/src/lib.rs
@@ -50,7 +50,7 @@ pub use crate::{
algorithm::{AlgorithmIdentifier, AlgorithmIdentifierRef},
error::{Error, Result},
spki::{SubjectPublicKeyInfo, SubjectPublicKeyInfoRef},
- trait... | 1 | 1 | 1 |
4ca2a870dc4e26103094f9ec1a742ba204f1d279 | Tony Arcieri | 2023-04-01T16:26:30 | spki: define trait to get associated `AlgorithmIdentifier` (#962)
It is useful to get AlgorithmIdentifiers for defined keys. Add a trait
implementing that functionality.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Co-authored-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | diff --git a/spki/src/lib.rs b/spki/src/lib.rs
index 94bb7e78..eaa93a6b 100644
--- a/spki/src/lib.rs
+++ b/spki/src/lib.rs
@@ -57,8 +57,9 @@ pub use der::{self, asn1::ObjectIdentifier};
#[cfg(feature = "alloc")]
pub use {
crate::{
- algorithm::AlgorithmIdentifierOwned, spki::SubjectPublicKeyInfoOwned,
- ... | 2 | 32 | 4 |
b0919f6ea45c0e66fb43106f6ed6fbc22a638cbc | Dmitry Baryshkov | 2023-03-27T00:56:00 | pkcs1: export RSAPSS_SALT_LEN_DEFAULT (#953)
Export default RSA PSS salt length.
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | diff --git a/pkcs1/src/params.rs b/pkcs1/src/params.rs
index f8aa7389..119276e5 100644
--- a/pkcs1/src/params.rs
+++ b/pkcs1/src/params.rs
@@ -17,8 +17,6 @@ const SHA_1_AI: AlgorithmIdentifierRef<'_> = AlgorithmIdentifierRef {
parameters: None,
};
-const SALT_LEN_DEFAULT: u8 = 20;
-
/// `TrailerField` as defin... | 1 | 6 | 5 |
dc5536d18ccf0b3ca3a7a20c68480d397eb20c9e | Tony Arcieri | 2023-03-26T00:24:05 | x509-cert: deprecate `encode_from_string` functions (#951)
Defined on the following types:
- `RdnSequence`
- `RelativeDistingiushedName`
- `AttributeTypeAndValue`
The name is confusing and it can now be expressed as the combination of
`FromStr` and `Encode::to_der`. | diff --git a/x509-cert/src/attr.rs b/x509-cert/src/attr.rs
index 9ea7726e..732792fa 100644
--- a/x509-cert/src/attr.rs
+++ b/x509-cert/src/attr.rs
@@ -205,11 +205,20 @@ impl AttributeTypeAndValue {
/// This function follows the rules in [RFC 4514].
///
/// [RFC 4514]: https://datatracker.ietf.org/doc/htm... | 3 | 30 | 10 |
b16c4714d58b3446398716a72ce7689c0353d877 | Tony Arcieri | 2023-03-25T20:54:10 | x509-cert: add `FromStr` impls for name-related functionality (#949)
Adds `FromStr` impls for the following types:
- `RdnSequence`
- `RelativeDistingiushedName`
- `AttributeTypeAndValue`
All of these types have `encode_from_string` methods which would parse
the string and serialize the resulting type as a DER... | diff --git a/x509-cert/src/attr.rs b/x509-cert/src/attr.rs
index a77b43d9..9ea7726e 100644
--- a/x509-cert/src/attr.rs
+++ b/x509-cert/src/attr.rs
@@ -1,15 +1,21 @@
//! Attribute-related definitions as defined in X.501 (and updated by RFC 5280).
use alloc::vec::Vec;
-use const_oid::db::rfc4519::{COUNTRY_NAME, DOMAI... | 2 | 58 | 38 |
4d7eb1be7728d015ebbb4852c41023562a554624 | Matthew Maurer | 2023-03-24T01:58:26 | Bump `syn` to v2 (#946) | diff --git a/Cargo.lock b/Cargo.lock
index 5fc2c594..96aa3dcd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -412,7 +412,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
- "syn 1.0.109",
+ "syn 2.0.6",
]
[[package]]
@@ -1248,7 +1248,7 @@ checksum = "e801c1712f48475582b7696ac71e0ca34ebb30e0933842... | 11 | 87 | 97 |
e6c4566a3a5e21583e9fa547580746845554a902 | Carson Hoffman | 2023-03-23T12:33:38 | Fix len_len for TlsByteVecU{16,32} (#684) | diff --git a/tls_codec/src/tls_vec.rs b/tls_codec/src/tls_vec.rs
index b81682f8..c199ff17 100644
--- a/tls_codec/src/tls_vec.rs
+++ b/tls_codec/src/tls_vec.rs
@@ -548,7 +548,7 @@ macro_rules! impl_tls_vec {
}
impl $name {
- impl_vec_members!(u8, 1);
+ impl_vec_members!(u8, $len... | 1 | 1 | 1 |
90e3a27dad43bd846b6a62f59e1aaf74df96feb8 | Dirk Stolle | 2023-03-23T06:55:54 | chore: fix some typos (#944) | diff --git a/tls_codec/derive/src/lib.rs b/tls_codec/derive/src/lib.rs
index 97e8cb9b..841b48d4 100644
--- a/tls_codec/derive/src/lib.rs
+++ b/tls_codec/derive/src/lib.rs
@@ -92,7 +92,7 @@
//! enum TokenImplicit {
//! #[tls_codec(discriminant = 5)]
//! Int(u32),
-//! // This will have the discriminant 6 ... | 2 | 2 | 2 |
9fefc1338602fa199f292d6c73a6a5b7bc8d4b06 | Tony Arcieri | 2023-03-21T13:09:44 | Cargo.lock: bump deps (#941) | diff --git a/Cargo.lock b/Cargo.lock
index 5993a012..5fc2c594 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -30,9 +30,9 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
[[package]]
name = "arbitrary"
-version = "1.2.3"
+version = "1.3.0"
source = "registry+https://github.com/rust-lang... | 1 | 115 | 98 |
bec01d0d906deaa99bf5eb3fb60e1cd304b4e6c0 | Arthur Gautier | 2023-03-12T15:31:07 | pkcs7: avoid code duplication (#926) | diff --git a/pkcs7/src/content_info.rs b/pkcs7/src/content_info.rs
index 4d9e219a..a36b08ee 100644
--- a/pkcs7/src/content_info.rs
+++ b/pkcs7/src/content_info.rs
@@ -5,7 +5,8 @@ use crate::{
use der::{
asn1::{ContextSpecific, OctetStringRef},
- DecodeValue, Encode, EncodeValue, Header, Length, Reader, Seque... | 1 | 26 | 46 |
b0b431113cba024bf0ac79836ac5c3d8f98b6897 | Tony Arcieri | 2023-03-12T01:01:50 | pkcs7 v0.4.0-pre.1 (#932) | diff --git a/Cargo.lock b/Cargo.lock
index 8e6f2536..d77e6e68 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -874,7 +874,7 @@ dependencies = [
[[package]]
name = "pkcs7"
-version = "0.4.0-pre.0"
+version = "0.4.0-pre.1"
dependencies = [
"der",
"hex-literal",
diff --git a/pkcs7/Cargo.toml b/pkcs7/Cargo.toml
index ... | 2 | 2 | 2 |
dba7f2c437b8c1ca462f1baa6b7e96b2305f279f | Tony Arcieri | 2023-03-11T23:12:19 | cmpv2 v0.2.0-pre.0 (#930) | diff --git a/cmpv2/Cargo.toml b/cmpv2/Cargo.toml
index 4a41794d..a204383c 100644
--- a/cmpv2/Cargo.toml
+++ b/cmpv2/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cmpv2"
-version = "0.0.0"
+version = "0.2.0-pre.0"
description = """
Pure Rust implementation of the Certificate Management Protocol (CMP) as
described in... | 1 | 1 | 1 |
9a2852794ea3087300c95c24d93941b486ffa3a6 | Tony Arcieri | 2023-03-11T22:31:37 | crmf v0.2.0-pre.0 (#929) | diff --git a/Cargo.lock b/Cargo.lock
index 51ecc787..f64463ce 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -328,7 +328,7 @@ dependencies = [
[[package]]
name = "crmf"
-version = "0.0.0"
+version = "0.2.0-pre.0"
dependencies = [
"cms",
"const-oid 0.9.2",
diff --git a/cmpv2/Cargo.toml b/cmpv2/Cargo.toml
index ec2... | 3 | 3 | 3 |
5729f74dd1bae43bb2cf9a10ba3a42a74f0a7760 | Tony Arcieri | 2023-03-11T21:32:17 | cms v0.2.0-pre.0 (#928) | diff --git a/Cargo.lock b/Cargo.lock
index e9bba2c4..51ecc787 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -254,7 +254,7 @@ dependencies = [
[[package]]
name = "cms"
-version = "0.0.0"
+version = "0.2.0-pre"
dependencies = [
"const-oid 0.9.2",
"der",
diff --git a/cms/Cargo.toml b/cms/Cargo.toml
index a6f19232..... | 3 | 3 | 3 |
123dbacd5f6188d9215e34f6b3edd20ea777ca6a | Tony Arcieri | 2023-03-11T20:41:12 | cmpv2+cms+crmf: version requirement fixups (#927)
Be explicit about prerelease versions with `=` requirements | diff --git a/cmpv2/Cargo.toml b/cmpv2/Cargo.toml
index b640c6b4..ec23df40 100644
--- a/cmpv2/Cargo.toml
+++ b/cmpv2/Cargo.toml
@@ -15,10 +15,10 @@ edition = "2021"
rust-version = "1.65"
[dependencies]
-crmf = {version = "0.0", path = "../crmf" }
-der = { version = "0.7.0-pre", features = ["alloc", "derive", "flagse... | 3 | 8 | 8 |
086ecd7d27aa3f6c5c97dc2a33adc7159008086b | Arthur Gautier | 2023-03-11T04:15:37 | der: expose NestedReader (#925)
`NestedReader` is exposed through `Reader::read_nested` but it's not
documented. | diff --git a/der/src/lib.rs b/der/src/lib.rs
index ba5eb35b..dcd5097d 100644
--- a/der/src/lib.rs
+++ b/der/src/lib.rs
@@ -362,7 +362,7 @@ pub use crate::{
header::Header,
length::{IndefiniteLength, Length},
ord::{DerOrd, ValueOrd},
- reader::{slice::SliceReader, Reader},
+ reader::{nested::NestedR... | 2 | 2 | 2 |
6f650c1e4f91223189374643bb7099ce591fdb29 | Arthur Gautier | 2023-03-11T01:30:10 | pkcs7: content is not optional anymore (#924)
It appears between RFC 2315 and RFC 5652, the definition of the
`content` field changed and is not optional anymore.
- https://datatracker.ietf.org/doc/html/rfc2315#section-7
- https://datatracker.ietf.org/doc/html/rfc5652#section-3 | diff --git a/pkcs7/src/content_info.rs b/pkcs7/src/content_info.rs
index 6355e0da..4d9e219a 100644
--- a/pkcs7/src/content_info.rs
+++ b/pkcs7/src/content_info.rs
@@ -16,24 +16,26 @@ const CONTENT_TAG: TagNumber = TagNumber::new(0);
/// ContentInfo ::= SEQUENCE {
/// contentType ContentType,
/// content
-/// ... | 2 | 105 | 146 |
a1c7c4497066fc7577045fd6b9031a4c421afe75 | Mathieu Amiot | 2023-03-10T06:45:45 | tls_codec: Improve error message in derived tls_deserialize (#922)
Added the name of the struct/enum where the error has occured to help
tracking implementation errors | diff --git a/tls_codec/derive/src/lib.rs b/tls_codec/derive/src/lib.rs
index 7232a233..089dcb92 100644
--- a/tls_codec/derive/src/lib.rs
+++ b/tls_codec/derive/src/lib.rs
@@ -733,7 +733,7 @@ fn impl_deserialize(parsed_ast: TlsStruct) -> TokenStream2 {
match discriminant {
... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.