summaryrefslogtreecommitdiffstats
path: root/crypto/crc32c_generic.c
diff options
context:
space:
mode:
authorEric Biggers2018-05-20 07:07:37 +0200
committerHerbert Xu2018-05-26 18:12:08 +0200
commitfffe7d9279a48563fe4c19b07b649a583ac91a44 (patch)
tree01f5806dedea2392ba74a63dba0538a8dc63cd7d /crypto/crc32c_generic.c
parentcrypto: chtls - fix a missing-check bug (diff)
downloadkernel-qcow2-linux-fffe7d9279a48563fe4c19b07b649a583ac91a44.tar.gz
kernel-qcow2-linux-fffe7d9279a48563fe4c19b07b649a583ac91a44.tar.xz
kernel-qcow2-linux-fffe7d9279a48563fe4c19b07b649a583ac91a44.zip
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>
Diffstat (limited to 'crypto/crc32c_generic.c')
0 files changed, 0 insertions, 0 deletions