]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Implementation of OpenSSH's bcrypt.
authorSimon Tatham <anakin@pobox.com>
Mon, 27 Apr 2015 19:48:29 +0000 (20:48 +0100)
committerSimon Tatham <anakin@pobox.com>
Mon, 27 Apr 2015 19:48:29 +0000 (20:48 +0100)
commitd6375281810357b262065549592e171c01ee7c1e
treed6bcb80771ea5463d6555005a173ce980c758ffe
parenta8658edb17a462da32499752810bd6c989159500
Implementation of OpenSSH's bcrypt.

This isn't the same as the standard bcrypt; it's OpenSSH's
modification that they use for their new-style key format.

In order to implement this, I've broken up blowfish_setkey() into two
subfunctions, and provided one of them with an extra optional salt
parameter, which is NULL in ordinary Blowfish but used by bcrypt.
Also, I've exposed some of sshblowf.c's internal machinery for the new
sshbcrypt.c to use.
ssh.h
sshbcrypt.c [new file with mode: 0644]
sshblowf.c
sshblowf.h [new file with mode: 0644]