commit | fffe7d9279a48563fe4c19b07b649a583ac91a44 | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Sat May 19 22:07:37 2018 -0700 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Sun May 27 00:12:08 2018 +0800 |
tree | 01f5806dedea2392ba74a63dba0538a8dc63cd7d | |
parent | f16b613ca8b3e4960cdc5575e9b8e1dbdd7d54d5 [diff] |
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>