Skip to content

pkcs8: use pbes2::Parameters::recommended#1430

Merged
tarcieri merged 1 commit intomasterfrom
pkcs8/use-pbes2-params-recommended
Jun 6, 2024
Merged

pkcs8: use pbes2::Parameters::recommended#1430
tarcieri merged 1 commit intomasterfrom
pkcs8/use-pbes2-params-recommended

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented Jun 6, 2024

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 RustCrypto/RSA#429

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
@tarcieri tarcieri force-pushed the pkcs8/use-pbes2-params-recommended branch from 313d5c0 to ea22440 Compare June 6, 2024 01:02
@tarcieri tarcieri merged commit 91ae4f9 into master Jun 6, 2024
@tarcieri tarcieri deleted the pkcs8/use-pbes2-params-recommended branch June 6, 2024 01:11
@tarcieri tarcieri mentioned this pull request Apr 27, 2026
tarcieri added a commit that referenced this pull request Apr 27, 2026
## Added
- Custom error types support to the Decode and DecodeValue traits (#1055)
- PrivateKeyInfoRef / PrivateKeyInfoOwned type aliases (#1483)
- Implement core::error::Error trait for Error (#2302)
- Implement DecodePrivateKey/EncodePrivateKey traits for PrivateKeyInfoOwned (#2306)
- KeyError enum (#2305)
- ctutils feature (#2308)
- getrandom feature (#2311)

## Changed
- Eagerly decode PEM labels for better error messages (#1163)
- Use pbes2::Parameters::generate_recommended (#1430, #2296)
- Make PrivateKeyInfo generic around its backing storage (#1483)
- Bump rand_core to 0.9 (#1658)
- Use 2024 edition; bump MSRV to 1.85 (#1670)
- Bump rand_core to v0.10 (#2198)
- Error::KeyMalformed now wraps an inner KeyError for providing more detail (#2305)
- Use TryCryptoRng instead of CryptoRng (#2309)

## Removed
- subtle feature (#2308)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Encrypted PKCS#8 PEM private key incompatbile with OpenSSL v3

1 participant