view src/sha.h @ 8689:b3eae94bd560

[gaim-migrate @ 9442] (21:29:19) SimGuy: LSchiere2: in gtkimhtml.h, there's a line that says gint *underline; (21:29:26) SimGuy: that should not be a pointer (21:29:39) SimGuy: an error in my patch (21:30:18) LSchiere2: face for back and sml are (21:30:32) LSchiere2: its it supposed to be a gint or a gboolean? (21:30:57) SimGuy: it could be a gboolean, actually (21:31:06) SimGuy: that should be fine (21:31:38) LSchiere2: mmm. i ment aboort that commit committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sun, 18 Apr 2004 01:33:00 +0000
parents 0f6673c1ae38
children 00138e366ef8
line wrap: on
line source

#if (SIZEOF_INT == 4)
typedef unsigned int uint32;
#elif (SIZEOF_SHORT == 4)
typedef unsigned short uint32;
#else
typedef unsigned int uint32;
#endif /* HAVEUINT32 */
 
int strprintsha(char *dest, int *hashval);
 
typedef struct {
  unsigned long H[5];
  unsigned long W[80];
  int lenW;
  unsigned long sizeHi,sizeLo;
} SHA_CTX;
 
void shaInit(SHA_CTX *ctx);
void shaUpdate(SHA_CTX *ctx, unsigned char *dataIn, int len);
void shaFinal(SHA_CTX *ctx, unsigned char hashout[20]);
void shaBlock(unsigned char *dataIn, int len, unsigned char hashout[20]);