**SPAM** Re: Little help please...
Werner Koch
wk at gnupg.org
Mon May 23 16:09:39 CEST 2005
On Mon, 23 May 2005 09:46:23 -0400, Tod Thomas said:
> err = gcry_cipher_setkey(hd, key, keylen);
Use a fixed key for testing, like
err = gcry_cipher_setkey(hd, "123456789abcdef0", 16 );
> 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.
Shalom-Salam,
Werner
More information about the Gcrypt-devel
mailing list