digitalbazaar/forge — pull request #5 by stesie (2012-03-29 22:44:59+00:00)
Title: Added PKCS#7 EnvelopedData mode and DES cipher

Hi,

I've just added an implementation of PKCS#7 "EnvelopedData", supporting encryption as well as decryption. Other PKCS#7 types like EncryptedData, signedAndEnvelopedData, etc. are not (yet) supported. At least into EncryptedData I'll probably have a look soon.

Furthermore I've added a DES cipher module, which supports DES & 3DES in CBC and ECB modes (encryption as well as decryption).

The DER decoder has lacked support for the indefinite form of length octets (i.e. length byte set to 0x80). Since at least the Mozilla NSS libraries do provide PKCS#7 documents with many sequences' length left undefined, I've added support for that to the ASN.1 module as well.

happy hacking,

stesie