]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] tcrypt: Change the usage of the test vectors
authorSebastian Siewior <sebastian@breakpoint.cc>
Thu, 13 Mar 2008 12:20:28 +0000 (20:20 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 21 Apr 2008 02:19:22 +0000 (10:19 +0800)
commit52d0d6617b19e8edc1feaea987c7d790544afc4a
tree24e129c431f498f773537cd0963c3946ece350e2
parent30251844bd372a062c86b8f8dd52b8be8d8c403d
[CRYPTO] tcrypt: Change the usage of the test vectors

The test routines (test_{cipher,hash,aead}) are makeing a copy
of the test template and are processing the encryption process
in place. This patch changes the creation of the copy so it will
work even if the source address of the input data isn't an array
inside of the template but a pointer.

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