diff options
author | beck <> | 2001-06-22 00:03:44 +0000 |
---|---|---|
committer | beck <> | 2001-06-22 00:03:44 +0000 |
commit | 38b6ff9e5294811c57541ad47940f8f8f41dc114 (patch) | |
tree | 402699541cee3cf3f2943b0384dbda7de534de70 /src/lib/libcrypto/sha/asm | |
parent | afae624d63e4e717c5bae8c7842a4712309f728f (diff) | |
download | openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.tar.gz openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.tar.bz2 openbsd-38b6ff9e5294811c57541ad47940f8f8f41dc114.zip |
openssl-engine-0.9.6a merge
Diffstat (limited to 'src/lib/libcrypto/sha/asm')
-rw-r--r-- | src/lib/libcrypto/sha/asm/sha1-586.pl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/libcrypto/sha/asm/sha1-586.pl b/src/lib/libcrypto/sha/asm/sha1-586.pl index 09df993ecd..fe51fd0794 100644 --- a/src/lib/libcrypto/sha/asm/sha1-586.pl +++ b/src/lib/libcrypto/sha/asm/sha1-586.pl | |||
@@ -317,7 +317,7 @@ sub BODY_60_79 | |||
317 | 317 | ||
318 | sub sha1_block_host | 318 | sub sha1_block_host |
319 | { | 319 | { |
320 | local($name)=@_; | 320 | local($name, $sclabel)=@_; |
321 | 321 | ||
322 | &function_begin_B($name,""); | 322 | &function_begin_B($name,""); |
323 | 323 | ||
@@ -352,7 +352,7 @@ sub sha1_block_host | |||
352 | &mov(&swtmp($i+0),$A); | 352 | &mov(&swtmp($i+0),$A); |
353 | &mov(&swtmp($i+1),$B); | 353 | &mov(&swtmp($i+1),$B); |
354 | } | 354 | } |
355 | &jmp(&label("shortcut")); | 355 | &jmp($sclabel); |
356 | &function_end_B($name); | 356 | &function_end_B($name); |
357 | } | 357 | } |
358 | 358 | ||
@@ -529,10 +529,12 @@ sub sha1_block_data | |||
529 | &pop("esi"); | 529 | &pop("esi"); |
530 | &ret(); | 530 | &ret(); |
531 | 531 | ||
532 | # it has to reside within sha1_block_asm_host_order body | 532 | # keep a note of shortcut label so it can be used outside |
533 | # because it calls &jmp(&label("shortcut")); | 533 | # block. |
534 | &sha1_block_host("sha1_block_asm_host_order"); | 534 | my $sclabel = &label("shortcut"); |
535 | 535 | ||
536 | &function_end_B($name); | 536 | &function_end_B($name); |
537 | # Putting this here avoids problems with MASM in debugging mode | ||
538 | &sha1_block_host("sha1_block_asm_host_order", $sclabel); | ||
537 | } | 539 | } |
538 | 540 | ||