Initialise context before using it.
This commit is contained in:
parent
262f1c524e
commit
a4947e4e06
@ -91,7 +91,7 @@ int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
|
|||||||
if (mdlen < 0)
|
if (mdlen < 0)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
HMAC_CTX_init(&hctx);
|
HMAC_CTX_init(&hctx_tpl);
|
||||||
p = out;
|
p = out;
|
||||||
tkeylen = keylen;
|
tkeylen = keylen;
|
||||||
if(!pass)
|
if(!pass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user