boringssl/crypto/pkcs8
David Benjamin 582d2847ed Reimplement PKCS#12 key derivation.
This is avoids pulling in BIGNUM for doing a straight-forward addition on a
block-sized value, and avoids a ton of mallocs. It's also -Wconversion-clean,
unlike the old one.

In doing so, this replaces the HMAC_MAX_MD_CBLOCK with EVP_MAX_MD_BLOCK_SIZE.
By having the maximum block size available, most of the temporary values in the
key derivation don't need to be malloc'd.

BUG=22

Change-Id: I940a62bba4ea32bf82b1190098f3bf185d4cc7fe
Reviewed-on: https://boringssl-review.googlesource.com/7688
Reviewed-by: Steven Valdez <svaldez@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
2016-04-19 18:16:38 +00:00
..
CMakeLists.txt Add a run_tests target to run all tests. 2015-10-26 20:33:44 +00:00
internal.h pkcs8.c: Add PBES2 to list of password-based encryption methods. 2015-08-28 20:33:33 +00:00
p5_pbe.c Remove some easy obj.h dependencies. 2016-03-31 20:50:33 +00:00
p5_pbev2.c Remove some easy obj.h dependencies. 2016-03-31 20:50:33 +00:00
p8_pkey.c Check PKCS#8 pkey field is valid before cleansing. 2015-11-09 23:06:13 +00:00
pkcs8_test.cc pkcs8.c: Add PBES2 to list of password-based encryption methods. 2015-08-28 20:33:33 +00:00
pkcs8.c Reimplement PKCS#12 key derivation. 2016-04-19 18:16:38 +00:00
pkcs12_test.cc BIO_new_mem_buf should take const void * 2016-02-24 19:14:19 +00:00