auth.h
来自「非常经典的加密算法」· C头文件 代码 · 共 28 行
H
28 行
#ifndef _AUTH_H#define _AUTH_H#include "des.h" /* keyType exported from des.h */#define destroyKey desDestroyKeytypedef void *cipherKey;#if defined(__STDC__) || defined(__cplusplus)extern keyType challenge(int fd, char *keyString, unsigned timeout);extern keyType signature(int fd, char *keyString, unsigned timeout);extern keyType mkKey(char *keyString); /* create CFB key */extern cipherKey mkCipherKey(keyType key, int mode);extern void cipherData(char *dst, char *src, unsigned size, cipherKey c);extern void destroyCipherKey(cipherKey *c);extern int getUserPhrase( char *fname, char *phrase, unsigned size, char *uname, keyType key);#elseextern keyType challenge();extern keyType signature();extern keyType mkKey();extern cipherKey mkCipherKey();extern void cipherData();extern void destroyCipherKey();extern int getUserPhrase();#endif#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?