blowfish.h

来自「Crypto code code source codes nvmjvhmkh,」· C头文件 代码 · 共 20 行

H
20 行
字号
// Written by Andrew Carter (2008)

#ifndef BLOWFISH_H_
#define BLOWFISH_H_

typedef struct blowfish_context_t_ {
	unsigned long pbox[256];
	unsigned long sbox[4][256];
} blowfish_context_t;

void blowfish_encryptblock (blowfish_context_t *ctx, unsigned long  *hi,  unsigned long *lo);
void blowfish_decryptblock (blowfish_context_t *ctx, unsigned long  *hi,  unsigned long *lo);
void blowfish_initiate     (blowfish_context_t *ctx, void *keyparam,      unsigned int  keybytes);
void blowfish_clean        (blowfish_context_t *ctx);

extern const unsigned long ORIG_P[18];
extern const unsigned long ORIG_S[4][256];

#endif

⌨️ 快捷键说明

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