diff options
author | markus <> | 2002-09-05 12:51:52 +0000 |
---|---|---|
committer | markus <> | 2002-09-05 12:51:52 +0000 |
commit | 5514995a9d5ed91db089875adb509c7781357c0e (patch) | |
tree | 2484410a46ba6c05ef94c253da36fbceef990b64 /src/lib/libcrypto/ripemd/asm/rips.cpp | |
parent | fd9566423b542798f5c8b06e68101a9ea5bb9885 (diff) | |
download | openbsd-5514995a9d5ed91db089875adb509c7781357c0e.tar.gz openbsd-5514995a9d5ed91db089875adb509c7781357c0e.tar.bz2 openbsd-5514995a9d5ed91db089875adb509c7781357c0e.zip |
import openssl-0.9.7-beta1
Diffstat (limited to 'src/lib/libcrypto/ripemd/asm/rips.cpp')
-rw-r--r-- | src/lib/libcrypto/ripemd/asm/rips.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ripemd/asm/rips.cpp b/src/lib/libcrypto/ripemd/asm/rips.cpp index 78a933c448..f7a13677a9 100644 --- a/src/lib/libcrypto/ripemd/asm/rips.cpp +++ b/src/lib/libcrypto/ripemd/asm/rips.cpp | |||
@@ -32,7 +32,9 @@ void GetTSC(unsigned long& tsc) | |||
32 | 32 | ||
33 | #include <stdio.h> | 33 | #include <stdio.h> |
34 | #include <stdlib.h> | 34 | #include <stdlib.h> |
35 | #include "ripemd.h" | 35 | #include <openssl/ripemd.h> |
36 | |||
37 | #define ripemd160_block_x86 ripemd160_block_asm_host_order | ||
36 | 38 | ||
37 | extern "C" { | 39 | extern "C" { |
38 | void ripemd160_block_x86(RIPEMD160_CTX *ctx, unsigned char *buffer,int num); | 40 | void ripemd160_block_x86(RIPEMD160_CTX *ctx, unsigned char *buffer,int num); |
@@ -55,8 +57,10 @@ void main(int argc,char *argv[]) | |||
55 | if (num == 0) num=16; | 57 | if (num == 0) num=16; |
56 | if (num > 250) num=16; | 58 | if (num > 250) num=16; |
57 | numm=num+2; | 59 | numm=num+2; |
60 | #if 0 | ||
58 | num*=64; | 61 | num*=64; |
59 | numm*=64; | 62 | numm*=64; |
63 | #endif | ||
60 | 64 | ||
61 | for (j=0; j<6; j++) | 65 | for (j=0; j<6; j++) |
62 | { | 66 | { |
@@ -71,7 +75,7 @@ void main(int argc,char *argv[]) | |||
71 | GetTSC(e2); | 75 | GetTSC(e2); |
72 | ripemd160_block_x86(&ctx,buffer,num); | 76 | ripemd160_block_x86(&ctx,buffer,num); |
73 | } | 77 | } |
74 | printf("ripemd160 (%d bytes) %d %d (%.2f)\n",num, | 78 | printf("ripemd160 (%d bytes) %d %d (%.2f)\n",num*64, |
75 | e1-s1,e2-s2,(double)((e1-s1)-(e2-s2))/2); | 79 | e1-s1,e2-s2,(double)((e1-s1)-(e2-s2))/2); |
76 | } | 80 | } |
77 | } | 81 | } |