Skip to content

Conversation

@tarcieri
Copy link
Member

@tarcieri tarcieri commented May 4, 2022

Adds a PEM decoder which leverages the Reader trait to be able to decode DER from PEM being decoded on-the-fly. This requires bounding on DecodeOwned, as it's not possible to borrow DER bytes from a PEM input.

Also adds BitStringOwned, an owned form of BitString. This may not be the greatest naming scheme (perhaps we should change the current BitString type to BitStringRef).

There are several owned types to add. However this much is capable of decoding some SPKI test vectors.

Adds a PEM decoder which leverages the `Reader` trait to be able to
decode DER from PEM being decoded on-the-fly. This requires bounding on
`DecodeOwned`, as it's not possible to borrow DER bytes from a PEM
input.

Also adds `BitStringOwned`, an owned form of `BitString`. This may not
be the greatest naming scheme (perhaps we should change the current
`BitString` type to `BitStringRef`).

There are several owned types to add. However this much is capable of
decoding some SPKI test vectors.
@tarcieri tarcieri force-pushed the der/streaming-pem-decoder branch from 9dc6f8e to 8d93b9e Compare May 5, 2022 01:27
@tarcieri tarcieri merged commit 639cc30 into master May 5, 2022
@tarcieri tarcieri deleted the der/streaming-pem-decoder branch May 5, 2022 01:50
This was referenced May 5, 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.

2 participants