boringssl/crypto/pkcs8
David Benjamin f35e8384a8 Fix parsing of PBKDF2 parameters.
The OPTIONAL prf field is an AlgorithmIdentifier, not an OID.  I messed
this up in the recent rewrite.

Fix the parsing and add a test, produced by commenting out the logic in
OpenSSL to omit the field for hmacWithSHA1. (We don't currently support
any other PBKDF2, or I'd just add a test for that.)

Change-Id: I7d258bb01b93cd203a6fc1b8cccbddfdbc4dbbad
Reviewed-on: https://boringssl-review.googlesource.com/14330
Reviewed-by: Steven Valdez <svaldez@google.com>
Commit-Queue: Steven Valdez <svaldez@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2017-03-25 16:29:06 +00:00
..
CMakeLists.txt Rework PKCS{5,8,12} code. 2017-01-11 01:25:14 +00:00
internal.h Decouple PBE lookup from the OID table. 2017-03-25 16:28:44 +00:00
p5_pbev2.c Fix parsing of PBKDF2 parameters. 2017-03-25 16:29:06 +00:00
p8_pkey.c Remove trailing ';' from macros 2016-09-12 19:17:26 +00:00
pkcs8_test.cc Fix parsing of PBKDF2 parameters. 2017-03-25 16:29:06 +00:00
pkcs8.c Decouple PBE lookup from the OID table. 2017-03-25 16:28:44 +00:00
pkcs12_test.cc Replace Scoped* heap types with bssl::UniquePtr. 2016-09-01 22:22:54 +00:00