From 7c439625ce0bd5301c50ed8b96ddb14f86dbebde Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Fri, 3 Apr 2026 17:20:11 -0600 Subject: [PATCH] spki v0.8.0 --- Cargo.lock | 2 +- cmpv2/Cargo.toml | 2 +- cms/Cargo.toml | 2 +- crmf/Cargo.toml | 2 +- gss-api/Cargo.toml | 2 +- pkcs1/Cargo.toml | 2 +- pkcs12/Cargo.toml | 2 +- pkcs5/Cargo.toml | 2 +- pkcs8/Cargo.toml | 2 +- spki/CHANGELOG.md | 26 +++++++++++++++++++++++++- spki/Cargo.toml | 2 +- spki/LICENSE-MIT | 2 +- x509-cert/Cargo.toml | 2 +- x509-ocsp/Cargo.toml | 2 +- 14 files changed, 38 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 00c79b7e0..79d2b830c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1679,7 +1679,7 @@ dependencies = [ [[package]] name = "spki" -version = "0.8.0-rc.4" +version = "0.8.0" dependencies = [ "arbitrary", "base64ct", diff --git a/cmpv2/Cargo.toml b/cmpv2/Cargo.toml index ffcec85f1..f64fa3a46 100644 --- a/cmpv2/Cargo.toml +++ b/cmpv2/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.85" [dependencies] crmf = "=0.3.0-pre.0" der = { version = "0.8", features = ["alloc", "derive", "flagset", "oid"] } -spki = "0.8.0-rc.4" +spki = "0.8" x509-cert = { version = "0.3.0-rc.4", default-features = false } # optional features diff --git a/cms/Cargo.toml b/cms/Cargo.toml index 81143f226..16b954c22 100644 --- a/cms/Cargo.toml +++ b/cms/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.85" [dependencies] const-oid = { version = "0.10", features = ["db"] } der = { version = "0.8", features = ["ber", "derive", "oid"] } -spki = "0.8.0-rc.4" +spki = "0.8" x509-cert = { version = "0.3.0-rc.4", default-features = false } # optional dependencies diff --git a/crmf/Cargo.toml b/crmf/Cargo.toml index e59da7b81..759b4fd7b 100644 --- a/crmf/Cargo.toml +++ b/crmf/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.85" [dependencies] cms = "=0.3.0-pre.2" der = { version = "0.8", features = ["alloc", "derive"] } -spki = "0.8.0-rc.3" +spki = "0.8" x509-cert = { version = "0.3.0-rc.4", default-features = false } [dev-dependencies] diff --git a/gss-api/Cargo.toml b/gss-api/Cargo.toml index e6c93450f..4b662ce20 100644 --- a/gss-api/Cargo.toml +++ b/gss-api/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.85" [dependencies] der = { version = "0.8", features = ["oid", "alloc"] } -spki = "0.8.0-rc.4" +spki = "0.8" x509-cert = { version = "0.3.0-rc.4", default-features = false } [dev-dependencies] diff --git a/pkcs1/Cargo.toml b/pkcs1/Cargo.toml index 8fd4c26c5..d551fa3e0 100644 --- a/pkcs1/Cargo.toml +++ b/pkcs1/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.85" [dependencies] der = { version = "0.8", features = ["oid"] } -spki = "0.8.0-rc.4" +spki = "0.8" [dev-dependencies] const-oid = { version = "0.10", features = ["db"] } diff --git a/pkcs12/Cargo.toml b/pkcs12/Cargo.toml index 55c54bd2c..d2afabe8e 100644 --- a/pkcs12/Cargo.toml +++ b/pkcs12/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.85" [dependencies] der = { version = "0.8", features = ["alloc", "derive", "oid"], default-features = false } -spki = { version = "0.8.0-rc.4", default-features = false } +spki = { version = "0.8", default-features = false } x509-cert = { version = "0.3.0-rc.4", default-features = false } const-oid = { version = "0.10", features = ["db"], default-features = false } cms = { version = "=0.3.0-pre.2", default-features = false } diff --git a/pkcs5/Cargo.toml b/pkcs5/Cargo.toml index 6b4165891..e8e069fd7 100644 --- a/pkcs5/Cargo.toml +++ b/pkcs5/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.85" [dependencies] der = { version = "0.8", features = ["oid"] } -spki = "0.8.0-rc.4" +spki = "0.8" # optional dependencies cbc = { version = "0.2.0-rc.4", optional = true } diff --git a/pkcs8/Cargo.toml b/pkcs8/Cargo.toml index c470dcf47..12224c477 100644 --- a/pkcs8/Cargo.toml +++ b/pkcs8/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.85" [dependencies] der = { version = "0.8.0-rc.12", features = ["oid"] } -spki = "0.8.0-rc.4" +spki = "0.8" # optional dependencies rand_core = { version = "0.10", optional = true, default-features = false } diff --git a/spki/CHANGELOG.md b/spki/CHANGELOG.md index cf3722dde..e825feee8 100644 --- a/spki/CHANGELOG.md +++ b/spki/CHANGELOG.md @@ -4,6 +4,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.8.0 (2026-04-03) +### Added +- Implement `Hash` for `AlgorithmIdentifier` ([#1414]) +- `der::Writer` adapter for `Digest` ([#1769]) +- Implement `core::error::Error` for `Error` ([#2274]) + +### Changed +- Borrow the public key in `spki::from_key` ([#1290]) +- Upgrade to the 2024 edition; MSRV 1.85 ([#1670]) +- Bump `der` to v0.8 ([#2234]) +- Bump `digest` to v0.11 ([#2237]) +- Bump `sha2` dependency to v0.11 ([#2273]) + +### Fixed +- `OidUnknown` reporting ([#1378]) + +[#1290]: https://github.com/RustCrypto/formats/pull/1290 +[#1378]: https://github.com/RustCrypto/formats/pull/1378 +[#1414]: https://github.com/RustCrypto/formats/pull/1414 +[#1670]: https://github.com/RustCrypto/formats/pull/1670 +[#2234]: https://github.com/RustCrypto/formats/pull/2234 +[#2237]: https://github.com/RustCrypto/formats/pull/2237 +[#2273]: https://github.com/RustCrypto/formats/pull/2273 +[#2274]: https://github.com/RustCrypto/formats/pull/2274 + ## 0.7.3 (2023-11-28) ### Added - public key to `SubjectPublicKeyInfoOwned` helper ([#1269]) @@ -11,7 +36,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#1269]: https://github.com/RustCrypto/formats/pull/1269 ## 0.7.2 (2023-05-04) - ### Added - `AlgorithmIdentifierWithOid` trait ([#986]) - `SignatureBitStringEncoding` trait ([#1047]) diff --git a/spki/Cargo.toml b/spki/Cargo.toml index 48a0e24af..1a9e45d9f 100644 --- a/spki/Cargo.toml +++ b/spki/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "spki" -version = "0.8.0-rc.4" +version = "0.8.0" description = """ X.509 Subject Public Key Info (RFC5280) describing public keys as well as their associated AlgorithmIdentifiers (i.e. OIDs) diff --git a/spki/LICENSE-MIT b/spki/LICENSE-MIT index 8eb4afa2a..11d191686 100644 --- a/spki/LICENSE-MIT +++ b/spki/LICENSE-MIT @@ -1,4 +1,4 @@ -Copyright (c) 2021-2025 The RustCrypto Project Developers +Copyright (c) 2021-2026 The RustCrypto Project Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated diff --git a/x509-cert/Cargo.toml b/x509-cert/Cargo.toml index 68203c00a..fbddba786 100644 --- a/x509-cert/Cargo.toml +++ b/x509-cert/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.85" [dependencies] const-oid = { version = "0.10", features = ["db"] } der = { version = "0.8", features = ["alloc", "derive", "flagset", "oid"] } -spki = { version = "0.8.0-rc.4", features = ["alloc"] } +spki = { version = "0.8", features = ["alloc"] } # optional dependencies arbitrary = { version = "1.4", features = ["derive"], optional = true } diff --git a/x509-ocsp/Cargo.toml b/x509-ocsp/Cargo.toml index d4320f116..725af713c 100644 --- a/x509-ocsp/Cargo.toml +++ b/x509-ocsp/Cargo.toml @@ -18,7 +18,7 @@ rust-version = "1.85" [dependencies] const-oid = { version = "0.10", default-features = false, features = ["db"] } der = { version = "0.8", features = ["alloc", "derive", "oid"] } -spki = { version = "0.8.0-rc.4", features = ["alloc"] } +spki = { version = "0.8", features = ["alloc"] } x509-cert = { version = "0.3.0-rc.4", default-features = false } # Optional