Skip to content

Gate PKCS#1/PKCS#8 support on encoding feature#537

Merged
tarcieri merged 1 commit intomasterfrom
encoding-feature
Jul 9, 2025
Merged

Gate PKCS#1/PKCS#8 support on encoding feature#537
tarcieri merged 1 commit intomasterfrom
encoding-feature

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented Jul 9, 2025

Support for these formats has a number of dependencies required, and isn't always necessary, e.g. the ssh-key crate implements an entirely different encoding format for RSA keys.

Making support an optional feature avoids incurring these dependencies when that's the case.

This commit also removes the pem feature and makes PEM support on-by-default whenever encoding is enabled. This only adds the pem-rfc7468 dependency. Most users will probably want PEM support if they have the encoding feature enabled.

@tarcieri tarcieri requested review from baloo and dignifiedquire July 9, 2025 18:50
@tarcieri tarcieri force-pushed the encoding-feature branch from 6958327 to bf6e33c Compare July 9, 2025 18:59
Support for these formats has a number of dependencies required, and
isn't always necessary, e.g. the `ssh-key` crate implements an entirely
different encoding format for RSA keys.

Making support an optional feature avoids incurring these dependencies
when that's the case.

This commit also removes the `pem` feature and makes PEM support
on-by-default whenever `encoding` is enabled. This only adds the
`pem-rfc7468` dependency. Most users will probably want PEM support if
they have the `encoding` feature enabled.
@tarcieri tarcieri force-pushed the encoding-feature branch from bf6e33c to 009a47e Compare July 9, 2025 19:00
Copy link
Member

@baloo baloo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense.

@tarcieri
Copy link
Member Author

tarcieri commented Jul 9, 2025

Going to merge this so I can work on RustCrypto/formats#1927

@tarcieri tarcieri merged commit d7315e4 into master Jul 9, 2025
11 checks passed
@tarcieri tarcieri deleted the encoding-feature branch July 9, 2025 22:46
pinkforest pushed a commit to pinkforest/RSA that referenced this pull request Aug 22, 2025
Support for these formats has a number of dependencies required, and
isn't always necessary, e.g. the `ssh-key` crate implements an entirely
different encoding format for RSA keys.

Making support an optional feature avoids incurring these dependencies
when that's the case.

This commit also removes the `pem` feature and makes PEM support
on-by-default whenever `encoding` is enabled. This only adds the
`pem-rfc7468` dependency. Most users will probably want PEM support if
they have the `encoding` feature enabled.
takumi-earth pushed a commit to earthlings-dev/RSA that referenced this pull request Jan 27, 2026
Support for these formats has a number of dependencies required, and
isn't always necessary, e.g. the `ssh-key` crate implements an entirely
different encoding format for RSA keys.

Making support an optional feature avoids incurring these dependencies
when that's the case.

This commit also removes the `pem` feature and makes PEM support
on-by-default whenever `encoding` is enabled. This only adds the
`pem-rfc7468` dependency. Most users will probably want PEM support if
they have the `encoding` feature enabled.
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.

2 participants