CVSROOT: /cvs Module name: src Changes by: js...@cvs.openbsd.org 2025/05/24 01:07:18
Modified files: lib/libcrypto/arch/arm: Makefile.inc crypto_arch.h Removed files: lib/libcrypto/arch/arm: arm_arch.h armcap.c armv4cpuid.S Log message: Disable libcrypto assembly on arm. The arm CPU capability detection is uses SIGILL and is unsafe to call from some contexts. Furthermore, this is only useful to detect NEON support, which is then unused on OpenBSD due to __STRICT_ALIGNMENT. Requiring a minimum of ARMv7+VFP+NEON is also not unreasonable. The SHA-1, SHA-256 and SHA-512 (non-NEON) C code performs within ~5% of the assembly, as does RSA when using the C based Montgomery multiplication. The C versions of AES and GHASH code are around ~40-50% of the assembly, howeer if you care about performance you really want to use Chacha20Poly1305 on this platform. This will enable further clean up to proceed. ok joshua@ kinjiro@ tb@