Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pem-rfc7468: buffered Base64 decoder #406

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Feb 9, 2022

Modifies pem_rfc7468::Decoder to be a wrapper around the buffered base64ct::Decoder type.

This allows incrementally decoding PEM, as opposed to a one-shot approach, however support for one-shot decoding is still preserved as a set of static functions which previously served as the crate's primary API, meaning this should not be a breaking change for most current applications.

Additionally impls std::io::Read for pem_rfc7468::Decoder, delegating to the std::io::Read implementation added to base64ct::Decoder in #404.

Modifies `pem_rfc7468::Decoder` to be a wrapper around the buffered
`base64ct::Decoder` type.

This allows incrementally decoding PEM, as opposed to a one-shot
approach, however support for one-shot decoding is still preserved as a
set of static functions which previously served as the crate's primary
API, meaning this should not be a breaking change for most current
applications.

Additionally impls `std::io::Read` for `pem_rfc7468::Decoder`,
delegating to the `std::io::Read` implementation added to
`base64ct::Decoder` in #404.
@tarcieri tarcieri merged commit cd23518 into master Feb 9, 2022
@tarcieri tarcieri deleted the pem-rfc7468/stateful-decoder branch February 9, 2022 16:13
tarcieri added a commit that referenced this pull request Feb 9, 2022
Now that `pem-rfc7468` supports a buffered Base64 decoder (#406), it's
possible to use it for parsing PEM-formatted OpenSSH private keys.

This commit switches to using `pem-rfc7468` for PEM parsing.
tarcieri added a commit that referenced this pull request Feb 9, 2022
Now that `pem-rfc7468` supports a buffered Base64 decoder (#406), it's
possible to use it for parsing PEM-formatted OpenSSH private keys.

This commit switches to using `pem-rfc7468` for PEM parsing.
tarcieri added a commit that referenced this pull request Feb 9, 2022
Now that `pem-rfc7468` supports a buffered Base64 decoder (#406), it's
possible to use it for parsing PEM-formatted OpenSSH private keys.

This commit switches to using `pem-rfc7468` for PEM parsing.
tarcieri added a commit that referenced this pull request Feb 9, 2022
Now that `pem-rfc7468` supports a buffered Base64 decoder (#406), it's
possible to use it for parsing PEM-formatted OpenSSH private keys.

This commit switches to using `pem-rfc7468` for PEM parsing.
tarcieri added a commit that referenced this pull request Feb 9, 2022
Now that `pem-rfc7468` supports a buffered Base64 decoder (#406), it's
possible to use it for parsing PEM-formatted OpenSSH private keys.

This commit switches to using `pem-rfc7468` for PEM parsing.
@tarcieri tarcieri mentioned this pull request Mar 12, 2022
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.

None yet

1 participant