1 #ifndef __CKEYMANAGEMENT_H_
2 #define __CKEYMANAGEMENT_H_
11 #ifdef SUPPORT_SHARED_MEMORY
18 #include "ckm_pkcrypt.h"
19 #include "bcipher_op.h"
28 const static unsigned char symmetricKey_[16] = {
29 0x4d, 0x65, 0x12, 0x3b, 0x55, 0xdd, 0xc9, 0x4f,
30 0xb8, 0xa8, 0xa1, 0xd5, 0x44, 0xb2, 0xb9, 0xf7
34 const static unsigned char iv_[16] = {
35 0xa2, 0xc5, 0x4d, 0x6c, 0xfa, 0x2a, 0x59, 0x58,
36 0x47, 0xf3, 0xc4, 0xa5, 0x34, 0x03, 0x14, 0x71
39 #define SHARED_MEMORY_NAME_FOR_PRIVATEKEY "ISSAC-WEB PRIVATE KEY"
40 #define ISSACWEB_SHARED_MEM_SIZE 2048
42 #define RANDOM_SEED_SIZE 2048
45 #define MAX_ASN1_PRIVATEKEYINFO_LENGTH 1024
46 #define MAX_BASE64ENCODED_ASN1_PRIVATEKEYINFO_LENGTH 1024
47 #define MAX_SEEDENCRYPTED_BASE64ENCODED_ASN1_PRIVATEKEYINFO_LENGTH 2048
74 GetPrivateKey(
unsigned char* pszPrivateKey,
const char *pszPrivateKeyPath);
81 LogFileEx(
const char *srcFileName,
const int srcLine,
const char *logFileName,
char *fmt, ...);
EXTERNC int GetPrivateKeyLoadType()
EXTERNC int PrivateKeyInfoLoadFromKeyFile(const char *pszPrivateKeyPath)
EXTERNC int GetPrivateKey(unsigned char *pszPrivateKey, const char *pszPrivateKeyPath)
EXTERNC int GetRandomSeed(unsigned char *pszRandomSeed)
EXTERNC int GetPrivateKeyInfo(PrivateKeyInfo **asnPrivateKeyInfo, const char *pszPrivateKeyPath)
EXTERNC void LogFileEx(const char *srcFileName, const int srcLine, const char *logFileName, char *fmt,...)
EXTERNC int TestFuncCall()
EXTERNC int PrivateKeyLoadFromPrivateKeyInfo(const char *pszPrivateKeyPath)
EXTERNC int PrivateKeyInfoLoadFromSharedMemory()
#define EXTERNC
Definition: wasdk_public.h:16