PBKDF2 computation speedup (15-40%)
authorGergely Nagy <ngg@ngg.hu>
Thu, 13 Oct 2016 16:50:31 +0000 (18:50 +0200)
committerRich Salz <rsalz@openssl.org>
Tue, 4 Apr 2017 14:44:17 +0000 (10:44 -0400)
commitb98530d6e09f4cb34c791b8840e936c1fc1467cf
tree629ef403353fddfc5eb8c736c3b5594d41468d09
parent79b3452faf04f2572f57eb37b618cc603d9983da
PBKDF2 computation speedup (15-40%)

This commit contains some optimizations in PKCS5_PBKDF2_HMAC() and
HMAC_CTX_copy() functions which together makes PBKDF2 computations
faster by 15-40% according to my measurements made on x64 Linux with
both asm optimized and no-asm versions of SHA1, SHA256 and SHA512.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1708)
crypto/evp/p5_crpt2.c
crypto/hmac/hmac.c