---
name: "crypto_blkcipher_set_iv"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/crypto_blkcipher_set_iv"
---

# crypto\_blkcipher\_set\_iv(9)

set IV for cipher

## NAME

crypto\_blkcipher\_set\_iv - set IV for cipher

## SYNOPSIS

**void crypto\_blkcipher\_set\_iv(struct crypto\_blkcipher \*** *tfm***, const u8 \*** *src***, unsigned int** *len***);**

## ARGUMENTS

*tfm*

cipher handle

*src*

buffer holding the IV

*len*

length of the IV in bytes

## DESCRIPTION

The caller provided IV is set for the block cipher referenced by the cipher handle.

## AUTHORS

**Stephan Mueller** \<smueller@chronox.de\>

Author.

**Marek Vasut** \<marek@denx.de\>

Author.

## COPYRIGHT
