crypto_blkcipher_encrypt (9) - Linux Man Pages
crypto_blkcipher_encrypt: encrypt plaintext
crypto_blkcipher_encrypt - encrypt plaintext
int crypto_blkcipher_encrypt(struct blkcipher_desc
*desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes);
- reference to the block cipher handle with meta data
- scatter/gather list that is filled by the cipher operation with the ciphertext
- scatter/gather list that holds the plaintext
- number of bytes of the plaintext to encrypt.
Encrypt plaintext data using the IV set by the caller with a preceding call of crypto_blkcipher_set_iv.
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.flags is filled with either CRYPTO_TFM_REQ_MAY_SLEEP or 0.
Stephan Mueller <smueller [at] chronox.de>
Marek Vasut <marek [at] denx.de>