From 6cc9c81fa5fa60059fbcbed8f7d49ed63ec10c4d Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 17 May 2019 23:45:23 -0400 Subject: [PATCH 1/2] Use test_arm_sha1.cxx for feature tests --- Filelist.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Filelist.txt b/Filelist.txt index 678772ac..56f3c37a 100644 --- a/Filelist.txt +++ b/Filelist.txt @@ -572,9 +572,10 @@ TestPrograms/test_arm_asimd.cxx TestPrograms/test_arm_crc.cxx TestPrograms/test_arm_neon.cxx TestPrograms/test_arm_pmull.cxx -TestPrograms/test_arm_sha.cxx -TestPrograms/test_arm_sha3.cxx +TestPrograms/test_arm_sha1.cxx +TestPrograms/test_arm_sha256.cxx TestPrograms/test_arm_sha512.cxx +TestPrograms/test_arm_sha3.cxx TestPrograms/test_arm_sm3.cxx TestPrograms/test_arm_sm4.cxx TestPrograms/test_cxx.cxx From 4a21619bff1b1690a97789b76fd70cbb226f7b87 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 18 May 2019 06:49:51 -0400 Subject: [PATCH 2/2] Regenerate Cryptogams AES assembly file > It does not look like much has changed in the last year. --- aes_armv4.S | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/aes_armv4.S b/aes_armv4.S index fb4ec468..e2f85ba1 100644 --- a/aes_armv4.S +++ b/aes_armv4.S @@ -7,31 +7,6 @@ @ details see http://www.openssl.org/~appro/cryptogams/. @ ==================================================================== -@ AES for ARMv4 - -@ January 2007. -@ -@ Code uses single 1K S-box and is >2 times faster than code generated -@ by gcc-3.4.1. This is thanks to unique feature of ARMv4 ISA, which -@ allows to merge logical or arithmetic operation with shift or rotate -@ in one instruction and emit combined result every cycle. The module -@ is endian-neutral. The performance is ~42 cycles/byte for 128-bit -@ key [on single-issue Xscale PXA250 core]. - -@ May 2007. -@ -@ AES_set_[en|de]crypt_key is added. - -@ July 2010. -@ -@ Rescheduling for dual-issue pipeline resulted in 12% improvement on -@ Cortex A8 core and ~25 cycles per byte processed with 128-bit key. - -@ February 2011. -@ -@ Profiler-assisted and platform-specific optimization resulted in 16% -@ improvement on Cortex A8 core and ~21.5 cycles per byte. - @ JW, JUL 2018: Begin defines from taken from arm_arch.h @ The defines were included through the header. @@ -92,7 +67,6 @@ @ JW, JUL 2018: End defines from taken from arm_arch.h @ Back to original Cryptogams code -.text #if defined(__thumb2__) && !defined(__APPLE__) .syntax unified .thumb @@ -101,6 +75,8 @@ #undef __thumb2__ #endif +.text + .type AES_Te,%object .align 5 AES_Te: