OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions
hw_zencod.c File Reference
#include <stdio.h>
#include <openssl/crypto.h>
#include <openssl/dso.h>
#include <openssl/engine.h>
#include "vendor_defns/hw_zencod.h"
#include "hw_zencod_err.c"
#include <openssl/evp.h>
#include <openssl/sha.h>
#include <openssl/md5.h>
#include <openssl/rc4.h>
#include <openssl/des.h>

Go to the source code of this file.

Classes

struct  NEW_ZEN_RC4_KEY
 
struct  ZEN_DES_KEY
 
struct  ZEN_3DES_KEY
 

Macros

#define ZENCOD_LIB_NAME   "zencod engine"
 
#define FAIL_TO_SOFTWARE   -15
 
#define ZEN_LIBRARY   "zenbridge"
 
#define PERROR(s)
 
#define CHEESE()
 
#define BIGNUM2ZEN(n, bn)
 
#define ZEN_BITS(n, bytes)   (ptr_zencod_bytes2bits((unsigned char *) (n), (unsigned long) (bytes)))
 
#define ZEN_BYTES(bits)   (ptr_zencod_bits2bytes((unsigned long) (bits)))
 
#define ZENCOD_CMD_SO_PATH   ENGINE_CMD_BASE
 
#define EVP_RC4_KEY_SIZE   16
 
#define rc4_data(ctx)   ( (EVP_RC4_KEY *) ( ctx )->cipher_data )
 
#define des_data(ctx)   ( (DES_EDE_KEY *) ( ctx )->cipher_data )
 

Functions

void ENGINE_load_zencod (void)
 

Macro Definition Documentation

#define BIGNUM2ZEN (   n,
  bn 
)
Value:
(ptr_zencod_init_number((n), \
(unsigned long) ((bn)->top * BN_BITS2), \
(unsigned char *) ((bn)->d)))

Definition at line 121 of file hw_zencod.c.

#define CHEESE ( )

Definition at line 93 of file hw_zencod.c.

#define des_data (   ctx)    ( (DES_EDE_KEY *) ( ctx )->cipher_data )

Definition at line 1340 of file hw_zencod.c.

#define EVP_RC4_KEY_SIZE   16

Definition at line 1262 of file hw_zencod.c.

#define FAIL_TO_SOFTWARE   -15

Definition at line 84 of file hw_zencod.c.

#define PERROR (   s)

Definition at line 92 of file hw_zencod.c.

#define rc4_data (   ctx)    ( (EVP_RC4_KEY *) ( ctx )->cipher_data )

Definition at line 1272 of file hw_zencod.c.

#define ZEN_BITS (   n,
  bytes 
)    (ptr_zencod_bytes2bits((unsigned char *) (n), (unsigned long) (bytes)))

Definition at line 125 of file hw_zencod.c.

#define ZEN_BYTES (   bits)    (ptr_zencod_bits2bytes((unsigned long) (bits)))

Definition at line 126 of file hw_zencod.c.

#define ZEN_LIBRARY   "zenbridge"

Definition at line 86 of file hw_zencod.c.

#define ZENCOD_CMD_SO_PATH   ENGINE_CMD_BASE

Definition at line 175 of file hw_zencod.c.

#define ZENCOD_LIB_NAME   "zencod engine"

Definition at line 81 of file hw_zencod.c.

Function Documentation

void ENGINE_load_zencod ( void  )

Definition at line 389 of file hw_zencod.c.