diff options
Diffstat (limited to 'src/lib/libcrypto/ripemd/asm/rips.cpp')
-rw-r--r-- | src/lib/libcrypto/ripemd/asm/rips.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ripemd/asm/rips.cpp b/src/lib/libcrypto/ripemd/asm/rips.cpp index 321a98443e..f7a13677a9 100644 --- a/src/lib/libcrypto/ripemd/asm/rips.cpp +++ b/src/lib/libcrypto/ripemd/asm/rips.cpp | |||
@@ -34,6 +34,8 @@ void GetTSC(unsigned long& tsc) | |||
34 | #include <stdlib.h> | 34 | #include <stdlib.h> |
35 | #include <openssl/ripemd.h> | 35 | #include <openssl/ripemd.h> |
36 | 36 | ||
37 | #define ripemd160_block_x86 ripemd160_block_asm_host_order | ||
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); |
39 | } | 41 | } |
@@ -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 | } |