comparison src/xs_md5.c @ 357:70ab1c28d4b2

int -> gint
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 07 Nov 2005 06:04:03 +0000
parents 575686094eb1
children b1a858b8cb1a
comparison
equal deleted inserted replaced
356:f979379cfb83 357:70ab1c28d4b2
121 { 121 {
122 guint32 a = pms->abcd[0], b = pms->abcd[1], c = pms->abcd[2], d = pms->abcd[3]; 122 guint32 a = pms->abcd[0], b = pms->abcd[1], c = pms->abcd[2], d = pms->abcd[3];
123 guint32 t; 123 guint32 t;
124 guint32 X[16]; 124 guint32 X[16];
125 const guint8 *xp = data; 125 const guint8 *xp = data;
126 int i; 126 gint i;
127 127
128 for (i = 0; i < 16; ++i, xp += 4) 128 for (i = 0; i < 16; ++i, xp += 4)
129 X[i] = xp[0] + (xp[1] << 8) + (xp[2] << 16) + (xp[3] << 24); 129 X[i] = xp[0] + (xp[1] << 8) + (xp[2] << 16) + (xp[3] << 24);
130 130
131 131
268 268
269 269
270 void xs_md5_append(t_xs_md5state * pms, const guint8 * data, int nbytes) 270 void xs_md5_append(t_xs_md5state * pms, const guint8 * data, int nbytes)
271 { 271 {
272 const guint8 *p = data; 272 const guint8 *p = data;
273 int left = nbytes; 273 gint left = nbytes;
274 int offset = (pms->count[0] >> 3) & 63; 274 gint offset = (pms->count[0] >> 3) & 63;
275 guint32 nbits = (guint32) (nbytes << 3); 275 guint32 nbits = (guint32) (nbytes << 3);
276 276
277 if (nbytes <= 0) 277 if (nbytes <= 0)
278 return; 278 return;
279 279