Re: Decrypting openpgp data created by gpg

Peter Gutmann <[email protected]> Thu, 28 Feb 2013 22:46:26 +1300
Newsgroups gmane.comp.encryption.cryptlib
Message-ID <[email protected]>
Lahiru Dissanayake <[email protected]> writes:

>Found another issue similar to this when specifying the
>CRYPT_ENVINFO_SIGNATURE attribute to verify a digitally signed PGP envelope.
>The following line returns -2 in the de-enveloping process:
>
>status = cryptSetAttribute(cryptEnvelope, CRYPT_ENVINFO_SIGNATURE,
>             publicKeyContext);
>
>You don't get this error when the envelope type is CRYPT_FORMAT_CRYPTLIB.
>Similar to the issue with the private key context, directly specifying a
>keyset instead of the above line works.

Can you send me the code that produces this problem?  Is it just a standard
signed envelope, only instead of adding the sig-check keyset you add the
public key directly?

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.