Re: SMIME envelope problem (Python)

Peter Gutmann <[email protected]> Fri, 31 May 2013 18:42:34 +1200
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Michal Bozon <[email protected]> writes:

>The attached Python script just tries to load the SMIME message;
>unfortunately, the data is not recognized - when the envelope is set to
>CRYPT_FORMAT_AUTO, it results to: cryptlib_py.CryptException: (-32,
>'Bad/unrecognised data format')

That's a complete email message (or at least a partial chunk of an email
message), not S/MIME data.  The S/MIME data is the signature at the end, you
need to feed that to cryptlib (that is, the binary decoded form once all of
the email wrapping has been removed).

Peter.

_______________________________________________
Cryptlib mailing list
[email protected] via Mail: [email protected]
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.