]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] crc32c: Fix unconventional setkey usage
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 6 Aug 2006 13:03:08 +0000 (23:03 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 21 Sep 2006 01:41:01 +0000 (11:41 +1000)
commitf956809ee1705f0eaa58832b8e8780ad0086578d
tree0dff8422d2b0b1da1d3505b0ad0e840f6f0fd66d
parente139541edbb8ef1aa6e70973501aa131c388b247
[CRYPTO] crc32c: Fix unconventional setkey usage

The convention for setkey is that once it is set it should not change,
in particular, init must not wipe out the key set by it.  In fact, init
should always be used after setkey before any digestion is performed.

The only user of crc32c that sets the key is tcrypt.  This patch adds
the necessary init calls there.

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