gcry_cipher_setkey(h,k,l)

kingruedi cplusplushelp@gmx.net
Sun, 21 Apr 2002 15:48:57 +0200


Am Sonntag, 21. April 2002 13:35 schrieb Werner Koch:
> On Sun, 21 Apr 2002 13:20:23 +0200, Rüdiger Sonderfeld said:
> > I don't understand how to use the gcry_cipher_setkey(h,k,l) function. I
> > now h is the handle but what is k and l? I will use it for the AES256
> > encryption.
>
> A pointer to the key and the length of that key.  For AES256 L should
> be 32.

That is good! so I can use MD5 sums as key