sha1_block_asm_data_order can't hash if message crosses 2GB boundary.
authorAndy Polyakov <appro@openssl.org>
Thu, 2 Dec 2004 17:05:38 +0000 (17:05 +0000)
committerAndy Polyakov <appro@openssl.org>
Thu, 2 Dec 2004 17:05:38 +0000 (17:05 +0000)
[back-port from HEAD branch]

crypto/sha/asm/sha1-586.pl
fips/sha1/asm/sx86-elf.s
fips/sha1/fingerprint.sha1
fips/sha1/standalone.sha1

index e00f70955384071e6c7b7de35976ae0bdacda764..041acc03486c563d35da760c2d1e442b6ef63e93 100644 (file)
@@ -405,7 +405,7 @@ sub sha1_block_data
        &mov(&DWP(16,$tmp1,"",0),$E);
         &cmp("esi","eax");
        &mov(&DWP( 4,$tmp1,"",0),$B);
-        &jl(&label("start"));
+        &jb(&label("start"));
 
        &stack_pop(18+9);
         &pop("edi");
index 2cdd009a24764a0616e889aca5df151c16e89b58..a9799688a99913409442536ae564d295dff2b48c 100644 (file)
@@ -1500,7 +1500,7 @@ sha1_block_asm_data_order:
        movl    %edi,           16(%ebp)
        cmpl    %eax,           %esi
        movl    %ecx,           4(%ebp)
-       jl      .L000start
+       jb      .L000start
        addl    $108,           %esp
        popl    %edi
        popl    %ebx
index e8593f2ef842bd710bae8e597da3b7473dfd371e..2f2d0896c0ae22b586242f19c18bc3b2276da116 100644 (file)
@@ -1,5 +1,5 @@
 HMAC-SHA1(fips_sha1dgst.c)= 10575600a9540eb15188a7d3b0b031e60aedbc18
 HMAC-SHA1(fips_sha1_selftest.c)= 98910a0c85eff1688bd7adb23e738dc75b39546e
-HMAC-SHA1(asm/sx86-elf.s)= 6286cba0ea3b071e67ab5c1e607d1387de6a871d
+HMAC-SHA1(asm/sx86-elf.s)= cb91f86229e31e8093174604a3191321b23aac33
 HMAC-SHA1(fips_sha_locl.h)= 4a83a6c5181483244e0f44a902225425835f54bc
 HMAC-SHA1(fips_md32_common.h)= 1c7e761db430067391b1b7b86da5d2bf6df92834
index 054987516f0e413148c60f7528e7084df3b9c7a9..075b150b939c5920449a33f87c114f6ed8c6000e 100644 (file)
@@ -1,6 +1,6 @@
 HMAC-SHA1(fips_sha1dgst.c)= 10575600a9540eb15188a7d3b0b031e60aedbc18
 HMAC-SHA1(fips_sha1_selftest.c)= 98910a0c85eff1688bd7adb23e738dc75b39546e
-HMAC-SHA1(asm/sx86-elf.s)= 6286cba0ea3b071e67ab5c1e607d1387de6a871d
+HMAC-SHA1(asm/sx86-elf.s)= cb91f86229e31e8093174604a3191321b23aac33
 HMAC-SHA1(fips_standalone_sha1.c)= 93203c569097189b47a0085bc9fc55193867d4ce
 HMAC-SHA1(fips_sha_locl.h)= 4a83a6c5181483244e0f44a902225425835f54bc
 HMAC-SHA1(fips_md32_common.h)= 1c7e761db430067391b1b7b86da5d2bf6df92834