silc_cipher_set_iv

SYNOPSIS

    void silc_cipher_set_iv(SilcCipher cipher, const unsigned char *iv);

DESCRIPTION

Sets the IV (initialization vector) for the cipher. The `iv' must be the size of the block size of the cipher. If `iv' is NULL this does not do anything.

If the encryption mode is CTR (Counter mode) this also resets the the counter for a new block. This is done also if `iv' is NULL.

If the encryption mode is CFB (cipher feedback) this also resets the the feedback stream for a new block. This is done also if `iv' is NULL.