hmac.h
来自「IBE是一种非对称密码技术」· C头文件 代码 · 共 65 行
H
65 行
/* Copyright 2003-2006, Voltage Security, all rights reserved.
*/
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "algobj.h"
#include "keyobj.h"
#ifndef _HMAC_H
#define _HMAC_H
#ifdef __cplusplus
extern "C" {
#endif
/* This is the standard HMAC context.
* An HMAC object contains a digest object.
*/
typedef struct
{
VoltAlgorithmObject *digestObj;
unsigned char *key;
unsigned int keyLen;
unsigned char *ipad;
unsigned char *opad;
unsigned char *ipadHash;
} VoltHMACCtx;
/* Implements VMACInit
*/
int VOLT_CALLING_CONV HMACInit VOLT_PROTO_LIST ((
VoltAlgorithmObject *obj,
VoltKeyObject *keyObj
));
/* Implements VMACUpdate
*/
int VOLT_CALLING_CONV HMACUpdate VOLT_PROTO_LIST ((
VoltAlgorithmObject *obj,
unsigned char *data,
unsigned int dataLen
));
/* Implements VMACFinal
*/
int VOLT_CALLING_CONV HMACFinal VOLT_PROTO_LIST ((
VoltAlgorithmObject *obj,
unsigned char *data
));
/* Implements VCtxDestroy.
*/
void VOLT_CALLING_CONV VoltLocalHMACCtxDestroy VOLT_PROTO_LIST ((
Pointer obj,
Pointer ctx
));
#ifdef __cplusplus
}
#endif
#endif /* _HMAC_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?