-
-
Notifications
You must be signed in to change notification settings - Fork 968
Open
Description
We support encrypted OpenSSH keys (defined at https://github.com/openssh/openssh-portable/blob/master/PROTOCOL.key) for which we have a bcrypt implementation (from somewhere) for the key derivation (kdf).
Now that we depend on BouncyCastle and have replaced a lot of internal crypto with a BouncyCastle implementation, we may also be able to use https://github.com/bcgit/bc-csharp/blob/master/crypto/src/crypto/generators/BCrypt.cs
As far as I can tell, the OpenSSH kdf does a little bit on top of straight bcrypt, probably encapsulated here:
| public void Pbkdf(byte[] password, byte[] salt, int rounds, byte[] output) |
It may be possible to replace all or some of our Bcrypt.cs with BouncyCastle
Metadata
Metadata
Assignees
Labels
No labels