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
add Identity support for RSA PKCS#8 nocrypt #260
Conversation
fully parse unencrypted PKCS#8 RSA private key parse encrypted PKCS#8 enough to recognize it as an unsupported key format add test coverage for key format support - PEM (PKCS#1) unencrypted RSA (supported) - PEM (PKCS#1) encrypted RSA (never support) - PKCS#8 unencrypted RSA (supported) - PKCS#8 encrypted (not supported, yet?) fixes str4d#14
Hi @tarcieri, Thanks for the direction to prior work. I carried on in the existing style of the codebase with the use of Would a reasonable starting point be to pause on PKCS#8 and instead go back and replace what is already there (linked below) with pkcs1? Lines 300 to 328 in 729d9da
Lines 155 to 270 in 729d9da
|
That's what I'd personally suggest. PKCS#5 support is fully integrated into the |
While I have your attention, Line 260 in 729d9da
Line 313 in 729d9da
|
Yep, as of v0.5 the |
following from review conversation: str4d#260 (comment) references: - [RFC 8017](https://tools.ietf.org/html/rfc8017#appendix-A.1.2) - [rsa::pkcs1](https://docs.rs/rsa/0.5.0/rsa/#pkcs1-rsa-key-encoding)
following from review conversation: str4d#260 (comment) references: - [RFC 8017](https://tools.ietf.org/html/rfc8017#appendix-A.1.2) - [rsa::pkcs1](https://docs.rs/rsa/0.5.0/rsa/#pkcs1-rsa-key-encoding)
Hi @str4d,
I realize that this feature is unlikely to see much use in practice, but I picked an old issue that seemed simple enough for a very new rustacean to be able to tackle (first real attempt at Rust).
fully parse unencrypted PKCS#8 RSA private key
parse encrypted PKCS#8 enough to recognize it as an unsupported key format
add test coverage for key format support
fixes #14