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

Document use with the PKCS#8 #1050

Open
XVilka opened this issue May 22, 2024 · 1 comment
Open

Document use with the PKCS#8 #1050

XVilka opened this issue May 22, 2024 · 1 comment

Comments

@XVilka
Copy link

XVilka commented May 22, 2024

Currently, only rsa crate has high-level functions documented that allow to load form PEM, DER, etc formats. But I found nothing of the kind in the elliptic_curve's documentation.

It would be nice to have methods descrubed similarly to those of rsa:

There are only basic paragraphs in https://docs.rs/elliptic-curve/latest/elliptic_curve/struct.PublicKey.html#parsing-spki-keys and https://docs.rs/elliptic-curve/latest/elliptic_curve/struct.SecretKey.html#parsing-pkcs8-keys. I myself already figured what to do, but for the newbies it would be nice to have a clearer documentation.

@tarcieri
Copy link
Member

tarcieri commented Jun 5, 2024

It's hard to have concrete code examples because they'd have to be repeated for each elliptic curve, though I suppose we can add some and copy-and-paste them for each curve, but that's a lot of work and makes it hard to ever update them due to the duplication.

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

2 participants