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

📄 sqcfb.h

📁 一些加密解密的源代码
💻 H
字号:
#ifndef __SQCFB_H#define __SQCFB_H/*	Cipher Feedback (CFB) 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 */ } squareCfbContext;void squareCfbInit    (squareCfbContext *ctxCfb, const squareBlock key);void squareCfbSetIV   (squareCfbContext *ctxCfb, const squareBlock iv);void squareCfbEncrypt (squareCfbContext *ctxCfb, byte *buffer, unsigned length);void squareCfbDecrypt (squareCfbContext *ctxCfb, byte *buffer, unsigned length);void squareCfbFinal   (squareCfbContext *ctxCfb);#endif /* __SQCFB_H */

⌨️ 快捷键说明

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