Latest update
This commit is contained in:
@@ -113,8 +113,6 @@ my @T = map([ 8*$_, 8*($_+1), 8*($_+2), 8*($_+3), 8*($_+4) ], (30,35,40,45,50));
|
||||
$code.=<<___;
|
||||
#include "arm_arch.h"
|
||||
|
||||
.text
|
||||
|
||||
#if defined(__thumb2__)
|
||||
.syntax unified
|
||||
.thumb
|
||||
@@ -122,6 +120,8 @@ $code.=<<___;
|
||||
.code 32
|
||||
#endif
|
||||
|
||||
.text
|
||||
|
||||
.type iotas32, %object
|
||||
.align 5
|
||||
iotas32:
|
||||
@@ -691,7 +691,14 @@ ___
|
||||
$code.=<<___;
|
||||
blo .Lround2x
|
||||
|
||||
#if __ARM_ARCH__>=5
|
||||
ldr pc,[sp,#440]
|
||||
#else
|
||||
ldr lr,[sp,#440]
|
||||
tst lr,#1
|
||||
moveq pc,lr @ be binary compatible with V4, yet
|
||||
bx lr @ interoperable with Thumb ISA:-)
|
||||
#endif
|
||||
.size KeccakF1600_int,.-KeccakF1600_int
|
||||
|
||||
.type KeccakF1600, %function
|
||||
@@ -730,7 +737,14 @@ KeccakF1600:
|
||||
stmia @E[1], {@C[0]-@C[9]}
|
||||
|
||||
add sp,sp,#440+20
|
||||
#if __ARM_ARCH__>=5
|
||||
ldmia sp!,{r4-r11,pc}
|
||||
#else
|
||||
ldmia sp!,{r4-r11,lr}
|
||||
tst lr,#1
|
||||
moveq pc,lr @ be binary compatible with V4, yet
|
||||
bx lr @ interoperable with Thumb ISA:-)
|
||||
#endif
|
||||
.size KeccakF1600,.-KeccakF1600
|
||||
___
|
||||
{ my ($A_flat,$inp,$len,$bsz) = map("r$_",(10..12,14));
|
||||
@@ -905,7 +919,14 @@ SHA3_absorb:
|
||||
.Labsorb_abort:
|
||||
add sp,sp,#456+32
|
||||
mov r0,$len @ return value
|
||||
#if __ARM_ARCH__>=5
|
||||
ldmia sp!,{r4-r12,pc}
|
||||
#else
|
||||
ldmia sp!,{r4-r12,lr}
|
||||
tst lr,#1
|
||||
moveq pc,lr @ be binary compatible with V4, yet
|
||||
bx lr @ interoperable with Thumb ISA:-)
|
||||
#endif
|
||||
.size SHA3_absorb,.-SHA3_absorb
|
||||
___
|
||||
}
|
||||
@@ -1055,7 +1076,14 @@ SHA3_squeeze:
|
||||
.align 4
|
||||
.Lsqueeze_done:
|
||||
add sp,sp,#24
|
||||
#if __ARM_ARCH__>=5
|
||||
ldmia sp!,{r4-r10,pc}
|
||||
#else
|
||||
ldmia sp!,{r4-r10,lr}
|
||||
tst lr,#1
|
||||
moveq pc,lr @ be binary compatible with V4, yet
|
||||
bx lr @ interoperable with Thumb ISA:-)
|
||||
#endif
|
||||
.size SHA3_squeeze,.-SHA3_squeeze
|
||||
___
|
||||
}
|
||||
@@ -1265,7 +1293,7 @@ KeccakF1600_neon:
|
||||
subs r3, r3, #1
|
||||
bne .Loop_neon
|
||||
|
||||
bx lr
|
||||
ret
|
||||
.size KeccakF1600_neon,.-KeccakF1600_neon
|
||||
|
||||
.global SHA3_absorb_neon
|
||||
|
||||
Reference in New Issue
Block a user