?? 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 + -