]> granicus.if.org Git - php/commit
Add PBKDF2 support via openssl()
authorScott MacVicar <scottmac@php.net>
Mon, 11 Jun 2012 07:16:30 +0000 (00:16 -0700)
committerScott MacVicar <scottmac@php.net>
Mon, 11 Jun 2012 20:35:25 +0000 (13:35 -0700)
commitb5b8ea1050837fba5a6cee55e41b4574ed64158e
tree0bb6020faf9fbb968dcc25c7f197190be1914b0f
parenta18cede1c5094d5255daeb99cd6debe09938399d
Add PBKDF2 support via openssl()

Summary:
No easy way to put these in the hash extension since we don't really support optional
parameters to certain algorithms. Implemented in openssl for now since it has it already
and is pretty stable.

Only SHA1 is confirmed to work as an algorithm but openssl has a parameter so it can be
changed in the future.

Will backport to 5.4 potentially with Stas' approval.

Test Plan:
Ran newly added tests which came from RFC 6070
ext/openssl/openssl.c
ext/openssl/php_openssl.h
ext/openssl/tests/openssl_pkcs5_pbkdf2_hmac.phpt [new file with mode: 0644]