Skip to content

Conversation

@woodruffw
Copy link
Contributor

This is just a small API addition, designed to help with the (unfortunately) common case of DER nested within OCTET STRING slices.

This is effectively just a shorthand for T::from_der(o.as_bytes()) for T: Decode.

(If this change isn't desired, please feel free to close!)

@tarcieri tarcieri merged commit 3254004 into RustCrypto:master Dec 23, 2022
@tarcieri
Copy link
Member

Seems fine. I've encountered valid use cases.

@woodruffw woodruffw deleted the ww/octetstring-decode-into branch December 23, 2022 18:46
@tarcieri tarcieri mentioned this pull request Feb 27, 2023
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