📄 hmac.h
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -