]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: crc32-generic - use unaligned access macros when needed
authorEric Biggers <ebiggers@google.com>
Sun, 20 May 2018 05:07:37 +0000 (22:07 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 26 May 2018 16:12:08 +0000 (00:12 +0800)
commit3815c17914a2da33caa54229ab8907a62e1c9fc7
tree01f5806dedea2392ba74a63dba0538a8dc63cd7d
parent23512f052efad3759f125c9218268ef8e0eb7d44
crypto: crc32-generic - use unaligned access macros when needed

crc32-generic doesn't have a cra_alignmask set, which is desired as its
->update() works with any alignment.  However, it incorrectly assumes
4-byte alignment in ->setkey() and when outputting the final digest.

Fix this by using the unaligned access macros in those cases.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/crc32_generic.c