projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ROBODoc documented lib/silcrypt/silccipher.h. Patch by Toni
[silc.git]
/
lib
/
silccore
/
silcprivate.c
diff --git
a/lib/silccore/silcprivate.c
b/lib/silccore/silcprivate.c
index e5ae3069d8cedb2651042ca59af913c93bf7ad94..67cb967b078c039c477cb4af05f687d5083ed7e0 100644
(file)
--- a/
lib/silccore/silcprivate.c
+++ b/
lib/silccore/silcprivate.c
@@
-69,7
+69,7
@@
silc_private_message_payload_parse(unsigned char *payload,
/* Decrypt the payload */
if (cipher)
silc_cipher_decrypt(cipher, buffer.data, buffer.data,
/* Decrypt the payload */
if (cipher)
silc_cipher_decrypt(cipher, buffer.data, buffer.data,
- buffer.len,
cipher->iv
);
+ buffer.len,
silc_cipher_get_iv(cipher)
);
newp = silc_calloc(1, sizeof(*newp));
if (!newp)
newp = silc_calloc(1, sizeof(*newp));
if (!newp)
@@
-144,7
+144,7
@@
SilcBuffer silc_private_message_payload_encode(SilcUInt16 flags,
if (cipher) {
/* Encrypt payload of the packet. */
silc_cipher_encrypt(cipher, buffer->data, buffer->data,
if (cipher) {
/* Encrypt payload of the packet. */
silc_cipher_encrypt(cipher, buffer->data, buffer->data,
- buffer->len,
cipher->iv
);
+ buffer->len,
silc_cipher_get_iv(cipher)
);
memset(pad, 0, sizeof(pad));
}
memset(pad, 0, sizeof(pad));
}