CRYPTO_BLKCIPHER_DEC(9) | Programming Interface | CRYPTO_BLKCIPHER_DEC(9) |
NAME¶
crypto_blkcipher_decrypt - decrypt ciphertext
SYNOPSIS¶
int crypto_blkcipher_decrypt(struct blkcipher_desc * desc, struct scatterlist * dst, struct scatterlist * src, unsigned int nbytes);
ARGUMENTS¶
desc
dst
src
nbytes
DESCRIPTION¶
Decrypt ciphertext 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 as documented for the crypto_blkcipher_encrypt call above.
RETURN¶
0 if the cipher operation was successful; < 0 if an error occurred
AUTHORS¶
Stephan Mueller <smueller@chronox.de>
Marek Vasut <marek@denx.de>
COPYRIGHT¶
June 2017 | Kernel Hackers Manual 4.9. |