📄 ictkfips.h
字号:
/* Copyright 2003-2005, Voltage Security, all rights reserved.
*/
#include "vibecrypto.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "ictk.h"
#ifndef _ICTK_FIPS_H
#define _ICTK_FIPS_H
#ifdef __cplusplus
extern "C" {
#endif
/* Build a function pointer list.
*/
typedef int VOLT_CALLING_CONV (*VFbfRandomSetup) VOLT_PROTO_LIST ((
bf_context_t *bf,
VtRandomObject random,
int type,
int secparm
));
typedef int VOLT_CALLING_CONV (*VFbfRawDumpSecret) VOLT_PROTO_LIST ((
void *buf,
unsigned int buf_sz,
unsigned int *secretLen,
bf_context_t *bf
));
typedef int VOLT_CALLING_CONV (*VFbfRawLoadSecret) VOLT_PROTO_LIST ((
bf_context_t *bf,
unsigned char *data,
unsigned int sz
));
typedef unsigned int VOLT_CALLING_CONV (*VFbfGetRawPrivateKeySize) VOLT_PROTO_LIST ((
bf_context_t *bf
));
typedef int VOLT_CALLING_CONV (*VFbfRawExtract) VOLT_PROTO_LIST ((
unsigned char *key,
unsigned int buf_sz,
unsigned int *keyLen,
unsigned char *id,
unsigned int id_sz,
bf_context_t *bf
));
typedef int VOLT_CALLING_CONV (*VFbfPrivateKeyExportToPoint) VOLT_PROTO_LIST ((
unsigned char *privkey,
int bufSize,
int *keyLen,
unsigned char *raw,
unsigned int raw_sz,
bf_context_t *bf
));
typedef struct
{
VFbfRandomSetup bfRandomSetup;
VFbfRawDumpSecret bfRawDumpSecret;
VFbfRawLoadSecret bfRawLoadSecret;
VFbfGetRawPrivateKeySize bfGetRawPrivateKeySize;
VFbfRawExtract bfRawExtract;
VFbfPrivateKeyExportToPoint bfPrivateKeyExportToPoint;
} VoltServerFipsFnctList;
#define VOLT_ICTK_FNCT_RANDOM_SETUP 1
#define VOLT_ICTK_FNCT_DUMP_SECRET 2
#define VOLT_ICTK_FNCT_LOAD_SECRET 3
#define VOLT_ICTK_FNCT_PRI_SIZE 4
#define VOLT_ICTK_FNCT_RAW_EXTRACT 5
#define VOLT_ICTK_FNCT_EXPORT_TO_POINT 6
typedef VFnctPointer VOLT_CALLING_CONV (*VGetFunctionPointer) VOLT_PROTO_LIST ((
unsigned int flag
));
VFnctPointer VOLT_CALLING_CONV VoltIctkGetFunctionPointer VOLT_PROTO_LIST ((
unsigned int flag
));
/* Get the fnct ptr list for the server functions.
*
* @param libCtx
* @param fnctList The address where the function will deposit the fnct
* ptr list.
* @return an int, 0 if the function completed successfully or a
* non-zero error code.
*/
int VOLT_CALLING_CONV VoltGetServerFipsFnctList VOLT_PROTO_LIST ((
VoltLibCtx *libCtx,
VoltServerFipsFnctList **fnctList
));
#ifdef __cplusplus
}
#endif
#endif /* _ICTK_FIPS_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -