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

Go to the source code of this file.

Macros

#define SW_EXPORT
 
#define SUREWAREHOOK_ERROR_FAILED   -1
 
#define SUREWAREHOOK_ERROR_FALLBACK   -2
 
#define SUREWAREHOOK_ERROR_UNIT_FAILURE   -3
 
#define SUREWAREHOOK_ERROR_DATA_SIZE   -4
 
#define SUREWAREHOOK_ERROR_INVALID_PAD   -5
 
#define SUREWARE_PKCS1_PAD   1
 
#define SUREWARE_ISO9796_PAD   2
 
#define SUREWARE_NO_PAD   0
 

Typedefs

typedef int SureWareHook_Init_t (char *const msg, int threadsafe)
 
typedef void SureWareHook_Finish_t (void)
 
typedef int SureWareHook_Rand_Bytes_t (char *const msg, unsigned char *buf, int num)
 
typedef int SureWareHook_Rand_Seed_t (char *const msg, const void *buf, int num)
 
typedef int SureWareHook_Load_Privkey_t (char *const msg, const char *key_id, char **hptr, unsigned long *num, char *keytype)
 
typedef int SureWareHook_Info_Pubkey_t (char *const msg, const char *key_id, unsigned long *num, char *keytype)
 
typedef int SureWareHook_Load_Rsa_Pubkey_t (char *const msg, const char *key_id, unsigned long num, unsigned long *n, unsigned long *e)
 
typedef int SureWareHook_Load_Dsa_Pubkey_t (char *const msg, const char *key_id, unsigned long num, unsigned long *pub, unsigned long *p, unsigned long *q, unsigned long *g)
 
typedef void SureWareHook_Free_t (char *p, int destroy)
 
typedef int SureWareHook_Rsa_Priv_Dec_t (char *const msg, int flen, unsigned char *from, int *tlen, unsigned char *to, char *prsa, int padding)
 
typedef int SureWareHook_Rsa_Sign_t (char *const msg, int flen, unsigned char *from, int *tlen, unsigned char *to, char *prsa, int padding)
 
typedef int SureWareHook_Dsa_Sign_t (char *const msg, int flen, const unsigned char *from, unsigned long *r, unsigned long *s, char *pdsa)
 
typedef int SureWareHook_Mod_Exp_t (char *const msg, int mlen, const unsigned long *mod, int elen, const unsigned long *exponent, int dlen, unsigned long *data, unsigned long *res)
 

Variables

SW_EXPORT SureWareHook_Init_t SureWareHook_Init
 
SW_EXPORT SureWareHook_Finish_t SureWareHook_Finish
 
SW_EXPORT SureWareHook_Rand_Bytes_t SureWareHook_Rand_Bytes
 
SW_EXPORT SureWareHook_Rand_Seed_t SureWareHook_Rand_Seed
 
SW_EXPORT
SureWareHook_Load_Privkey_t 
SureWareHook_Load_Privkey
 
SW_EXPORT
SureWareHook_Info_Pubkey_t 
SureWareHook_Info_Pubkey
 
SW_EXPORT
SureWareHook_Load_Rsa_Pubkey_t 
SureWareHook_Load_Rsa_Pubkey
 
SW_EXPORT
SureWareHook_Load_Dsa_Pubkey_t 
SureWareHook_Load_Dsa_Pubkey
 
SW_EXPORT SureWareHook_Free_t SureWareHook_Free
 
SW_EXPORT
SureWareHook_Rsa_Priv_Dec_t 
SureWareHook_Rsa_Priv_Dec
 
SW_EXPORT SureWareHook_Rsa_Sign_t SureWareHook_Rsa_Sign
 
SW_EXPORT SureWareHook_Dsa_Sign_t SureWareHook_Dsa_Sign
 
SW_EXPORT SureWareHook_Mod_Exp_t SureWareHook_Mod_Exp
 

Macro Definition Documentation

#define SUREWARE_ISO9796_PAD   2

Definition at line 160 of file sureware.h.

#define SUREWARE_NO_PAD   0

Definition at line 161 of file sureware.h.

#define SUREWARE_PKCS1_PAD   1

Definition at line 159 of file sureware.h.

#define SUREWAREHOOK_ERROR_DATA_SIZE   -4

Definition at line 32 of file sureware.h.

#define SUREWAREHOOK_ERROR_FAILED   -1

Definition at line 29 of file sureware.h.

#define SUREWAREHOOK_ERROR_FALLBACK   -2

Definition at line 30 of file sureware.h.

#define SUREWAREHOOK_ERROR_INVALID_PAD   -5

Definition at line 33 of file sureware.h.

#define SUREWAREHOOK_ERROR_UNIT_FAILURE   -3

Definition at line 31 of file sureware.h.

#define SW_EXPORT

Definition at line 23 of file sureware.h.

Typedef Documentation

typedef int SureWareHook_Dsa_Sign_t(char *const msg, int flen, const unsigned char *from, unsigned long *r, unsigned long *s, char *pdsa)

Definition at line 217 of file sureware.h.

typedef void SureWareHook_Finish_t(void)

Definition at line 50 of file sureware.h.

typedef void SureWareHook_Free_t(char *p, int destroy)

Definition at line 156 of file sureware.h.

typedef int SureWareHook_Info_Pubkey_t(char *const msg, const char *key_id, unsigned long *num, char *keytype)

Definition at line 113 of file sureware.h.

typedef int SureWareHook_Init_t(char *const msg, int threadsafe)

Definition at line 45 of file sureware.h.

typedef int SureWareHook_Load_Dsa_Pubkey_t(char *const msg, const char *key_id, unsigned long num, unsigned long *pub, unsigned long *p, unsigned long *q, unsigned long *g)

Definition at line 147 of file sureware.h.

typedef int SureWareHook_Load_Privkey_t(char *const msg, const char *key_id, char **hptr, unsigned long *num, char *keytype)

Definition at line 98 of file sureware.h.

typedef int SureWareHook_Load_Rsa_Pubkey_t(char *const msg, const char *key_id, unsigned long num, unsigned long *n, unsigned long *e)

Definition at line 129 of file sureware.h.

typedef int SureWareHook_Mod_Exp_t(char *const msg, int mlen, const unsigned long *mod, int elen, const unsigned long *exponent, int dlen, unsigned long *data, unsigned long *res)

Definition at line 234 of file sureware.h.

typedef int SureWareHook_Rand_Bytes_t(char *const msg, unsigned char *buf, int num)

Definition at line 68 of file sureware.h.

typedef int SureWareHook_Rand_Seed_t(char *const msg, const void *buf, int num)

Definition at line 83 of file sureware.h.

typedef int SureWareHook_Rsa_Priv_Dec_t(char *const msg, int flen, unsigned char *from, int *tlen, unsigned char *to, char *prsa, int padding)

Definition at line 179 of file sureware.h.

typedef int SureWareHook_Rsa_Sign_t(char *const msg, int flen, unsigned char *from, int *tlen, unsigned char *to, char *prsa, int padding)

Definition at line 200 of file sureware.h.

Variable Documentation

SW_EXPORT SureWareHook_Dsa_Sign_t SureWareHook_Dsa_Sign
SW_EXPORT SureWareHook_Finish_t SureWareHook_Finish
SW_EXPORT SureWareHook_Free_t SureWareHook_Free
SW_EXPORT SureWareHook_Info_Pubkey_t SureWareHook_Info_Pubkey
SW_EXPORT SureWareHook_Init_t SureWareHook_Init
SW_EXPORT SureWareHook_Load_Dsa_Pubkey_t SureWareHook_Load_Dsa_Pubkey
SW_EXPORT SureWareHook_Load_Privkey_t SureWareHook_Load_Privkey
SW_EXPORT SureWareHook_Load_Rsa_Pubkey_t SureWareHook_Load_Rsa_Pubkey
SW_EXPORT SureWareHook_Mod_Exp_t SureWareHook_Mod_Exp
SW_EXPORT SureWareHook_Rand_Bytes_t SureWareHook_Rand_Bytes
SW_EXPORT SureWareHook_Rand_Seed_t SureWareHook_Rand_Seed
SW_EXPORT SureWareHook_Rsa_Priv_Dec_t SureWareHook_Rsa_Priv_Dec
SW_EXPORT SureWareHook_Rsa_Sign_t SureWareHook_Rsa_Sign