OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs
hw_ubsec.h File Reference

Go to the source code of this file.

Classes

struct  ubsec_crypto_context_s
 

Macros

#define MAX_PUBLIC_KEY_BITS   (1024)
 
#define MAX_PUBLIC_KEY_BYTES   (1024/8)
 
#define SHA_BIT_SIZE   (160)
 
#define MAX_CRYPTO_KEY_LENGTH   24
 
#define MAX_MAC_KEY_LENGTH   64
 
#define UBSEC_CRYPTO_DEVICE_NAME   ((unsigned char *)"/dev/ubscrypt")
 
#define UBSEC_KEY_DEVICE_NAME   ((unsigned char *)"/dev/ubskey")
 
#define UBSEC_MATH_MODADD   0x0001
 
#define UBSEC_MATH_MODSUB   0x0002
 
#define UBSEC_MATH_MODMUL   0x0004
 
#define UBSEC_MATH_MODEXP   0x0008
 
#define UBSEC_MATH_MODREM   0x0010
 
#define UBSEC_MATH_MODINV   0x0020
 

Typedefs

typedef long ubsec_MathCommand_t
 
typedef long ubsec_RNGCommand_t
 
typedef struct
ubsec_crypto_context_s 
ubsec_crypto_context_t
 
typedef struct
ubsec_crypto_context_s
ubsec_crypto_context_p
 
typedef int t_UBSEC_ubsec_bytes_to_bits (unsigned char *n, int bytes)
 
typedef int t_UBSEC_ubsec_bits_to_bytes (int bits)
 
typedef int t_UBSEC_ubsec_open (unsigned char *device)
 
typedef int t_UBSEC_ubsec_close (int fd)
 
typedef int t_UBSEC_diffie_hellman_generate_ioctl (int fd, unsigned char *x, int *x_len, unsigned char *y, int *y_len, unsigned char *g, int g_len, unsigned char *m, int m_len, unsigned char *userX, int userX_len, int random_bits)
 
typedef int t_UBSEC_diffie_hellman_agree_ioctl (int fd, unsigned char *x, int x_len, unsigned char *y, int y_len, unsigned char *m, int m_len, unsigned char *k, int *k_len)
 
typedef int t_UBSEC_rsa_mod_exp_ioctl (int fd, unsigned char *x, int x_len, unsigned char *m, int m_len, unsigned char *e, int e_len, unsigned char *y, int *y_len)
 
typedef int t_UBSEC_rsa_mod_exp_crt_ioctl (int fd, unsigned char *x, int x_len, unsigned char *qinv, int qinv_len, unsigned char *edq, int edq_len, unsigned char *q, int q_len, unsigned char *edp, int edp_len, unsigned char *p, int p_len, unsigned char *y, int *y_len)
 
typedef int t_UBSEC_dsa_sign_ioctl (int fd, int hash, unsigned char *data, int data_len, unsigned char *rndom, int random_len, unsigned char *p, int p_len, unsigned char *q, int q_len, unsigned char *g, int g_len, unsigned char *key, int key_len, unsigned char *r, int *r_len, unsigned char *s, int *s_len)
 
typedef int t_UBSEC_dsa_verify_ioctl (int fd, int hash, unsigned char *data, int data_len, unsigned char *p, int p_len, unsigned char *q, int q_len, unsigned char *g, int g_len, unsigned char *key, int key_len, unsigned char *r, int r_len, unsigned char *s, int s_len, unsigned char *v, int *v_len)
 
typedef int t_UBSEC_math_accelerate_ioctl (int fd, ubsec_MathCommand_t command, unsigned char *ModN, int *ModN_len, unsigned char *ExpE, int *ExpE_len, unsigned char *ParamA, int *ParamA_len, unsigned char *ParamB, int *ParamB_len, unsigned char *Result, int *Result_len)
 
typedef int t_UBSEC_rng_ioctl (int fd, ubsec_RNGCommand_t command, unsigned char *Result, int *Result_len)
 
typedef int t_UBSEC_max_key_len_ioctl (int fd, int *max_key_len)
 

Macro Definition Documentation

#define MAX_CRYPTO_KEY_LENGTH   24

Definition at line 25 of file hw_ubsec.h.

#define MAX_MAC_KEY_LENGTH   64

Definition at line 26 of file hw_ubsec.h.

#define MAX_PUBLIC_KEY_BITS   (1024)

Definition at line 22 of file hw_ubsec.h.

#define MAX_PUBLIC_KEY_BYTES   (1024/8)

Definition at line 23 of file hw_ubsec.h.

#define SHA_BIT_SIZE   (160)

Definition at line 24 of file hw_ubsec.h.

#define UBSEC_CRYPTO_DEVICE_NAME   ((unsigned char *)"/dev/ubscrypt")

Definition at line 27 of file hw_ubsec.h.

#define UBSEC_KEY_DEVICE_NAME   ((unsigned char *)"/dev/ubskey")

Definition at line 28 of file hw_ubsec.h.

#define UBSEC_MATH_MODADD   0x0001

Definition at line 31 of file hw_ubsec.h.

#define UBSEC_MATH_MODEXP   0x0008

Definition at line 34 of file hw_ubsec.h.

#define UBSEC_MATH_MODINV   0x0020

Definition at line 36 of file hw_ubsec.h.

#define UBSEC_MATH_MODMUL   0x0004

Definition at line 33 of file hw_ubsec.h.

#define UBSEC_MATH_MODREM   0x0010

Definition at line 35 of file hw_ubsec.h.

#define UBSEC_MATH_MODSUB   0x0002

Definition at line 32 of file hw_ubsec.h.

Typedef Documentation

typedef int t_UBSEC_diffie_hellman_agree_ioctl(int fd, unsigned char *x, int x_len, unsigned char *y, int y_len, unsigned char *m, int m_len, unsigned char *k, int *k_len)

Definition at line 64 of file hw_ubsec.h.

typedef int t_UBSEC_diffie_hellman_generate_ioctl(int fd, unsigned char *x, int *x_len, unsigned char *y, int *y_len, unsigned char *g, int g_len, unsigned char *m, int m_len, unsigned char *userX, int userX_len, int random_bits)

Definition at line 59 of file hw_ubsec.h.

typedef int t_UBSEC_dsa_sign_ioctl(int fd, int hash, unsigned char *data, int data_len, unsigned char *rndom, int random_len, unsigned char *p, int p_len, unsigned char *q, int q_len, unsigned char *g, int g_len, unsigned char *key, int key_len, unsigned char *r, int *r_len, unsigned char *s, int *s_len)

Definition at line 78 of file hw_ubsec.h.

typedef int t_UBSEC_dsa_verify_ioctl(int fd, int hash, unsigned char *data, int data_len, unsigned char *p, int p_len, unsigned char *q, int q_len, unsigned char *g, int g_len, unsigned char *key, int key_len, unsigned char *r, int r_len, unsigned char *s, int s_len, unsigned char *v, int *v_len)

Definition at line 85 of file hw_ubsec.h.

typedef int t_UBSEC_math_accelerate_ioctl(int fd, ubsec_MathCommand_t command, unsigned char *ModN, int *ModN_len, unsigned char *ExpE, int *ExpE_len, unsigned char *ParamA, int *ParamA_len, unsigned char *ParamB, int *ParamB_len, unsigned char *Result, int *Result_len)

Definition at line 92 of file hw_ubsec.h.

typedef int t_UBSEC_max_key_len_ioctl(int fd, int *max_key_len)

Definition at line 100 of file hw_ubsec.h.

typedef int t_UBSEC_rng_ioctl(int fd, ubsec_RNGCommand_t command, unsigned char *Result, int *Result_len)

Definition at line 97 of file hw_ubsec.h.

typedef int t_UBSEC_rsa_mod_exp_crt_ioctl(int fd, unsigned char *x, int x_len, unsigned char *qinv, int qinv_len, unsigned char *edq, int edq_len, unsigned char *q, int q_len, unsigned char *edp, int edp_len, unsigned char *p, int p_len, unsigned char *y, int *y_len)

Definition at line 72 of file hw_ubsec.h.

typedef int t_UBSEC_rsa_mod_exp_ioctl(int fd, unsigned char *x, int x_len, unsigned char *m, int m_len, unsigned char *e, int e_len, unsigned char *y, int *y_len)

Definition at line 68 of file hw_ubsec.h.

typedef int t_UBSEC_ubsec_bits_to_bytes(int bits)

Definition at line 53 of file hw_ubsec.h.

typedef int t_UBSEC_ubsec_bytes_to_bits(unsigned char *n, int bytes)

Definition at line 51 of file hw_ubsec.h.

typedef int t_UBSEC_ubsec_close(int fd)

Definition at line 57 of file hw_ubsec.h.

typedef int t_UBSEC_ubsec_open(unsigned char *device)

Definition at line 55 of file hw_ubsec.h.

typedef long ubsec_MathCommand_t

Definition at line 38 of file hw_ubsec.h.

typedef long ubsec_RNGCommand_t

Definition at line 39 of file hw_ubsec.h.