From b5e5760d0173215c73dcb64e0e1b8e73df4273f4 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 18 Sep 2007 21:12:02 +0000 Subject: [PATCH] Minor formatting fixes in crypto/sha/asm. --- crypto/sha/asm/sha256-586.pl | 8 ++++---- crypto/sha/asm/sha512-armv4.pl | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crypto/sha/asm/sha256-586.pl b/crypto/sha/asm/sha256-586.pl index 4cc1576b89..387ccb0eb7 100644 --- a/crypto/sha/asm/sha256-586.pl +++ b/crypto/sha/asm/sha256-586.pl @@ -45,17 +45,17 @@ $Xoff=&DWP(32,"esp"); $K256="ebp"; sub BODY_00_15() { - my $in_16_64=shift; + my $in_16_63=shift; &mov ("ecx",$E); - &add ($T,&DWP(4*(8+15+16-9),"esp")) if ($in_16_64); # T += X[-7] + &add ($T,&DWP(4*(8+15+16-9),"esp")) if ($in_16_63); # T += X[-7] &ror ("ecx",6); &mov ("edi",$E); &ror ("edi",11); &mov ("esi",$Foff); &xor ("ecx","edi"); &ror ("edi",25-11); - &mov (&DWP(4*(8+15),"esp"),$T) if ($in_16_64); # save X[0] + &mov (&DWP(4*(8+15),"esp"),$T) if ($in_16_63); # save X[0] &xor ("ecx","edi"); # Sigma1(e) &mov ("edi",$Goff); &add ($T,"ecx"); # T += Sigma1(e) @@ -92,7 +92,7 @@ sub BODY_00_15() { &add ($K256,4); &add ($A,$T); # h += T - &mov ($T,&DWP(4*(8+15+16-1),"esp")) if ($in_16_64); # preload T + &mov ($T,&DWP(4*(8+15+16-1),"esp")) if ($in_16_63); # preload T &add ($E,"esi"); # d += K256[i] &add ($A,"esi"); # h += K256[i] } diff --git a/crypto/sha/asm/sha512-armv4.pl b/crypto/sha/asm/sha512-armv4.pl index 0d2ef8b1f4..7e7a726b17 100644 --- a/crypto/sha/asm/sha512-armv4.pl +++ b/crypto/sha/asm/sha512-armv4.pl @@ -104,7 +104,7 @@ $code.=<<___; orreq $Ktbl,$Ktbl,#1 ldr $t2,[sp,#$Boff+0] @ b.lo - ldr $t3,[sp,#$Coff+0] @ c.lo + ldr $t3,[sp,#$Coff+0] @ c.lo @ Sigma0(x) (ROTR((x),28) ^ ROTR((x),34) ^ ROTR((x),39)) @ LO lo>>28^hi<<4 ^ hi>>2^lo<<30 ^ hi>>7^lo<<25 @ HI hi>>28^lo<<4 ^ lo>>2^hi<<30 ^ lo>>7^hi<<25 -- 2.25.1