OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions | Variables
des_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/des.h>
#include "spr.h"
#include "des_enc.c"

Go to the source code of this file.

Macros

#define TIMES
 
#define DES_DEFAULT_OPTIONS
 
#define PART1
 
#define PART2
 
#define PART3
 
#define PART4
 
#define DES_encrypt1   des_encrypt_u4_cisc_idx
 
#define DES_encrypt2   des_encrypt2_u4_cisc_idx
 
#define DES_encrypt3   des_encrypt3_u4_cisc_idx
 
#define DES_decrypt3   des_decrypt3_u4_cisc_idx
 
#define DES_UNROLL
 
#define DES_encrypt1   des_encrypt_u16_cisc_idx
 
#define DES_encrypt2   des_encrypt2_u16_cisc_idx
 
#define DES_encrypt3   des_encrypt3_u16_cisc_idx
 
#define DES_decrypt3   des_decrypt3_u16_cisc_idx
 
#define DES_RISC1
 
#define DES_encrypt1   des_encrypt_u4_risc1_idx
 
#define DES_encrypt2   des_encrypt2_u4_risc1_idx
 
#define DES_encrypt3   des_encrypt3_u4_risc1_idx
 
#define DES_decrypt3   des_decrypt3_u4_risc1_idx
 
#define DES_RISC2
 
#define DES_encrypt1   des_encrypt_u4_risc2_idx
 
#define DES_encrypt2   des_encrypt2_u4_risc2_idx
 
#define DES_encrypt3   des_encrypt3_u4_risc2_idx
 
#define DES_decrypt3   des_decrypt3_u4_risc2_idx
 
#define DES_UNROLL
 
#define DES_RISC1
 
#define DES_encrypt1   des_encrypt_u16_risc1_idx
 
#define DES_encrypt2   des_encrypt2_u16_risc1_idx
 
#define DES_encrypt3   des_encrypt3_u16_risc1_idx
 
#define DES_decrypt3   des_decrypt3_u16_risc1_idx
 
#define DES_UNROLL
 
#define DES_RISC2
 
#define DES_encrypt1   des_encrypt_u16_risc2_idx
 
#define DES_encrypt2   des_encrypt2_u16_risc2_idx
 
#define DES_encrypt3   des_encrypt3_u16_risc2_idx
 
#define DES_decrypt3   des_decrypt3_u16_risc2_idx
 
#define DES_PTR
 
#define DES_encrypt1   des_encrypt_u4_cisc_ptr
 
#define DES_encrypt2   des_encrypt2_u4_cisc_ptr
 
#define DES_encrypt3   des_encrypt3_u4_cisc_ptr
 
#define DES_decrypt3   des_decrypt3_u4_cisc_ptr
 
#define DES_UNROLL
 
#define DES_PTR
 
#define DES_encrypt1   des_encrypt_u16_cisc_ptr
 
#define DES_encrypt2   des_encrypt2_u16_cisc_ptr
 
#define DES_encrypt3   des_encrypt3_u16_cisc_ptr
 
#define DES_decrypt3   des_decrypt3_u16_cisc_ptr
 
#define DES_RISC1
 
#define DES_PTR
 
#define DES_encrypt1   des_encrypt_u4_risc1_ptr
 
#define DES_encrypt2   des_encrypt2_u4_risc1_ptr
 
#define DES_encrypt3   des_encrypt3_u4_risc1_ptr
 
#define DES_decrypt3   des_decrypt3_u4_risc1_ptr
 
#define DES_RISC2
 
#define DES_PTR
 
#define DES_encrypt1   des_encrypt_u4_risc2_ptr
 
#define DES_encrypt2   des_encrypt2_u4_risc2_ptr
 
#define DES_encrypt3   des_encrypt3_u4_risc2_ptr
 
#define DES_decrypt3   des_decrypt3_u4_risc2_ptr
 
#define DES_UNROLL
 
#define DES_RISC1
 
#define DES_PTR
 
#define DES_encrypt1   des_encrypt_u16_risc1_ptr
 
#define DES_encrypt2   des_encrypt2_u16_risc1_ptr
 
#define DES_encrypt3   des_encrypt3_u16_risc1_ptr
 
#define DES_decrypt3   des_decrypt3_u16_risc1_ptr
 
#define DES_UNROLL
 
#define DES_RISC2
 
#define DES_PTR
 
#define DES_encrypt1   des_encrypt_u16_risc2_ptr
 
#define DES_encrypt2   des_encrypt2_u16_risc2_ptr
 
#define DES_encrypt3   des_encrypt3_u16_risc2_ptr
 
#define DES_decrypt3   des_decrypt3_u16_risc2_ptr
 
#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 BUFSIZE   ((long)1024)

Definition at line 335 of file des_opts.c.

#define COND (   d)    (count != (d))
#define COUNT (   d)    (d)
#define DES_decrypt3   des_decrypt3_u4_cisc_idx

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u16_cisc_idx

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u4_risc1_idx

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u4_risc2_idx

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u16_risc1_idx

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u16_risc2_idx

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u4_cisc_ptr

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u16_cisc_ptr

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u4_risc1_ptr

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u4_risc2_ptr

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u16_risc1_ptr

Definition at line 316 of file des_opts.c.

#define DES_decrypt3   des_decrypt3_u16_risc2_ptr

Definition at line 316 of file des_opts.c.

#define DES_DEFAULT_OPTIONS

Definition at line 109 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u4_cisc_idx

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u16_cisc_idx

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u4_risc1_idx

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u4_risc2_idx

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u16_risc1_idx

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u16_risc2_idx

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u4_cisc_ptr

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u16_cisc_ptr

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u4_risc1_ptr

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u4_risc2_ptr

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u16_risc1_ptr

Definition at line 313 of file des_opts.c.

#define DES_encrypt1   des_encrypt_u16_risc2_ptr

Definition at line 313 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u4_cisc_idx

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u16_cisc_idx

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u4_risc1_idx

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u4_risc2_idx

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u16_risc1_idx

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u16_risc2_idx

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u4_cisc_ptr

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u16_cisc_ptr

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u4_risc1_ptr

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u4_risc2_ptr

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u16_risc1_ptr

Definition at line 314 of file des_opts.c.

#define DES_encrypt2   des_encrypt2_u16_risc2_ptr

Definition at line 314 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u4_cisc_idx

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u16_cisc_idx

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u4_risc1_idx

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u4_risc2_idx

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u16_risc1_idx

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u16_risc2_idx

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u4_cisc_ptr

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u16_cisc_ptr

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u4_risc1_ptr

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u4_risc2_ptr

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u16_risc1_ptr

Definition at line 315 of file des_opts.c.

#define DES_encrypt3   des_encrypt3_u16_risc2_ptr

Definition at line 315 of file des_opts.c.

#define DES_PTR

Definition at line 307 of file des_opts.c.

#define DES_PTR

Definition at line 307 of file des_opts.c.

#define DES_PTR

Definition at line 307 of file des_opts.c.

#define DES_PTR

Definition at line 307 of file des_opts.c.

#define DES_PTR

Definition at line 307 of file des_opts.c.

#define DES_PTR

Definition at line 307 of file des_opts.c.

#define DES_RISC1

Definition at line 289 of file des_opts.c.

#define DES_RISC1

Definition at line 289 of file des_opts.c.

#define DES_RISC1

Definition at line 289 of file des_opts.c.

#define DES_RISC1

Definition at line 289 of file des_opts.c.

#define DES_RISC2

Definition at line 306 of file des_opts.c.

#define DES_RISC2

Definition at line 306 of file des_opts.c.

#define DES_RISC2

Definition at line 306 of file des_opts.c.

#define DES_RISC2

Definition at line 306 of file des_opts.c.

#define DES_UNROLL

Definition at line 304 of file des_opts.c.

#define DES_UNROLL

Definition at line 304 of file des_opts.c.

#define DES_UNROLL

Definition at line 304 of file des_opts.c.

#define DES_UNROLL

Definition at line 304 of file des_opts.c.

#define DES_UNROLL

Definition at line 304 of file des_opts.c.

#define DES_UNROLL

Definition at line 304 of file des_opts.c.

#define HZ   100.0

Definition at line 326 of file des_opts.c.

#define PART1

Definition at line 112 of file des_opts.c.

#define PART2

Definition at line 113 of file des_opts.c.

#define PART3

Definition at line 114 of file des_opts.c.

#define PART4

Definition at line 115 of file des_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 414 of file des_opts.c.

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

Definition at line 399 of file des_opts.c.

#define START   0

Definition at line 357 of file des_opts.c.

#define STOP   1

Definition at line 358 of file des_opts.c.

#define time_it (   func,
  name,
  index 
)
Value:
print_name(name); \
Time_F(START); \
for (count=0,run=1; COND(cb); count++) \
{ \
unsigned long d[2]; \
func(d,&sch,DES_ENCRYPT); \
} \
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 402 of file des_opts.c.

#define TIMES

Definition at line 63 of file des_opts.c.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 418 of file des_opts.c.

double Time_F ( int  s)

Variable Documentation

long run =0

Definition at line 336 of file des_opts.c.