Re: PGP signature of empty string
Florian Mutter <[email protected]> Mon, 11 Mar 2013 15:43:02 +0100
| Newsgroups | gmane.comp.encryption.cryptlib |
|---|---|
| Message-ID | <[email protected]> |
> Thanks! So verifying the signature is easy, just change the code to: > > if( strlen(text) > 0 ) > cryptEncrypt( hashContext, (void *)text, (int)strlen(text) ); > > Since calling cryptEncrypt() on a hash context with length == 0 wraps up the > hashing, and since you're not hashing anything anyway, you can just skip the > call if the hashed data length is zero. This works. Thank you! But I'm not able to get something like this working to sign an empty string. _______________________________________________ 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.