X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilccrypt%2Fsilccipher.c;h=1832566fec29c45286b3a926c316f63f779746c8;hb=35cdce343e56b7bae588a4fe7ba0bf8615a48170;hp=bf018c9716f8fb1e05fc5064574c8b725d054972;hpb=609978b52bc2d6a26ef98cacd35bed5cde0714e7;p=silc.git diff --git a/lib/silccrypt/silccipher.c b/lib/silccrypt/silccipher.c index bf018c97..1832566f 100644 --- a/lib/silccrypt/silccipher.c +++ b/lib/silccrypt/silccipher.c @@ -333,9 +333,9 @@ SilcBool silc_cipher_decrypt(SilcCipher cipher, const unsigned char *src, /* Sets the key for the cipher */ SilcBool silc_cipher_set_key(SilcCipher cipher, const unsigned char *key, - SilcUInt32 keylen) + SilcUInt32 keylen, SilcBool encryption) { - return cipher->cipher->set_key(cipher->context, key, keylen); + return cipher->cipher->set_key(cipher->context, key, keylen, encryption); } /* Sets the IV (initial vector) for the cipher. */