[Home] [Downloads] [Search] [Help/forum]

Source code for SHS.H include file



/* -------------- SHS.H --------------------------- */

typedef unsigned char BYTE;
typedef unsigned long LONG;

#define SHS_BLOCKSIZE 64

#define SHS_DIGESTSIZE 20

typedef struct
  {
  LONG digest [5];  /* message digest */
  LONG countLo, countHi;  /* 64-bit bit count */
  LONG data [16];   /* SHS data buffer */
  } SHS_INFO;

/* include the define below if running on a little-endian machine */

#define LITTLE_ENDIAN

void shsInit (SHS_INFO * shsInfo);
void shsUpdate (SHS_INFO * shsInfo, BYTE * buffer, int count);
void shsFinal (SHS_INFO * shsInfo);

[Back] [Home]
Written by Nick Gammon - 5K

Comments to Gammon Software support

[Best viewed with any browser - 2K]    Internet Contents Rating Association (ICRA) - 2K    [Hosted at HostDash]

Page updated on Wednesday, 15 December 2004