Repository navigation
Update pkcs8 to 0.11 and bump the version to 0.4.2 - #7
Merged
Merged
Conversation
The existing encrypted test key uses scrypt. Add one encrypted with PBES2, PBKDF2 (HMAC-SHA256) and AES-256-CBC, OpenSSL's default for PKCS #8, so both key derivation functions are covered.
pkcs8 0.11 moves the crate to the digest 0.11 stack, replacing block-buffer 0.10, which OSV-Scanner flags for GHSA-qwgh-2vcv-g2f7, with 0.12.1. Encrypted keys are now parsed with EncryptedPrivateKeyInfoRef, the borrowed form of the now generic EncryptedPrivateKeyInfo. pkcs8 types aren't part of the public API, so this is a patch release. The newest versions of some new dependencies (aes 0.9.3, sha2 0.11.1, ctutils 0.4.6) need Rust 1.87 to 1.89, but earlier versions support 1.85, so rust-version stays 1.85. The msrv job has no lockfile, so it now resolves with the MSRV-aware fallback.
jadamcrain
force-pushed
the
pkcs8-0.11
branch
from
October 27, 2026 16:38
31fbbc2 to
27a75ce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates
pkcs8to 0.11 and bumps the crate version to 0.4.2. Publishing 0.4.2 is a separate step: pushing the0.4.2tag after this merges runs the release workflow.Why:
pkcs80.10 pulls indigest0.10 andblock-buffer0.10.4, which OSV-Scanner flags for GHSA-qwgh-2vcv-g2f7 (fixed in 0.12.1). That fails the requiredosv-scannercheck in rodbus and dnp3, which currently ignore it (stepfunc/rodbus#354, stepfunc/dnp3#850). Withpkcs80.11 the dependency tree has onlydigest0.11 andblock-buffer0.12.1. Earlier versions aren't affected: the advisory's inline cursor doesn't exist in 0.10, and the crate uses it only to decrypt a password-protected private key file.Changes
pkcs80.11.EncryptedPrivateKeyInfois now generic, so encrypted keys are parsed with its borrowed form,EncryptedPrivateKeyInfoRef.pkcs8types aren't part of the public API, so this is a patch release.pkcs80.10 and 0.11.aes0.9.3: 1.89,sha20.11.1: 1.88,ctutils0.4.6: 1.87), but earlier versions support 1.85 (aes0.9.2,sha20.11.0,ctutils0.4.2). Themsrvjob has no lockfile, so it now resolves withCARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback. Raising the MSRV to 1.89 would have broken dnp3, whoserust-versionis 1.88.Checked locally
sfio-rustls-configand thetestscrate withcrypto-ringandcrypto-aws-lccrypto-ring[patch.crates-io]: onlyblock-buffer0.12.1 remains, its 39 TLS tests pass, thetls-aws-lcbuild works, and it checks on its MSRV, 1.94