diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-09-01 08:41:20 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@cryptomilk.org> | 2015-02-02 14:45:52 +0100 |
| commit | 61e2c8f0f75d6cf0948fbac71d92937b9d58fd22 (patch) | |
| tree | 565dfc56cd7f7fdb11b9a4715719f3faddd0967e /include/libssh/pki_priv.h | |
| parent | c02b260e7ef8548d61d6491d76d0150da66c19c7 (diff) | |
| download | libssh-61e2c8f0f75d6cf0948fbac71d92937b9d58fd22.tar.gz libssh-61e2c8f0f75d6cf0948fbac71d92937b9d58fd22.tar.xz libssh-61e2c8f0f75d6cf0948fbac71d92937b9d58fd22.zip | |
external: Add OpenSSH bcrypt and blowfish implementation
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/pki_priv.h')
| -rw-r--r-- | include/libssh/pki_priv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h index 62ecb681..3a91622c 100644 --- a/include/libssh/pki_priv.h +++ b/include/libssh/pki_priv.h @@ -21,6 +21,11 @@ #ifndef PKI_PRIV_H_ #define PKI_PRIV_H_ +#include "libssh/pki.h" +/* defined in bcrypt_pbkdf.c */ +int bcrypt_pbkdf(const char *pass, size_t passlen, const u_int8_t *salt, + size_t saltlen, u_int8_t *key, size_t keylen, unsigned int rounds); + #define RSA_HEADER_BEGIN "-----BEGIN RSA PRIVATE KEY-----" #define RSA_HEADER_END "-----END RSA PRIVATE KEY-----" #define DSA_HEADER_BEGIN "-----BEGIN DSA PRIVATE KEY-----" |
