diff options
author | Ben Laurie <ben@openssl.org> | 2001-12-09 21:53:31 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2001-12-09 21:53:31 +0000 |
commit | ff3fa48fc79029d46f5285bdf9347b96f2262ce2 (patch) | |
tree | f74a1f8ddd6ecf86c7f217742f10dea32a3b89bb /crypto/evp/p5_crpt2.c | |
parent | 87166e1fb6941280fc0827909d944b806461727d (diff) |
Improve back compatibility.
Diffstat (limited to 'crypto/evp/p5_crpt2.c')
-rw-r--r-- | crypto/evp/p5_crpt2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/p5_crpt2.c b/crypto/evp/p5_crpt2.c index 6c4b3eaf34..14cad73cde 100644 --- a/crypto/evp/p5_crpt2.c +++ b/crypto/evp/p5_crpt2.c @@ -100,7 +100,7 @@ int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, itmp[1] = (unsigned char)((i >> 16) & 0xff); itmp[2] = (unsigned char)((i >> 8) & 0xff); itmp[3] = (unsigned char)(i & 0xff); - HMAC_Init(&hctx, pass, passlen, EVP_sha1()); + HMAC_Init_ex(&hctx, pass, passlen, EVP_sha1()); HMAC_Update(&hctx, salt, saltlen); HMAC_Update(&hctx, itmp, 4); HMAC_Final(&hctx, digtmp, NULL); |