]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit87a254c0cb4b25a87fc890a32e4c87a9482bda50
tree597853354e8ba94e27fd3f95c0c0527d182994b5
parentb6b813996f4071d178758f61b34e943e1ef9a6c7
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