diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-05-19 12:43:12 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-05-20 12:21:31 +0100 |
commit | a95fb9e35824b479ee208c504fc3824827b3fdcd (patch) | |
tree | 673a36547e91dedea2b583fbe8ee62ecf4b39b20 /include | |
parent | 3a114e616424825689482398cc7f9eb8d146f591 (diff) | |
download | openssl-a95fb9e35824b479ee208c504fc3824827b3fdcd.tar.gz |
Add scrypt support.
Add scrypt algorithm as described in draft-josefsson-scrypt-kdf-03
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/evp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index 4df3ce72c1..2af823f236 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -1068,6 +1068,11 @@ int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de); +int EVP_PBE_scrypt(const char *pass, size_t passlen, + const unsigned char *salt, size_t saltlen, + uint64_t N, uint64_t r, uint64_t p, uint64_t maxmem, + unsigned char *key, size_t keylen); + void PKCS5_PBE_add(void); int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, |