---
name: "ablkcipher_request_set_crypt"
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/ablkcipher_request_set_crypt"
---

# ablkcipher\_request\_set\_crypt(9)

set data buffers

## NAME

ablkcipher\_request\_set\_crypt - set data buffers

## SYNOPSIS

**void ablkcipher\_request\_set\_crypt(struct ablkcipher\_request \*** *req***, struct scatterlist \*** *src***, struct scatterlist \*** *dst***, unsigned int** *nbytes***, void \*** *iv***);**

## ARGUMENTS

*req*

request handle

*src*

source scatter / gather list

*dst*

destination scatter / gather list

*nbytes*

number of bytes to process from *src*

*iv*

IV for the cipher operation which must comply with the IV size defined by crypto\_ablkcipher\_ivsize

## DESCRIPTION

This function allows setting of the source data and destination data scatter / gather lists.

For encryption, the source is treated as the plaintext and the destination is the ciphertext. For a decryption operation, the use is reversed - the source is the ciphertext and the destination is the plaintext.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
