crc-intel-pclmul: fix undefined behavior with unaligned access
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 28 Jan 2017 09:26:02 +0000 (11:26 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 28 Jan 2017 09:26:02 +0000 (11:26 +0200)
commit55cf1b5588705cab5f45e2817c4aa1d204dc0042
treec4df08feab47acc470ee243b1b89b74dc6e50c7c
parentb29b1b9f576f501d4b993be0a751567045274a1a
crc-intel-pclmul: fix undefined behavior with unaligned access

* cipher/crc-intel-pclmul.c (u16_unaligned_s): New.
(crc32_reflected_less_than_16, crc32_less_than_16): Use
'u16_unaligned_s' for unaligned memory access.
--

GnuPG-bug-id: 2292
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/crc-intel-pclmul.c