• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/lib/

Lines Matching defs:context

188 /* MD5 context. */
266 /* MD5 initialization. Begins an MD5 operation, writing a new context.
268 static void MD5_Init(struct md5_ctx *context)
270 context->count[0] = context->count[1] = 0;
272 context->state[0] = 0x67452301;
273 context->state[1] = 0xefcdab89;
274 context->state[2] = 0x98badcfe;
275 context->state[3] = 0x10325476;
280 context.
282 static void MD5_Update (struct md5_ctx *context, /* context */
289 bufindex = (unsigned int)((context->count[0] >> 3) & 0x3F);
292 if((context->count[0] += ((UINT4)inputLen << 3))
294 context->count[1]++;
295 context->count[1] += ((UINT4)inputLen >> 29);
301 memcpy(&context->buffer[bufindex], input, partLen);
302 MD5Transform(context->state, context->buffer);
305 MD5Transform(context->state, &input[i]);
313 memcpy(&context->buffer[bufindex], &input[i], inputLen-i);
317 the message digest and zeroizing the context.
320 struct md5_ctx *context) /* context */
326 Encode (bits, context->count, 8);
329 count = (unsigned int)((context->count[0] >> 3) & 0x3f);
331 MD5_Update (context, PADDING, padLen);
334 MD5_Update (context, bits, 8);
337 Encode (digest, context->state, 16);
340 memset ((void *)context, 0, sizeof (*context));
473 sizeof(MD5_CTX), /* Size of hash context structure. */
484 sizeof(MD5_CTX), /* Size of digest context struct */
502 /* Create MD5 context */
522 int Curl_MD5_update(MD5_context *context,
526 (*context->md5_hash->md5_update_func)(context->md5_hashctx, data, len);
531 int Curl_MD5_final(MD5_context *context, unsigned char *result)
533 (*context->md5_hash->md5_final_func)(result, context->md5_hashctx);
535 free(context->md5_hashctx);
536 free(context);