'\" t .\" Title: crypto_blkcipher_encrypt_iv .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Programming Interface .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "CRYPTO_BLKCIPHER_ENC" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "Programming Interface" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" crypto_blkcipher_encrypt_iv \- encrypt plaintext with dedicated IV .SH "SYNOPSIS" .HP \w'int\ crypto_blkcipher_encrypt_iv('u .BI "int crypto_blkcipher_encrypt_iv(struct\ blkcipher_desc\ *\ " "desc" ", struct\ scatterlist\ *\ " "dst" ", struct\ scatterlist\ *\ " "src" ", unsigned\ int\ " "nbytes" ");" .SH "ARGUMENTS" .PP \fIdesc\fR .RS 4 reference to the block cipher handle with meta data .RE .PP \fIdst\fR .RS 4 scatter/gather list that is filled by the cipher operation with the ciphertext .RE .PP \fIsrc\fR .RS 4 scatter/gather list that holds the plaintext .RE .PP \fInbytes\fR .RS 4 number of bytes of the plaintext to encrypt\&. .RE .SH "DESCRIPTION" .PP Encrypt plaintext data with the use of an IV that is solely used for this cipher operation\&. Any previously set IV is not used\&. .PP The blkcipher_desc data structure must be filled by the caller and can reside on the stack\&. The caller must fill desc as follows: desc\&.tfm is filled with the block cipher handle; desc\&.info is filled with the IV to be used for the current operation; desc\&.flags is filled with either CRYPTO_TFM_REQ_MAY_SLEEP or 0\&. .SH "RETURN" .PP 0 if the cipher operation was successful; < 0 if an error occurred .SH "AUTHORS" .PP \fBStephan Mueller\fR <\&smueller@chronox.de\&> .RS 4 Author. .RE .PP \fBMarek Vasut\fR <\&marek@denx.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br