home *** CD-ROM | disk | FTP | other *** search
/ Freesoft 1997 May / Freesoft_1997-05_cd.bin / nerecenz / programers / CRYPT / XCRYPT / crypt_util.h < prev    next >
Text File  |  1997-03-31  |  2KB  |  48 lines

  1. /*
  2.  *  Prototypes
  3.  */
  4. #ifdef __STDC__
  5. #ifdef DEBUG
  6. void           pr_bits              (ufc_long *, int);
  7. static void    set_bits             (ufc_long, ufc_long *);
  8. #endif    /* DEBUG */
  9. STATIC void    clearmem             (char *, int);
  10. void init_des                       (void);
  11. #ifdef _UFC_32_
  12. STATIC void    shuffle_sb           (long32 *, ufc_long);
  13. #endif    /* _UFC_32_ */
  14. #ifdef _UFC_64_
  15. STATIC void    shuffle_sb           (long64 *, ufc_long);
  16. #endif    /* _UFC_64_ */
  17. STATIC void    setup_salt           (char *);
  18. STATIC void    ufc_mk_keytab        (char *);
  19. ufc_long      *ufc_dofinalperm      (ufc_long, ufc_long, ufc_long,
  20.                                      ufc_long);
  21. STATIC char   *output_conversion    (ufc_long, ufc_long, char *);
  22. char          *crypt                (char *, char *);
  23. char          *fcrypt               (char *, char *);
  24. void           encrypt              (char *, int);
  25. void           setkey               (char *);
  26. #else        /* ! __STDC__ */
  27. #ifdef DEBUG
  28. void           pr_bits              ();
  29. static void    set_bits             ();
  30. #endif    /* DEBUG */
  31. STATIC void    clearmem             ();
  32. void init_des                       ();
  33. #ifdef _UFC_32_
  34. STATIC  void    shuffle_sb           ();
  35. #endif    /* _UFC_32_ */
  36. #ifdef _UFC_64_
  37. STATIC void    shuffle_sb           ();
  38. #endif    /* _UFC_64_ */
  39. STATIC void    setup_salt           ();
  40. STATIC void    ufc_mk_keytab        ();
  41. ufc_long      *ufc_dofinalperm      ();
  42. STATIC char   *output_conversion    ();
  43. char          *crypt                ();
  44. char          *fcrypt               ();
  45. void           encrypt              ();
  46. void           setkey               ();
  47. #endif    /* __STDC__ */
  48.