shs.h

pennmush/hdrs/shs.h · 619 B

From the archive pennmush-1.7.2p10.tar.gz

Download the archive   « Back to the archive contents

#ifndef _SHS_H
#define _SHS_H

/* -------------- 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 */

#if (BYTEORDER == 0x1234)
#define LITTLE_ENDIAN
#endif

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

Site Stats

Snippets: 1791
Codebases: 571