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

The third test vector of ECB-XTEA-ENC fails for me all other
are fine. I could not find a RFC or something else where they
are defined. The test vector has not been modified since git
started recording histrory. The implementation is very close
(not to say equal) to what is available as Public Domain (they
recommend 64 rounds and the in kernel uses 32). Therefore I
belive that there is typo somewhere and tcrypt reported always
*fail* instead of *okey*.
This patch replaces input + result of the third test vector with
result + input from the third decryption vector. The key is the
same, the other three test vectors are also the reverse.

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