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 | |
| 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')
| -rw-r--r-- | src/lib/libcrypto/sha/Makefile.ssl | 3 | ||||
| -rw-r--r-- | src/lib/libcrypto/sha/asm/sha1-586.pl | 12 |
2 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/libcrypto/sha/Makefile.ssl b/src/lib/libcrypto/sha/Makefile.ssl index 72acd8f046..790e572fa2 100644 --- a/src/lib/libcrypto/sha/Makefile.ssl +++ b/src/lib/libcrypto/sha/Makefile.ssl | |||
| @@ -42,7 +42,8 @@ all: lib | |||
| 42 | 42 | ||
| 43 | lib: $(LIBOBJ) | 43 | lib: $(LIBOBJ) |
| 44 | $(AR) $(LIB) $(LIBOBJ) | 44 | $(AR) $(LIB) $(LIBOBJ) |
| 45 | $(RANLIB) $(LIB) | 45 | @echo You may get an error following this line. Please ignore. |
| 46 | - $(RANLIB) $(LIB) | ||
| 46 | @touch lib | 47 | @touch lib |
| 47 | 48 | ||
| 48 | # elf | 49 | # elf |
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 | ||
