diff options
author | beck <> | 2000-03-19 11:13:58 +0000 |
---|---|---|
committer | beck <> | 2000-03-19 11:13:58 +0000 |
commit | 796d609550df3a33fc11468741c5d2f6d3df4c11 (patch) | |
tree | 6c6d539061caa20372dad0ac4ddb1dfae2fbe7fe /src/lib/libcrypto/ripemd/asm/rips.cpp | |
parent | 5be3114c1fd7e0dfea1e38d3abb4cbba75244419 (diff) | |
download | openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.gz openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.bz2 openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.zip |
OpenSSL 0.9.5 merge
*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2
if you are using the ssl26 packages for ssh and other things to work you will
need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
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 | } |