crypto: xcbc - Fix shash conversion
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Jul 2009 06:37:15 +0000 (14:37 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Jul 2009 06:38:10 +0000 (14:38 +0800)
commitac95301f271f32901e4007096aa3516def49eed2
treeb228f9cf7d3cbd62fc61dc1eea92f74a2fbe3786
parentb588ef6e69bfc0944a17dc673ee166a00fa23de2
crypto: xcbc - Fix shash conversion

Although xcbc was converted to shash, it didn't obey the new
requirement that all hash state must be stored in the descriptor
rather than the transform.

This patch fixes this issue and also optimises away the rekeying
by precomputing K2 and K3 within setkey.

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