OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
expspeed.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/rand.h>
#include <time.h>
#include <sys/types.h>
#include <sys/times.h>
#include <openssl/bn.h>
#include <openssl/x509.h>

Go to the source code of this file.

Macros

#define BASENUM   5000
 
#define NUM_START   0
 
#define TEST_EXP
 
#define P_MOD_64   9 /* least significant 6 bits for prime to be used for BN_sqrt timings */
 
#define PROG   bnspeed_main
 
#define TIMES
 
#define HZ   100.0
 
#define BUFSIZE   ((long)1024*8)
 
#define START   0
 
#define STOP   1
 
#define NUM_SIZES   7
 
#define RAND_SEED(string)   { const char str[] = string; RAND_seed(string, sizeof str); }
 

Functions

void do_mul_exp (BIGNUM *r, BIGNUM *a, BIGNUM *b, BIGNUM *c, BN_CTX *ctx)
 
int main (int argc, char **argv)
 

Variables

int run =0
 

Macro Definition Documentation

#define BASENUM   5000

Definition at line 63 of file expspeed.c.

#define BUFSIZE   ((long)1024*8)

Definition at line 147 of file expspeed.c.

#define HZ   100.0

Definition at line 137 of file expspeed.c.

#define NUM_SIZES   7

Definition at line 190 of file expspeed.c.

#define NUM_START   0

Definition at line 64 of file expspeed.c.

#define P_MOD_64   9 /* least significant 6 bits for prime to be used for BN_sqrt timings */

Definition at line 76 of file expspeed.c.

#define PROG   bnspeed_main

Definition at line 90 of file expspeed.c.

#define RAND_SEED (   string)    { const char str[] = string; RAND_seed(string, sizeof str); }

Definition at line 198 of file expspeed.c.

#define START   0

Definition at line 151 of file expspeed.c.

#define STOP   1

Definition at line 152 of file expspeed.c.

#define TEST_EXP

Definition at line 69 of file expspeed.c.

#define TIMES

Definition at line 101 of file expspeed.c.

Function Documentation

void do_mul_exp ( BIGNUM r,
BIGNUM a,
BIGNUM b,
BIGNUM c,
BN_CTX ctx 
)

Definition at line 226 of file expspeed.c.

int main ( int  argc,
char **  argv 
)

Definition at line 202 of file expspeed.c.

Variable Documentation

int run =0

Definition at line 148 of file expspeed.c.