crypto: crc32c-generic - remove cra_alignmask
authorEric Biggers <ebiggers@google.com>
Sun, 20 May 2018 05:07:38 +0000 (22:07 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 26 May 2018 16:12:08 +0000 (00:12 +0800)
commit7bcfb13630569fab75455fed57fcee6cf9e40096
tree597853354e8ba94e27fd3f95c0c0527d182994b5
parentfffe7d9279a48563fe4c19b07b649a583ac91a44
crypto: crc32c-generic - remove cra_alignmask

crc32c-generic sets an alignmask, but actually its ->update() works with
any alignment; only its ->setkey() and outputting the final digest
assume an alignment.  To prevent the buffer from having to be aligned by
the crypto API for just these cases, switch these cases over to the
unaligned access macros and remove the cra_alignmask.  Note that this
also makes crc32c-generic more consistent with crc32-generic.

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