]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: tcrypt - Fix AEAD chunk testing
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 30 Jul 2008 08:23:51 +0000 (16:23 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 13 Aug 2008 10:08:36 +0000 (20:08 +1000)
commitf49043cc3a5c2426026aa346b38b15180fa26941
tree23da81862b250c2b063ec6b120b1ae3e9d6e5e9b
parenta833f3b61b9e68a21e8d5be99db18003739dab21
crypto: tcrypt - Fix AEAD chunk testing

My changeset 3e78ad3d80a55708aa8fdae0072d6201db46c00c

crypto: tcrpyt - Remove unnecessary kmap/kunmap calls

introduced a typo that broke AEAD chunk testing.  In particular,
axbuf should really be xbuf.

There is also an issue with testing the last segment when encrypting.
The additional part produced by AEAD wasn't tested.  Similarly, on
decryption the additional part of the AEAD input is mistaken for
corruption.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c