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

Implement OSSL_Encoder and OSSL_Decoder APIs #2165

Open
marcoh00 opened this issue Feb 9, 2024 · 0 comments
Open

Implement OSSL_Encoder and OSSL_Decoder APIs #2165

marcoh00 opened this issue Feb 9, 2024 · 0 comments

Comments

@marcoh00
Copy link
Contributor

marcoh00 commented Feb 9, 2024

Functionality for importing and exporting keys currently relies heavily on the PEM_{read,write}_bio_* and {i2d,d2i}_* type of functions (as an example, see RSA private key export and import). However, these functions were deprecated with OpenSSL 3.0 ([1] [2]).

As a replacement, the documentation references the OSSL_Encoder and OSSL_Decoder APIs. Apart from making this library a bit more future-proof, the new API looks quite flexible to me and it should be quite easy to realize functionality like exporting keys to various formats (including PKCS#8, which would cover the use case that was prototyped in #1374).

This probably involves a bit of work, so just see this as a tracking issue. I could imagine to work on this in case of positive feedback and an outlook that this could in fact be merged but unfortunately I cannot promise anything as I don't have a lot of time on my hands and I have no idea how much work this actually is.

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

No branches or pull requests

1 participant