/* Decrypt the message */
silc_cipher_decrypt(cipher, data, data, data_len - iv_len - mac_len,
- (iv_len ? data + (data_len - iv_len - mac_len) :
- silc_cipher_get_iv(cipher)));
+ (iv_len ? data + (data_len - iv_len - mac_len) : NULL));
return TRUE;
}
/* Encrypt payload of the packet. If the IV is added to packet do
not encrypt that. */
silc_cipher_encrypt(cipher, data, data, data_len - iv_len,
- iv_len ? iv : silc_cipher_get_iv(cipher));
+ iv_len ? iv : NULL);
/* Compute the MAC of the encrypted message data */
silc_hmac_init(hmac);