NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #304 most downloaded on crates.io
Pure Rust implementation of Public-Key Cryptography Standards (PKCS) #8: Private-Key Information Syntax Specification (RFC 5208), with additional support for PKCS#8v2 asymmetric key packages (RFC 5958)
Last release 5 months ago
27 Apr 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 26 of 26 stable releases
8 versions withdrawn
withdrawn after publishing
6 years old
51 releases · first in 2020
Custom error types support to the Decode and DecodeValue traits
One column per quarter.
Decode and DecodeValue traits (#1055)PrivateKeyInfoRef / PrivateKeyInfoOwned type aliases (#1483)core::error::Error trait for Error (#2302)Decode/EncodePrivateKey trait for PrivateKeyInfoOwned (#2306)KeyError enum (#2305)ctutils feature (#2308)getrandom feature (#2311)pbes2::Parameters::generate_recommended (#1430, #2296)PrivateKeyInfo generic around its backing storage (#1483)rand_core to 0.9 (#1658)rand_core to v0.10 (#2198)Error::KeyMalformed now wraps an inner KeyError for providing more detail (#2305)TryCryptoRng instead of CryptoRng (#2309)subtle feature (#2308)This is a true "release candidate" in that we're just checking for any final showstoppers before cutting a final release
This is a true "release candidate" in that we're just checking for any
final showstoppers before cutting a final release
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
[#981]: https://github.com/RustCrypto/formats/pull/981
spki to v0.7.1 (#981)[#913]: https://github.com/RustCrypto/formats/pull/913
sha1-insecure feature (#913)Use blanket impls for Decode* traits ([#785])
Error conversion support to pkcs8::Error ([#335])
Nothing published for this version
Nothing published for this version
Nothing published for this version
Replace usages of expect with fallible methods ([#108])
spki crate (#210)expect with fallible methods (#108)From*Key/To*Key traits on Document types (#110)From/ToPrivateKey => DecodePrivateKey/EncodePrivateKey (#121)der::Document to impl *PrivateKeyDocument (#140)Error::Crypto => Error::EncryptedPrivateKey (#213, #214)der dependency to v0.5 (#222)spki dependency to v0.5 (#223)pkcs5 dependency to v0.4 (#224)from_pkcs8_private_key_info with TryFrom (#230)[#2]: https://github.com/RustCrypto/formats/pull/2
3des and des-insecure featuressha1 featureformats repo (#2)Support for customizing PEM LineEnding
LineEndingpem-rfc7468 dependency to v0.2### Added - PKCS#1 support
### Changed - Use pem-rfc7468 crate
pem-rfc7468 crateError::ParametersMalformed variant
Error::ParametersMalformed variant### Added - Error::KeyMalformed variant
Error::KeyMalformed variantMerge OneAsymmetricKey into PrivateKeyInfo
OneAsymmetricKey into PrivateKeyInfoResult(s) when encodingder to v0.4spki to v0.4pkcs5 to v0.3Support for RFC5958's OneAsymmetricKey
OneAsymmetricKeyder to v0.3.5### Changed - Bump der dependency to v0.3 - Bump spki dependency to v0.3 - Bump pkcs5 dependency to v0.2
der dependency to v0.3spki dependency to v0.3pkcs5 dependency to v0.2Bump base64ct dependency to v1.0
base64ct dependency to v1.0Encryption helper methods for FromPrivateKey/ToPrivateKey
FromPrivateKey/ToPrivateKeySupport for decrypting/encrypting EncryptedPrivateKeyInfo
EncryptedPrivateKeyInfoEncryptedPrivateKeyInfoError::Crypto variant### Changed - Use pkcs5 crate
pkcs5 crate### Added - pkcs5 feature ### Changed - Bump spki dependency to v0.2.0
pkcs5 featurespki dependency to v0.2.0Initial EncryptedPrivateKeyInfo support
EncryptedPrivateKeyInfo supportspki crateBump basec4ct dependency to v0.2
basec4ct dependency to v0.2Bump der crate dependency to v0.2
der crate dependency to v0.2base64ct v0.1 for PEM encodingNothing published for this version
Use der crate for decoding/encoding ASN.1 DER
der crate for decoding/encoding ASN.1 DERAlgorithmIdentifier::parameters_oid method
AlgorithmIdentifier::parameters_oid methodBump const-oid dependency to v0.4
const-oid dependency to v0.4### Added - AlgorithmParameters enum
AlgorithmParameters enumDecoding/encoding support for Ed25519 keys
### Added - rustdoc improvements
File writing methods for public/private keys
*Document types from filesToPrivateKey/ToPublicKey traitsError enumload_*_file methods to read_*_fileHelper methods to load keys from the local filesystem
- Initial release
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →