Fix alignment problem in serpent.c.
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 18 Apr 2013 11:22:34 +0000 (13:22 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 18 Apr 2013 11:25:59 +0000 (13:25 +0200)
commit8eab66ad6852ec985bfb1e7fec35981d5e31148a
tree2049dc255846e9c67653ef07262679d98100e392
parentcc2f85116226bf9e2b77c4949eb1e7ea2357f67d
Fix alignment problem in serpent.c.

* cipher/serpent.c (serpent_key_prepare): Fix misaligned access.
(serpent_setkey): Likewise.
(serpent_encrypt_internal): Likewise.
(serpent_decrypt_internal): Likewise.
(serpent_encrypt): Don't put an alignment-increasing cast.
(serpent_decrypt): Likewise.
(serpent_test): Likewise.
--

This is a port of the fix for the Libgcrypt code in GRUB:
  http://bzr.savannah.gnu.org/lh/grub/trunk/grub/revision/3685
GRUB is FSF copyrighted and thus we can use this code without a DCO.

Note that the above fix was not correct and failed the selftests, thus
I fixed this fix.

GnuPG-bug-id: 1384
Signed-off-by: Werner Koch <wk@gnupg.org>
AUTHORS
cipher/serpent.c