📄 3des.h
字号:
/* -------------- des.h ----------------
Header file for Data Encryption Standard algorithms
*/
/* -------------- prototypes ------------------- */
#define TRIPLE_DES
void ascii_adjust_key(char *output); /* move parity bit to right end */
void test_adjust_key(char *output); /* compatibility mode */
void schedule(char *password,char *tbl); /* compute 16 rounds of Keys */
void encrypt_block(void); /* encrypt 8 bytes using DES */
void decrypt_block(void); /* decrypt 8 bytes using DES */
char *mov64(char *dest, char *source); /* quick 8-byte move (returns dest) */
char *xor64(char *dest, char *source); /* quick 8-byte xor (returns dest) */
void killkey(void); /* zeros out key schedule */
/* ----------- tables ------------ */
extern unsigned char block[8]; /* holds the i/o data */
#ifdef TRIPLE_DES
extern char en_keytbl[];
extern char de_keytbl[];
extern char **en_keyptr;
extern char **de_keyptr;
#else
extern char keytbl[];
extern char **keyptr[];
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -