gcry_cipher_setkey(h,k,l)

Timo Schulz twoaday@freakmail.de
Sun, 21 Apr 2002 13:29:02 +0200


On Sun Apr 21 2002; 13:20, Rüdiger Sonderfeld wrote:

> 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.

I guess you didn't watch the test files...from tests/basic.c

    if (gcry_cipher_setkey (hd, key, keylen)) {
        fail ("algo %d, mode %d, gcry_cipher_setkey failed: %s\n",
              algo, mode, gcry_strerror (-1) );
        gcry_cipher_close (hd);
        return;
    }


        Timo