---
name: "crypto_blkcipher_get_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_get_iv"
---

# crypto\_blkcipher\_get\_iv(9)

obtain IV from cipher

## NAME

crypto\_blkcipher\_get\_iv - obtain IV from cipher

## SYNOPSIS

**void crypto\_blkcipher\_get\_iv(struct crypto\_blkcipher \*** *tfm***, u8 \*** *dst***, unsigned int** *len***);**

## ARGUMENTS

*tfm*

cipher handle

*dst*

buffer filled with the IV

*len*

length of the buffer dst

## DESCRIPTION

The caller can obtain the IV set for the block cipher referenced by the cipher handle and store it into the user-provided buffer. If the buffer has an insufficient space, the IV is truncated to fit the buffer.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
