OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Variables
hwcryptohook.h File Reference
#include <sys/types.h>
#include <stdio.h>

Go to the source code of this file.

Classes

struct  HWCryptoHook_ErrMsgBuf
 
struct  HWCryptoHook_MPIStruct
 
struct  HWCryptoHook_InitInfo
 

Macros

#define HWCRYPTOHOOK_DECLARE_APPTYPES   1
 
#define HWCRYPTOHOOK_ERROR_FAILED   -1
 
#define HWCRYPTOHOOK_ERROR_FALLBACK   -2
 
#define HWCRYPTOHOOK_ERROR_MPISIZE   -3
 
#define HWCryptoHook_InitFlags_FallbackModExp   0x0002UL
 
#define HWCryptoHook_InitFlags_FallbackRSAImmed   0x0004UL
 
#define HWCryptoHook_InitFlags_SimpleForkCheck   0x0010UL
 

Typedefs

typedef struct
HWCryptoHook_MutexValue 
HWCryptoHook_Mutex
 
typedef struct
HWCryptoHook_CondVarValue 
HWCryptoHook_CondVar
 
typedef struct
HWCryptoHook_PassphraseContextValue 
HWCryptoHook_PassphraseContext
 
typedef struct
HWCryptoHook_CallerContextValue 
HWCryptoHook_CallerContext
 
typedef struct
HWCryptoHook_Context * 
HWCryptoHook_ContextHandle
 
typedef struct
HWCryptoHook_RSAKey * 
HWCryptoHook_RSAKeyHandle
 
typedef struct
HWCryptoHook_MPIStruct 
HWCryptoHook_MPI
 
typedef HWCryptoHook_ContextHandle HWCryptoHook_Init_t (const HWCryptoHook_InitInfo *initinfo, size_t initinfosize, const HWCryptoHook_ErrMsgBuf *errors, HWCryptoHook_CallerContext *cactx)
 
typedef void HWCryptoHook_Finish_t (HWCryptoHook_ContextHandle hwctx)
 
typedef int HWCryptoHook_RandomBytes_t (HWCryptoHook_ContextHandle hwctx, unsigned char *buf, size_t len, const HWCryptoHook_ErrMsgBuf *errors)
 
typedef int HWCryptoHook_ModExp_t (HWCryptoHook_ContextHandle hwctx, HWCryptoHook_MPI a, HWCryptoHook_MPI p, HWCryptoHook_MPI n, HWCryptoHook_MPI *r, const HWCryptoHook_ErrMsgBuf *errors)
 
typedef int HWCryptoHook_RSAImmedPub_t (HWCryptoHook_ContextHandle hwctx, HWCryptoHook_MPI m, HWCryptoHook_MPI e, HWCryptoHook_MPI n, HWCryptoHook_MPI *r, const HWCryptoHook_ErrMsgBuf *errors)
 
typedef int HWCryptoHook_ModExpCRT_t (HWCryptoHook_ContextHandle hwctx, HWCryptoHook_MPI a, HWCryptoHook_MPI p, HWCryptoHook_MPI q, HWCryptoHook_MPI dmp1, HWCryptoHook_MPI dmq1, HWCryptoHook_MPI iqmp, HWCryptoHook_MPI *r, const HWCryptoHook_ErrMsgBuf *errors)
 
typedef int HWCryptoHook_RSAImmedPriv_t (HWCryptoHook_ContextHandle hwctx, HWCryptoHook_MPI m, HWCryptoHook_MPI p, HWCryptoHook_MPI q, HWCryptoHook_MPI dmp1, HWCryptoHook_MPI dmq1, HWCryptoHook_MPI iqmp, HWCryptoHook_MPI *r, const HWCryptoHook_ErrMsgBuf *errors)
 
typedef int HWCryptoHook_RSALoadKey_t (HWCryptoHook_ContextHandle hwctx, const char *key_ident, HWCryptoHook_RSAKeyHandle *keyhandle_r, const HWCryptoHook_ErrMsgBuf *errors, HWCryptoHook_PassphraseContext *ppctx)
 
typedef int HWCryptoHook_RSAGetPublicKey_t (HWCryptoHook_RSAKeyHandle k, HWCryptoHook_MPI *n, HWCryptoHook_MPI *e, const HWCryptoHook_ErrMsgBuf *errors)
 
typedef int HWCryptoHook_RSAUnloadKey_t (HWCryptoHook_RSAKeyHandle k, const HWCryptoHook_ErrMsgBuf *errors)
 
typedef int HWCryptoHook_RSA_t (HWCryptoHook_MPI m, HWCryptoHook_RSAKeyHandle k, HWCryptoHook_MPI *r, const HWCryptoHook_ErrMsgBuf *errors)
 

Variables

HWCryptoHook_Init_t HWCryptoHook_Init
 
HWCryptoHook_Finish_t HWCryptoHook_Finish
 
HWCryptoHook_RandomBytes_t HWCryptoHook_RandomBytes
 
HWCryptoHook_ModExp_t HWCryptoHook_ModExp
 
HWCryptoHook_RSAImmedPub_t HWCryptoHook_RSAImmedPub
 
HWCryptoHook_ModExpCRT_t HWCryptoHook_ModExpCRT
 
HWCryptoHook_RSAImmedPriv_t HWCryptoHook_RSAImmedPriv
 
HWCryptoHook_RSALoadKey_t HWCryptoHook_RSALoadKey
 
HWCryptoHook_RSAGetPublicKey_t HWCryptoHook_RSAGetPublicKey
 
HWCryptoHook_RSAUnloadKey_t HWCryptoHook_RSAUnloadKey
 
HWCryptoHook_RSA_t HWCryptoHook_RSA
 

Macro Definition Documentation

#define HWCRYPTOHOOK_DECLARE_APPTYPES   1

Definition at line 78 of file hwcryptohook.h.

#define HWCRYPTOHOOK_ERROR_FAILED   -1

Definition at line 81 of file hwcryptohook.h.

#define HWCRYPTOHOOK_ERROR_FALLBACK   -2

Definition at line 82 of file hwcryptohook.h.

#define HWCRYPTOHOOK_ERROR_MPISIZE   -3

Definition at line 83 of file hwcryptohook.h.

#define HWCryptoHook_InitFlags_FallbackModExp   0x0002UL

Definition at line 144 of file hwcryptohook.h.

#define HWCryptoHook_InitFlags_FallbackRSAImmed   0x0004UL

Definition at line 145 of file hwcryptohook.h.

#define HWCryptoHook_InitFlags_SimpleForkCheck   0x0010UL

Definition at line 156 of file hwcryptohook.h.

Typedef Documentation

Definition at line 99 of file hwcryptohook.h.

typedef struct HWCryptoHook_CondVarValue HWCryptoHook_CondVar

Definition at line 97 of file hwcryptohook.h.

typedef struct HWCryptoHook_Context* HWCryptoHook_ContextHandle

Definition at line 107 of file hwcryptohook.h.

typedef void HWCryptoHook_Finish_t(HWCryptoHook_ContextHandle hwctx)

Definition at line 355 of file hwcryptohook.h.

typedef HWCryptoHook_ContextHandle HWCryptoHook_Init_t(const HWCryptoHook_InitInfo *initinfo, size_t initinfosize, const HWCryptoHook_ErrMsgBuf *errors, HWCryptoHook_CallerContext *cactx)

Definition at line 322 of file hwcryptohook.h.

Definition at line 366 of file hwcryptohook.h.

Definition at line 384 of file hwcryptohook.h.

Definition at line 96 of file hwcryptohook.h.

Definition at line 98 of file hwcryptohook.h.

typedef int HWCryptoHook_RandomBytes_t(HWCryptoHook_ContextHandle hwctx, unsigned char *buf, size_t len, const HWCryptoHook_ErrMsgBuf *errors)

Definition at line 360 of file hwcryptohook.h.

typedef int HWCryptoHook_RSA_t(HWCryptoHook_MPI m, HWCryptoHook_RSAKeyHandle k, HWCryptoHook_MPI *r, const HWCryptoHook_ErrMsgBuf *errors)

Definition at line 479 of file hwcryptohook.h.

typedef int HWCryptoHook_RSAGetPublicKey_t(HWCryptoHook_RSAKeyHandle k, HWCryptoHook_MPI *n, HWCryptoHook_MPI *e, const HWCryptoHook_ErrMsgBuf *errors)

Definition at line 447 of file hwcryptohook.h.

Definition at line 396 of file hwcryptohook.h.

typedef int HWCryptoHook_RSAImmedPub_t(HWCryptoHook_ContextHandle hwctx, HWCryptoHook_MPI m, HWCryptoHook_MPI e, HWCryptoHook_MPI n, HWCryptoHook_MPI *r, const HWCryptoHook_ErrMsgBuf *errors)

Definition at line 375 of file hwcryptohook.h.

typedef struct HWCryptoHook_RSAKey* HWCryptoHook_RSAKeyHandle

Definition at line 108 of file hwcryptohook.h.

typedef int HWCryptoHook_RSALoadKey_t(HWCryptoHook_ContextHandle hwctx, const char *key_ident, HWCryptoHook_RSAKeyHandle *keyhandle_r, const HWCryptoHook_ErrMsgBuf *errors, HWCryptoHook_PassphraseContext *ppctx)

Definition at line 423 of file hwcryptohook.h.

typedef int HWCryptoHook_RSAUnloadKey_t(HWCryptoHook_RSAKeyHandle k, const HWCryptoHook_ErrMsgBuf *errors)

Definition at line 473 of file hwcryptohook.h.

Variable Documentation

HWCryptoHook_Finish_t HWCryptoHook_Finish
HWCryptoHook_Init_t HWCryptoHook_Init
HWCryptoHook_ModExp_t HWCryptoHook_ModExp
HWCryptoHook_ModExpCRT_t HWCryptoHook_ModExpCRT
HWCryptoHook_RandomBytes_t HWCryptoHook_RandomBytes
HWCryptoHook_RSA_t HWCryptoHook_RSA
HWCryptoHook_RSAGetPublicKey_t HWCryptoHook_RSAGetPublicKey
HWCryptoHook_RSAImmedPriv_t HWCryptoHook_RSAImmedPriv
HWCryptoHook_RSAImmedPub_t HWCryptoHook_RSAImmedPub
HWCryptoHook_RSALoadKey_t HWCryptoHook_RSALoadKey
HWCryptoHook_RSAUnloadKey_t HWCryptoHook_RSAUnloadKey