X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fsha%2Fsha1s.cpp;h=af23d1e0f21857f1f9d1cf83cb50438d4f69cf8d;hp=3103e1871bbed91ad2e9f04099d236ef321c6a50;hb=7f7c318cfc4899cf1e9e249e5b0e34497ef1becc;hpb=aef838fc957afefc4d49a360f1ab77b14595f27c diff --git a/crypto/sha/sha1s.cpp b/crypto/sha/sha1s.cpp index 3103e1871b..af23d1e0f2 100644 --- a/crypto/sha/sha1s.cpp +++ b/crypto/sha/sha1s.cpp @@ -34,6 +34,7 @@ void GetTSC(unsigned long& tsc) #include #include +#define sha1_block_x86 sha1_block_asm_data_order extern "C" { void sha1_block_x86(SHA_CTX *ctx, unsigned char *buffer,int num); } @@ -55,8 +56,10 @@ void main(int argc,char *argv[]) if (num == 0) num=16; if (num > 250) num=16; numm=num+2; +#if 0 num*=64; numm*=64; +#endif for (j=0; j<6; j++) { @@ -72,7 +75,7 @@ void main(int argc,char *argv[]) sha1_block_x86(&ctx,buffer,num); } - printf("sha1 (%d bytes) %d %d (%.2f)\n",num, + printf("sha1 (%d bytes) %d %d (%.2f)\n",num*64, e1-s1,e2-s2,(double)((e1-s1)-(e2-s2))/2); } }