**SPAM** Re: Little help please...

Brad Hards bradh at frogmouth.net
Wed Jun 1 13:18:00 CEST 2005


On Wed, 1 Jun 2005 21:09 pm, Tod Thomas wrote:
> >>gcry_cipher_decrypt(hd,decryptedtext,strlen(ciphertext),ciphertext,strlen
> >>(ciphertext));
> >
> > This won't work:  You can't use strlen on CIPHERTEXT becuase that one
> > is binary.
>
> Won't it?  All strings ultimately are just binary data.
But binary data will contain arbitrary nulls. strlen just looks for the first 
one.

Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/attachments/20050601/8a219296/attachment.pgp


More information about the Gcrypt-devel mailing list