home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
crypl200.zip
/
HASH
/
SHA1.C
< prev
next >
Wrap
Text File
|
1996-09-29
|
938b
|
35 lines
/****************************************************************************
* *
* SHA-1 Message Digest Algorithm *
* Copyright Peter Gutmann 1992-1996 *
* *
****************************************************************************/
#include <string.h>
#if defined( INC_ALL )
#include "crypt.h"
#include "sha.h"
#elif defined( INC_CHILD )
#include "../crypt.h"
#include "sha.h"
#else
#include "crypt.h"
#include "hash/sha.h"
#endif /* Compiler-specific includes */
/* Compile the SHA-1 variant of SHA */
#define USE_SHA1
#define shaInitial sha1Initial
#define shaUpdate sha1Update
#define shaFinal sha1Final
#define SHATransform SHA1Transform
/* Bring in the SHA core code */
#if defined( _MSC_VER ) || defined( __MWERKS__ )
#include "shacore.c"
#else
#include "hash/shacore.c"
#endif /* Compiler-specific includes */