cast5.h

来自「CAST5加密算法」· C头文件 代码 · 共 18 行

H
18
字号
#include "types.h"

#define CIPHER_ALGO_CAST5	 3

#define CAST5_BLOCKSIZE 8

typedef struct {
    u32  Km[16];
    byte Kr[16];
} CAST5_context;

int cast_setkey( void *c, const byte *key, unsigned keylen );
void encrypt_block( void *c, byte *outbuf, const byte *inbuf );
void decrypt_block( void *c, byte *outbuf, const byte *inbuf );
const char* selftest(void);


⌨️ 快捷键说明

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