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/sha/sha1s.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/sha/sha1s.cpp')
| -rw-r--r-- | src/lib/libcrypto/sha/sha1s.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/sha/sha1s.cpp b/src/lib/libcrypto/sha/sha1s.cpp index 3103e1871b..af23d1e0f2 100644 --- a/src/lib/libcrypto/sha/sha1s.cpp +++ b/src/lib/libcrypto/sha/sha1s.cpp | |||
| @@ -34,6 +34,7 @@ void GetTSC(unsigned long& tsc) | |||
| 34 | #include <stdlib.h> | 34 | #include <stdlib.h> |
| 35 | #include <openssl/sha.h> | 35 | #include <openssl/sha.h> |
| 36 | 36 | ||
| 37 | #define sha1_block_x86 sha1_block_asm_data_order | ||
| 37 | extern "C" { | 38 | extern "C" { |
| 38 | void sha1_block_x86(SHA_CTX *ctx, unsigned char *buffer,int num); | 39 | void sha1_block_x86(SHA_CTX *ctx, unsigned char *buffer,int num); |
| 39 | } | 40 | } |
| @@ -55,8 +56,10 @@ void main(int argc,char *argv[]) | |||
| 55 | if (num == 0) num=16; | 56 | if (num == 0) num=16; |
| 56 | if (num > 250) num=16; | 57 | if (num > 250) num=16; |
| 57 | numm=num+2; | 58 | numm=num+2; |
| 59 | #if 0 | ||
| 58 | num*=64; | 60 | num*=64; |
| 59 | numm*=64; | 61 | numm*=64; |
| 62 | #endif | ||
| 60 | 63 | ||
| 61 | for (j=0; j<6; j++) | 64 | for (j=0; j<6; j++) |
| 62 | { | 65 | { |
| @@ -72,7 +75,7 @@ void main(int argc,char *argv[]) | |||
| 72 | sha1_block_x86(&ctx,buffer,num); | 75 | sha1_block_x86(&ctx,buffer,num); |
| 73 | } | 76 | } |
| 74 | 77 | ||
| 75 | printf("sha1 (%d bytes) %d %d (%.2f)\n",num, | 78 | printf("sha1 (%d bytes) %d %d (%.2f)\n",num*64, |
| 76 | e1-s1,e2-s2,(double)((e1-s1)-(e2-s2))/2); | 79 | e1-s1,e2-s2,(double)((e1-s1)-(e2-s2))/2); |
| 77 | } | 80 | } |
| 78 | } | 81 | } |
