📄 engine_pub.h
字号:
//engine_pub.h
#ifndef ENGINE_PUB_H
#define ENGINE_PUB_H
#include <openssl/bn.h>
#define MANUFACTURERID_WESTONE 1 //Westone
#define MANUFACTURERID_DATECH 2 //datech
#define SSL_SIG_LENGTH 36
#ifdef WIN32
#define DSO_Open LoadLibrary
#define DSO_GetFunction GetProcAddress
#define DSO_Close FreeLibrary
#else
#define DSO_Open dlopen
#define DSO_GetFunction dlsym
#define DSO_Close dlclose
#endif
//0:NO,1,Print,2:File
#define BCA_LOG_LEVEL 2
#ifdef _DEBUG
#define DEBUGMSG(msg) DebugMsg(__FILE__,__LINE__,msg)
#define BCA_malloc(num) MY_malloc((int)num,__FILE__,__LINE__)
#define BCA_free(str) MY_free(str,__FILE__,__LINE__)
#else
#define DEBUGMSG(msg) DebugMsg(__FILE__,__LINE__,msg)
#define BCA_malloc(num) malloc(num)
#define BCA_free(str) free(str)
#endif
void * MY_malloc(int num, char *file, int line);
void MY_free(void *str,char *file, int line);
void DebugMsg(char *pFileName,int nLine,char *pMsg);
int init_template_value(BIGNUM *bn, void **p_value,
unsigned long *ul_value_len);
int PKCS11_RsaSignDataConv(int type,unsigned char *m,unsigned int m_length,unsigned char *m_conv,unsigned int *m_convlen);
EVP_PKEY * BCA_GetPriKey_CSP(unsigned char *containerName,
unsigned long containerNameLen,
unsigned long keyUsage);
EVP_PKEY * BCA_GetPriKey_P11(unsigned char *containerName,
unsigned long containerNameLen,
unsigned long keyUsage);
EVP_PKEY * BCA_GetPriKey(unsigned char *containerName,
unsigned long containerNameLen,
unsigned long keyUsage);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -