fullsailor / pkcs7

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

Fixed data truncation for signed messages #6

Open geoko86 opened 8 years ago

geoko86 commented 8 years ago

I noticed that data gets truncated on signed messages because only the first ASN.1 data structure was parsed. The fix now loops over any rest that comes back from ans1.Unmarshal and tries to unmarshal that rest again.

fullsailor commented 8 years ago

@geoko86 Any chance you have an sample with this format that I can add to the tests?

geoko86 commented 8 years ago

Hi Andrew, I don't have a sample that i can share at the moment. I'll try to create one on the weekend or next week.

On Thu, Apr 14, 2016 at 7:06 PM Andrew Smith notifications@github.com wrote:

@geoko86 https://github.com/geoko86 Any chance you have an sample with this format that I can add to the tests?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/fullsailor/pkcs7/pull/6#issuecomment-210051931

sent from mobile device.