X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=apps%2Fspeed.c;h=619269bc694644e1259486a6347cf45c8124cdad;hb=992bba11d53985c8d4cbcb5dd95034dbe92d3671;hp=36e885a594fcc99f2f0a7b944ae5d02adda41fe3;hpb=7e965dcc3812ac6ec4d1413c5ea3224be6486c8f;p=oweals%2Fopenssl.git diff --git a/apps/speed.c b/apps/speed.c index 36e885a594..619269bc69 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -228,7 +228,7 @@ static int do_multi(int multi); #define ALGOR_NUM 30 #define SIZE_NUM 5 -#define PRIME_NUM 2 +#define PRIME_NUM 3 #define RSA_NUM 4 #define DSA_NUM 3 @@ -246,7 +246,7 @@ static const char *names[ALGOR_NUM]={ static double results[ALGOR_NUM][SIZE_NUM]; static int lengths[SIZE_NUM]={16,64,256,1024,8*1024}; static const char *prime_names[PRIME_NUM]={ - "prime trial division", "prime coprime" }; + "prime trial division", "prime trial division retry", "prime coprime" }; #ifndef OPENSSL_NO_RSA static double rsa_results[RSA_NUM][2]; #endif @@ -501,8 +501,9 @@ int MAIN(int argc, char **argv) double d=0.0; long c[ALGOR_NUM][SIZE_NUM]; -#define D_PRIME_TRIAL_DIVISION 0 -#define D_PRIME_COPRIME 1 +#define D_PRIME_TRIAL_DIVISION 0 +#define D_PRIME_TRIAL_DIVISION_RETRY 1 +#define D_PRIME_COPRIME 2 long prime_c[PRIME_NUM]; #define R_DSA_512 0 @@ -699,6 +700,8 @@ int MAIN(int argc, char **argv) for (i=0; i