projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added encryptio boolena indicator to silc_cipher_set_key.
[silc.git]
/
lib
/
silccrypt
/
silccipher.c
diff --git
a/lib/silccrypt/silccipher.c
b/lib/silccrypt/silccipher.c
index bf018c9716f8fb1e05fc5064574c8b725d054972..1832566fec29c45286b3a926c316f63f779746c8 100644
(file)
--- 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,
/* 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. */
}
/* Sets the IV (initial vector) for the cipher. */