[−][src]Function hactool_sys::mbedtls_cipher_set_iv
pub unsafe extern "C" fn mbedtls_cipher_set_iv(
ctx: *mut mbedtls_cipher_context_t,
iv: *const c_uchar,
iv_len: usize
) -> c_int
\brief Set the initialization vector (IV) or nonce
\param ctx generic cipher context \param iv IV to use (or NONCE_COUNTER for CTR-mode ciphers) \param iv_len IV length for ciphers with variable-size IV; discarded by ciphers with fixed-size IV.
\returns 0 on success, or MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
\note Some ciphers don't use IVs nor NONCE. For these ciphers, this function has no effect.