crypt.h
资源名称:warftpd.zip [点击查看]
上传用户:surprise9
上传日期:2007-01-04
资源大小:426k
文件大小:1k
源码类别:
Ftp客户端
开发平台:
Visual C++
- // Crypt.h
- // Borrowed from:
- /* fcrypt.c */
- /* Copyright (C) 1993 Eric Young - see README for more details */
- typedef unsigned char des_cblock[8];
- typedef struct des_ks_struct
- {
- union {
- des_cblock _;
- /* make sure things are correct size on machines with
- * 8 byte longs */
- unsigned long pad[2];
- } ks;
- #define _ ks._
- } des_key_schedule[16];
- LPCSTR crypt(LPCSTR buf,LPCSTR argSalt, char *buff);
- static int des_set_key(des_cblock *key,des_key_schedule schedule);
- static int body(unsigned long *out0, unsigned long *out1, des_key_schedule *ks,unsigned long Eswap0, unsigned long Eswap1);
- BOOL IsDES13validPwd(LPCSTR Password, LPCSTR StoredPassword);