OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
bf_opts.c File Reference
#include <stdio.h>
#include <openssl/e_os2.h>
#include <signal.h>
#include <time.h>
#include <sys/types.h>
#include <sys/times.h>
#include <openssl/blowfish.h>
#include "bf_enc.c"

Go to the source code of this file.

Macros

#define TIMES
 
#define BF_DEFAULT_OPTIONS
 
#define BF_encrypt   BF_encrypt_normal
 
#define BF_PTR
 
#define BF_encrypt   BF_encrypt_ptr
 
#define BF_PTR2
 
#define BF_encrypt   BF_encrypt_ptr2
 
#define HZ   100.0
 
#define BUFSIZE   ((long)1024)
 
#define START   0
 
#define STOP   1
 
#define print_name(name)   fprintf(stderr,"Doing %s %ld times\n",name,cb);
 
#define time_it(func, name, index)
 
#define print_it(name, index)
 
#define COND(d)   (count != (d))
 
#define COUNT(d)   (d)
 

Functions

double Time_F (int s)
 
int main (int argc, char **argv)
 

Variables

long run =0
 

Macro Definition Documentation

#define BF_DEFAULT_OPTIONS

Definition at line 104 of file bf_opts.c.

#define BF_encrypt   BF_encrypt_normal

Definition at line 123 of file bf_opts.c.

#define BF_encrypt   BF_encrypt_ptr

Definition at line 123 of file bf_opts.c.

#define BF_encrypt   BF_encrypt_ptr2

Definition at line 123 of file bf_opts.c.

#define BF_PTR

Definition at line 111 of file bf_opts.c.

#define BF_PTR2

Definition at line 120 of file bf_opts.c.

#define BUFSIZE   ((long)1024)

Definition at line 140 of file bf_opts.c.

#define COND (   d)    (count != (d))
#define COUNT (   d)    (d)
#define HZ   100.0

Definition at line 131 of file bf_opts.c.

#define print_it (   name,
  index 
)
Value:
fprintf(stderr,"%s bytes per sec = %12.2f (%5.1fuS)\n",name, \
tm[index]*8,1.0e6/tm[index]);

Definition at line 222 of file bf_opts.c.

#define print_name (   name)    fprintf(stderr,"Doing %s %ld times\n",name,cb);

Definition at line 204 of file bf_opts.c.

#define START   0

Definition at line 162 of file bf_opts.c.

#define STOP   1

Definition at line 163 of file bf_opts.c.

#define time_it (   func,
  name,
  index 
)
Value:
print_name(name); \
Time_F(START); \
for (count=0,run=1; COND(cb); count+=4) \
{ \
unsigned long d[2]; \
func(d,&sch); \
func(d,&sch); \
func(d,&sch); \
func(d,&sch); \
} \
tm[index]=Time_F(STOP); \
fprintf(stderr,"%ld %s's in %.2f second\n",count,name,tm[index]); \
tm[index]=((double)COUNT(cb))/tm[index];

Definition at line 207 of file bf_opts.c.

#define TIMES

Definition at line 63 of file bf_opts.c.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 226 of file bf_opts.c.

double Time_F ( int  s)

Definition at line 165 of file bf_opts.c.

Variable Documentation

long run =0

Definition at line 141 of file bf_opts.c.