Fix unaligned accesses with ldm/stm in ChaCha20 and Poly1305 ARM/NEON
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 7 Jul 2016 22:22:58 +0000 (01:22 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 7 Jul 2016 22:22:58 +0000 (01:22 +0300)
commit1111d311fd6452abd4080d1072c75ddb1b5a3dd1
tree71a04fe6464bfa65c8a1136f5c9522cbecb7c22d
parent496790940753226f96b731a43d950bd268acd97a
Fix unaligned accesses with ldm/stm in ChaCha20 and Poly1305 ARM/NEON

* cipher/chacha20-armv7-neon.S (UNALIGNED_STMIA8)
(UNALIGNED_LDMIA4): New.
(_gcry_chacha20_armv7_neon_blocks): Use new helper macros instead of
ldm/stm instructions directly.
* cipher/poly1305-armv7-neon.S (UNALIGNED_LDMIA2)
(UNALIGNED_LDMIA4): New.
(_gcry_poly1305_armv7_neon_init_ext, _gcry_poly1305_armv7_neon_blocks)
(_gcry_poly1305_armv7_neon_finish_ext): Use new helper macros instead
of ldm instruction directly.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
cipher/chacha20-armv7-neon.S
cipher/poly1305-armv7-neon.S