Eneboo - Documentación para desarrolladores
|
#include <stdio.h>
#include <openssl/e_os2.h>
#include <signal.h>
#include <time.h>
#include <sys/types.h>
#include <sys/times.h>
#include <openssl/cast.h>
#include "c_enc.c"
'defines' | |
#define | TIMES |
#define | CAST_DEFAULT_OPTIONS |
#define | CAST_encrypt CAST_encrypt_normal |
#define | CAST_decrypt CAST_decrypt_normal |
#define | CAST_cbc_encrypt CAST_cbc_encrypt_normal |
#define | CAST_PTR |
#define | CAST_encrypt CAST_encrypt_ptr |
#define | CAST_decrypt CAST_decrypt_ptr |
#define | CAST_cbc_encrypt CAST_cbc_encrypt_ptr |
#define | CAST_PTR2 |
#define | CAST_encrypt CAST_encrypt_ptr2 |
#define | CAST_decrypt CAST_decrypt_ptr2 |
#define | CAST_cbc_encrypt CAST_cbc_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) |
Funciones | |
double | Time_F (int s) |
int | main (int argc, char **argv) |
Variables | |
long | run = 0 |
#define BUFSIZE ((long)1024) |
#define CAST_cbc_encrypt CAST_cbc_encrypt_ptr |
#define CAST_cbc_encrypt CAST_cbc_encrypt_normal |
#define CAST_cbc_encrypt CAST_cbc_encrypt_ptr2 |
#define CAST_decrypt CAST_decrypt_normal |
#define CAST_decrypt CAST_decrypt_ptr |
#define CAST_decrypt CAST_decrypt_ptr2 |
#define CAST_DEFAULT_OPTIONS |
#define CAST_encrypt CAST_encrypt_ptr2 |
#define CAST_encrypt CAST_encrypt_normal |
#define CAST_encrypt CAST_encrypt_ptr |
#define CAST_PTR |
#define CAST_PTR2 |
#define COND | ( | d | ) | (count != (d)) |
#define COUNT | ( | d | ) | (d) |
#define HZ 100.0 |
#define print_it | ( | name, | |
index | |||
) |
fprintf(stderr,"%s bytes per sec = %12.2f (%5.1fuS)\n",name, \ tm[index]*8,1.0e6/tm[index]);
#define START 0 |
#define STOP 1 |
#define time_it | ( | func, | |
name, | |||
index | |||
) |
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];
#define TIMES |
double Time_F | ( | int | s | ) |
long run = 0 |