-
Notifications
You must be signed in to change notification settings - Fork 11
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 support for encrypted private keys. #207
Conversation
I tried my best to clean up the Bcrypt KDF implementation from SSH.NET but I'm sure there are probably further optimisations that could be implemented. The good news is it works with some test vectors I found and the tests when they run. |
3113597
to
5f19311
Compare
@jborean93 thanks for working on this! I've added some high level comments about code organization. I'll try to do a more in depth review in the coming week. |
Adds support for using encrypted private keys with user authentication. This implementation support private keys encrypted with the PKCS#1 and OpenSSH PEM formats. The AES and ChaCha20Poly1304 ciphers allowed by each format has been implemented in this change.
5f19311
to
3abd97f
Compare
Thanks a lot @jborean93! |
Thanks for the review and looking through the changes! |
Adds support for using encrypted private keys with user authentication. This implementation support private keys encrypted with the PKCS#1 and OpenSSH PEM formats. The AES and ChaCha20-Poly1305 ciphers allowed by each format has been implemented in this change.
Fixes: #202