fullsailor / pkcs7

Implements a subset of PKCS#7/Crytpographic Message Syntax (rfc2315, rfc5652)
MIT License
123 stars 201 forks source link

Added support for AES256 CBC encryption #44

Open nelsonghezzi opened 3 years ago

nelsonghezzi commented 3 years ago

I stumbled upon the need for AES256 CBC encryption. This PR adds support for it.

This module is the easiest (if not the only) implementation for working with PKCS#7/CMS enveloped messages in Go I have found so far, so it would be useful to expand it with more algorithms.

Altough there is a similar PR (#22) addressing the same feature, the code in this one is more similar to the other methods (particularly encryptDESCBC), which will help to factor out commonalities among them in the future.

Thanks!