idea.h

来自「加密硬盘、分区、虚拟盘的程序源码」· C头文件 代码 · 共 22 行

H
22
字号
#ifndef _IDEA_DEFINED

#define _IDEA_DEFINED

/* Defines for the PGP-style types used in IDEA.C */

#define word16	unsigned short int

/* IDEA algorithm constants */

#define IDEA_USERKEYSIZE	16
#define IDEA_BLOCKSIZE		8
#define IDEA_ROUNDS			8
#define IDEA_KEYLEN			( 6 * IDEA_ROUNDS + 4 )

/* Routines used to implement the IDEA encryption */

void _cdecl ideaExpandKey( unsigned char const *userkey, word16 *eKey, word16 *dKey );
void _cdecl ideaCrypt( unsigned char const *in, unsigned char *out, word16 const *key );

#endif /* _IDEA_DEFINED */

⌨️ 快捷键说明

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