⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sqofb.h

📁 一些加密解密的源代码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -