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/des.h>
#include "spr.h"
#include "des_enc.c"
'defines' | |
#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) |
Funciones | |
double | Time_F (int s) |
int | main (int argc, char **argv) |
Variables | |
long | run = 0 |
#define BUFSIZE ((long)1024) |
#define COND | ( | d | ) | (count != (d)) |
#define COUNT | ( | d | ) | (d) |
#define DES_decrypt3 des_decrypt3_u4_risc1_idx |
#define DES_decrypt3 des_decrypt3_u16_risc1_ptr |
#define DES_decrypt3 des_decrypt3_u16_risc2_idx |
#define DES_decrypt3 des_decrypt3_u16_risc2_ptr |
#define DES_decrypt3 des_decrypt3_u4_cisc_idx |
#define DES_decrypt3 des_decrypt3_u4_cisc_ptr |
#define DES_decrypt3 des_decrypt3_u16_cisc_idx |
#define DES_decrypt3 des_decrypt3_u4_risc2_idx |
#define DES_decrypt3 des_decrypt3_u16_cisc_ptr |
#define DES_decrypt3 des_decrypt3_u4_risc1_ptr |
#define DES_decrypt3 des_decrypt3_u16_risc1_idx |
#define DES_decrypt3 des_decrypt3_u4_risc2_ptr |
#define DES_DEFAULT_OPTIONS |
#define DES_encrypt1 des_encrypt_u16_risc2_idx |
#define DES_encrypt1 des_encrypt_u16_risc1_ptr |
#define DES_encrypt1 des_encrypt_u16_risc2_ptr |
#define DES_encrypt1 des_encrypt_u4_risc1_idx |
#define DES_encrypt1 des_encrypt_u4_cisc_ptr |
#define DES_encrypt1 des_encrypt_u4_risc2_idx |
#define DES_encrypt1 des_encrypt_u16_cisc_ptr |
#define DES_encrypt1 des_encrypt_u16_cisc_idx |
#define DES_encrypt1 des_encrypt_u4_risc1_ptr |
#define DES_encrypt1 des_encrypt_u16_risc1_idx |
#define DES_encrypt1 des_encrypt_u4_risc2_ptr |
#define DES_encrypt1 des_encrypt_u4_cisc_idx |
#define DES_encrypt2 des_encrypt2_u16_risc1_ptr |
#define DES_encrypt2 des_encrypt2_u16_risc2_idx |
#define DES_encrypt2 des_encrypt2_u16_risc2_ptr |
#define DES_encrypt2 des_encrypt2_u4_risc1_idx |
#define DES_encrypt2 des_encrypt2_u4_cisc_ptr |
#define DES_encrypt2 des_encrypt2_u4_cisc_idx |
#define DES_encrypt2 des_encrypt2_u4_risc2_idx |
#define DES_encrypt2 des_encrypt2_u16_cisc_ptr |
#define DES_encrypt2 des_encrypt2_u4_risc1_ptr |
#define DES_encrypt2 des_encrypt2_u16_cisc_idx |
#define DES_encrypt2 des_encrypt2_u16_risc1_idx |
#define DES_encrypt2 des_encrypt2_u4_risc2_ptr |
#define DES_encrypt3 des_encrypt3_u4_cisc_ptr |
#define DES_encrypt3 des_encrypt3_u16_risc1_ptr |
#define DES_encrypt3 des_encrypt3_u16_risc2_ptr |
#define DES_encrypt3 des_encrypt3_u4_risc1_idx |
#define DES_encrypt3 des_encrypt3_u16_cisc_ptr |
#define DES_encrypt3 des_encrypt3_u4_risc2_idx |
#define DES_encrypt3 des_encrypt3_u16_risc2_idx |
#define DES_encrypt3 des_encrypt3_u4_risc1_ptr |
#define DES_encrypt3 des_encrypt3_u4_cisc_idx |
#define DES_encrypt3 des_encrypt3_u4_risc2_ptr |
#define DES_encrypt3 des_encrypt3_u16_risc1_idx |
#define DES_encrypt3 des_encrypt3_u16_cisc_idx |
#define DES_PTR |
#define DES_PTR |
#define DES_PTR |
#define DES_PTR |
#define DES_PTR |
#define DES_PTR |
#define DES_RISC1 |
#define DES_RISC1 |
#define DES_RISC1 |
#define DES_RISC1 |
#define DES_RISC2 |
#define DES_RISC2 |
#define DES_RISC2 |
#define DES_RISC2 |
#define DES_UNROLL |
#define DES_UNROLL |
#define DES_UNROLL |
#define DES_UNROLL |
#define DES_UNROLL |
#define DES_UNROLL |
#define HZ 100.0 |
#define PART1 |
#define PART2 |
#define PART3 |
#define PART4 |
#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 | |||
) |
#define TIMES |
double Time_F | ( | int | s | ) |
long run = 0 |