diff options
author | Eric Biggers <ebiggers@google.com> | 2018-05-19 22:07:37 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-05-27 00:12:08 +0800 |
commit | c2cb49e7b3f73d8b36b3f0164aceaf5fdb4db39a (patch) | |
tree | 98a8fae29310eeb3c80331ba32df03aed9ba5c5e /crypto/crc32c_generic.c | |
parent | c00cce2eb4da01e9d32d299b2acb6e6db363c37d (diff) | |
download | linux-crypto-c2cb49e7b3f73d8b36b3f0164aceaf5fdb4db39a.tar.gz linux-crypto-c2cb49e7b3f73d8b36b3f0164aceaf5fdb4db39a.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