home *** CD-ROM | disk | FTP | other *** search
/ The Elite Hackers Toolkit / TheEliteHackersToolkitVolume1_1998.rar / HACKERS.BIN / hackers / snow_tar.gz / snow.tar / snow / ice.h < prev    next >
C/C++ Source or Header  |  1996-12-27  |  636b  |  29 lines

  1. /*
  2.  * Header file for the ICE encryption library.
  3.  *
  4.  * Written by Matthew Kwan - July 1996
  5.  */
  6.  
  7. #ifndef _ICE_H
  8. #define _ICE_H
  9.  
  10. typedef struct ice_key_struct    ICE_KEY;
  11.  
  12. #if __STDC__
  13. #define P_(x) x
  14. #else
  15. #define P_(x) ()
  16. #endif
  17.  
  18. extern ICE_KEY        *ice_key_create P_((int n));
  19. extern void        ice_key_destroy P_((ICE_KEY *ik));
  20. extern void        ice_key_set P_((ICE_KEY *ik, const unsigned char *k));
  21. extern unsigned char    *ice_key_encrypt P_((const ICE_KEY *ik,
  22.             const unsigned char *ptxt, unsigned char *ctxt));
  23. extern unsigned char    *ice_key_decrypt P_((const ICE_KEY *ik,
  24.             const unsigned char *ctxt, unsigned char *ptxt));
  25.  
  26. #undef P_
  27.  
  28. #endif
  29.