Revision 3310 libsylph/md5.c

View differences:

md5.c
200 200
  if (ctx->doByteReverse)
201 201
    byteReverse((guint8 *) ctx->buf, 4);
202 202
  g_memmove(digest, ctx->buf, 16);
203
  memset(ctx, 0, sizeof(ctx));	/* In case it's sensitive */
203
  memset(ctx, 0, sizeof(*ctx));	/* In case it's sensitive */
204 204
}
205 205

  
206 206
/* The four core functions - F1 is optimized somewhat */

Also available in: Unified diff