Re: SMIME envelope problem (Python)

Michal Bozon <[email protected]> Fri, 31 May 2013 11:46:17 +0200
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <CAJ-1OcJdd-QzXB-Vs0A3r8pfccU7N4VWVG3-EHjKgXkudWGvrQ@mail.gmail.com>
OK, I know that the manual says:
  ... it (cryptlib) cannot send or receive email, process MIME message
parts, or otherwise act as a
mail agent. ...

but I was confused by another part of the manual:
  ... Since the nesting information is contained in the MIME headers,
you don’t have to
specify the nested content type using CRYPT_ENVINO_CONTENTTYPE ...
(and also by the idea of S/MIME multipart message being an "envelope")

Michal Bozon

On Fri, May 31, 2013 at 8:42 AM, Peter Gutmann
<[email protected]> wrote:
> 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.