summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-07-08 23:17:20 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2015-07-14 06:56:46 (GMT)
commit5499b1a7311f5ec301ac2baa04a3482ee89ac0ab (patch)
tree2f6ad76458338ec95a60b478b093a7c973a72be3 /mm
parentf6da32059324e06adacbc1235d50cce4de9d817a (diff)
downloadlinux-5499b1a7311f5ec301ac2baa04a3482ee89ac0ab.tar.xz
crypto: echainiv - Fix encryption convention
This patch fixes a bug where we were incorrectly including the IV in the AD during encryption. The IV must remain in the plain text for it to be encrypted. During decryption there is no need to copy the IV to dst because it's now part of the AD. This patch removes an unncessary check on authsize which would be performed by the underlying decrypt call. Finally this patch makes use of the type-safe init/exit functions. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions