?? ofb.h
字號:
/* 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -