home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / des2.zip / DES.H < prev    next >
Text File  |  1993-03-15  |  504b  |  19 lines

  1. /* -------------- des.h ---------------- */
  2. /* Header file for Data Encryption Standard algorithms  */
  3.  
  4. /* -------------- prototypes ------------------- */
  5. VOID initkey(char *key);
  6. VOID encrypt(char *blk);
  7. VOID decrypt(char *blk);
  8. VOID setparity(CHAR *key);
  9.  
  10. /* ----------- tables ------------ */
  11. extern UCHAR Pmask[];
  12. extern UCHAR IPtbl[];
  13. extern UCHAR Etbl[];
  14. extern UCHAR Ptbl[];
  15. extern UCHAR stbl[8][4][16];
  16. extern UCHAR PC1tbl[];
  17. extern UCHAR PC2tbl[];
  18. extern UCHAR ex6[8][2][4];
  19.