digitalbazaar/forge — pull request #6 by stesie (2012-06-30 22:43:31+00:00)
Title: PKCS#7 code cleanup & PKCS#12 parser

hey there,

here's yet another pull request, ...

I re-indented my PKCS#7 code to reflect your change to two spaces and cleaned it up here and there. Besides I've added support for PKCS#7 EncryptedData objects (currently reading only).

Furthermore I've started work on a PKCS#12 module. So far I've moved pki.toPkcs12Asn1, fixed it (including a nodeunit testcase), and wrote a PKCS#12 parser. Since PKCS#12 containers usually don't use PKCS#5 PBES2 to shroud private keys, but a PKCS#12 specific PBE, I've implemented the key derivation process from appendix B as well.

PKCS#12 files tend to be RC2 encrypted, hence I intend to implement that soon ...

happy hacking,
stesie