if (cipher) {
SILC_LOG_DEBUG(("Encrypting packet, cipher %s, len %d",
silc_cipher_get_name(cipher), len));
- silc_cipher_encrypt(cipher, buffer->data, buffer->data, len,
- silc_cipher_get_iv(cipher));
+ silc_cipher_encrypt(cipher, buffer->data, buffer->data, len, NULL);
}
/* Compute HMAC. This assumes that MAC is computed from the entire
if (cipher) {
/* Decrypt rest of the packet */
SILC_LOG_DEBUG(("Decrypting the packet"));
- silc_cipher_decrypt(cipher, buffer->data, buffer->data, buffer->len,
- silc_cipher_get_iv(cipher));
+ silc_cipher_decrypt(cipher, buffer->data, buffer->data, buffer->len,
+ NULL);
}
return 0;
return -1;
}
silc_buffer_pull(buffer, block_len);
- silc_cipher_decrypt(cipher, buffer->data, buffer->data, len,
- silc_cipher_get_iv(cipher));
+ silc_cipher_decrypt(cipher, buffer->data, buffer->data, len, NULL);
}
return 1;