ofb.h
来自「IBE是一种非对称密码技术」· C头文件 代码 · 共 64 行
H
64 行
/* Copyright 2003-2006, Voltage Security, all rights reserved.
*/
#include "vibecrypto.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "algobj.h"
#include "keyobj.h"
#ifndef _OFB_H
#define _OFB_H
#ifdef __cplusplus
extern "C" {
#endif
/* Implements VEncryptInit.
*/
int VOLT_CALLING_CONV OFBEncryptInit VOLT_PROTO_LIST ((
VoltAlgorithmObject *algObj,
VoltKeyObject *keyObj
));
/* Implements VEncryptUpdate.
*/
int VOLT_CALLING_CONV OFBEncryptUpdate VOLT_PROTO_LIST ((
VoltAlgorithmObject *algObj,
VtRandomObject random,
unsigned char *dataToEncrypt,
unsigned int dataToEncryptLen,
unsigned char *encryptedData
));
/* Implments VDecryptInit.
*/
int VOLT_CALLING_CONV OFBDecryptInit VOLT_PROTO_LIST ((
VoltAlgorithmObject *algObj,
VoltKeyObject *keyObj
));
/* The feedCtx for OFB looks like this.
*/
typedef struct
{
VoltFeedbackCtx feedCtx;
unsigned int xorUsed;
VEncryptInit AlgEncryptInit;
VEncryptUpdate AlgEncryptUpdate;
} VoltOFBCtx;
/* Implements VCtxDestroy.
*/
void VOLT_CALLING_CONV OFBFeedCtxDestroy VOLT_PROTO_LIST ((
Pointer obj,
Pointer ctx
));
#ifdef __cplusplus
}
#endif
#endif /* _OFB_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?