hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/arm/crypto/sha512-core.S_shipped
....@@ -12,7 +12,7 @@
1212 @ Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
1313 @ project. The module is, however, dual licensed under OpenSSL and
1414 @ CRYPTOGAMS licenses depending on where you obtain it. For further
15
-@ details see http://www.openssl.org/~appro/cryptogams/.
15
+@ details see https://www.openssl.org/~appro/cryptogams/.
1616 @ ====================================================================
1717
1818 @ SHA512 block procedure for ARMv4. September 2007.
....@@ -42,7 +42,7 @@
4242 @ terms it's 22.6 cycles per byte, which is disappointing result.
4343 @ Technical writers asserted that 3-way S4 pipeline can sustain
4444 @ multiple NEON instructions per cycle, but dual NEON issue could
45
-@ not be observed, see http://www.openssl.org/~appro/Snapdragon-S4.html
45
+@ not be observed, see https://www.openssl.org/~appro/Snapdragon-S4.html
4646 @ for further details. On side note Cortex-A15 processes one byte in
4747 @ 16 cycles.
4848
....@@ -79,7 +79,6 @@
7979 #else
8080 .syntax unified
8181 # ifdef __thumb2__
82
-# define adrl adr
8382 .thumb
8483 # else
8584 .code 32
....@@ -543,7 +542,8 @@
543542 dmb @ errata #451034 on early Cortex A8
544543 add r2,r1,r2,lsl#7 @ len to point at the end of inp
545544 VFP_ABI_PUSH
546
- adrl r3,K512
545
+ adr r3,.Lsha512_block_data_order
546
+ sub r3,r3,.Lsha512_block_data_order-K512
547547 vldmia r0,{d16-d23} @ load context
548548 .Loop_neon:
549549 vshr.u64 d24,d20,#14 @ 0