skcipher_request_set_crypt(9)

skcipher_request_set_crypt9

Set data buffers

Usage

void skcipher_request_set_crypt(struct skcipher_request * req, struct scatterlist * src, struct scatterlist * dst, unsigned int cryptlen, void * iv);

Arguments

req

request handle

src

source scatter / gather list

dst

destination scatter / gather list

cryptlen

number of bytes to process from src

iv

IV for the cipher operation which must comply with the IV size defined by crypto_skcipher_ivsize

Overview

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 <[email protected]>

Author.

Marek Vasut <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.