On OpenBSD/armv7 we deliberately trap unaligned access. Unfortunately
authorkettenis <kettenis@openbsd.org>
Sun, 7 Jan 2018 12:35:52 +0000 (12:35 +0000)
committerkettenis <kettenis@openbsd.org>
Sun, 7 Jan 2018 12:35:52 +0000 (12:35 +0000)
commit404fe9f236d7a657e87bf80c27852df3619bb656
treea3dbf884ba8f9153befbb069316ec885d15f4344
parent05f0db765717bdee863524158cc279958f52b931
On OpenBSD/armv7 we deliberately trap unaligned access.  Unfortunately
the assembly code in libcrypto assumes unaligned access is allowed for
ARMv7.  Make these paths conditional on __STRICT_ALIGNMENT not being
defined and define __STRICT_ALIGNMENT in arm_arch.h for OpenBSD.

ok tom@
lib/libcrypto/aes/asm/aes-armv4.pl
lib/libcrypto/arm_arch.h
lib/libcrypto/sha/asm/sha1-armv4-large.pl
lib/libcrypto/sha/asm/sha256-armv4.pl
lib/libcrypto/sha/asm/sha512-armv4.pl