sqofb.h

来自「一些加密解密的源代码」· C头文件 代码 · 共 27 行

H
27
字号
#ifndef __SQOFB_H#define __SQOFB_H/*	Output Feedback (OFB) mode support	IMPORTANT REMARK: input buffers to the encryption/decryption functions	must be word-aligned on machines which have this as a requirement.*/#include "square.h"typedef struct {	squareKeySchedule roundKeys;	squareBlock mask;	unsigned avail; /* number of available mask bytes */ } squareOfbContext;void squareOfbInit  (squareOfbContext *ctxOfb, const squareBlock key);void squareOfbSetIV (squareOfbContext *ctxOfb, const squareBlock iv);void squareOfbMask  (squareOfbContext *ctxOfb, byte *buffer, unsigned length);#define squareOfbEncrypt squareOfbMask#define squareOfbDecrypt squareOfbMaskvoid squareOfbFinal (squareOfbContext *ctxOfb);#endif /* __SQOFB_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?