home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / crypl200.zip / HASH / SHA1.C < prev    next >
Text File  |  1996-09-29  |  938b  |  35 lines

  1. /****************************************************************************
  2. *                                                                            *
  3. *                          SHA-1 Message Digest Algorithm                     *
  4. *                        Copyright Peter Gutmann 1992-1996                    *
  5. *                                                                            *
  6. ****************************************************************************/
  7.  
  8. #include <string.h>
  9. #if defined( INC_ALL )
  10.   #include "crypt.h"
  11.   #include "sha.h"
  12. #elif defined( INC_CHILD )
  13.   #include "../crypt.h"
  14.   #include "sha.h"
  15. #else
  16.   #include "crypt.h"
  17.   #include "hash/sha.h"
  18. #endif /* Compiler-specific includes */
  19.  
  20. /* Compile the SHA-1 variant of SHA */
  21.  
  22. #define USE_SHA1
  23. #define shaInitial        sha1Initial
  24. #define shaUpdate        sha1Update
  25. #define shaFinal        sha1Final
  26. #define SHATransform    SHA1Transform
  27.  
  28. /* Bring in the SHA core code */
  29.  
  30. #if defined( _MSC_VER ) || defined( __MWERKS__ )
  31.   #include "shacore.c"
  32. #else
  33.   #include "hash/shacore.c"
  34. #endif /* Compiler-specific includes */
  35.