#include "mono-digest.h"
-typedef gint32 int32;
-typedef guint32 uint32;
-
/* #include <process.h> */ /* prototype for exit() - JHB */
/* Using return() instead of exit() - SWR */
static void SHA1Transform(guint32 state[5], const guchar buffer[64])
{
-uint32 a, b, c, d, e;
+guint32 a, b, c, d, e;
typedef union {
unsigned char c[64];
- uint32 l[16];
+ guint32 l[16];
} CHAR64LONG16;
CHAR64LONG16* block;
#ifdef SHA1HANDSOFF
void mono_sha1_update(MonoSHA1Context* context, const guchar* data, guint32 len) /*
JHB */
{
-uint32 i, j; /* JHB */
+guint32 i, j; /* JHB */
#ifdef VERBOSE
SHAPrintContext(context, "before");
void mono_sha1_final( MonoSHA1Context* context, unsigned char digest[20])
{
-uint32 i; /* JHB */
+guint32 i; /* JHB */
unsigned char finalcount[8];
for (i = 0; i < 8; i++) {
}
void
-mono_sha1_get_digest (const gchar *buffer, gint buffer_size, guchar digest [20])
+mono_sha1_get_digest (const guchar *buffer, gint buffer_size, guchar digest [20])
{
MonoSHA1Context ctx;