• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libgcrypt-1.5.0/cipher/

Lines Matching defs:context

1190   whirlpool_context_t *context = ctx;
1192 memset (context, 0, sizeof (*context));
1200 whirlpool_transform (whirlpool_context_t *context, const unsigned char *data)
1210 block_copy (key, context->hash_state, i);
1211 block_copy (state, context->hash_state, i);
1291 block_xor (context->hash_state, data_block, i);
1292 block_xor (context->hash_state, state, i);
1296 whirlpool_add (whirlpool_context_t *context,
1306 if (context->count == BLOCK_SIZE)
1309 whirlpool_transform (context, context->buffer);
1311 context->count = 0;
1316 if (context->count)
1318 while (buffer_n && (context->count < BLOCK_SIZE))
1320 context->buffer[context->count++] = *buffer++;
1323 whirlpool_add (context, NULL, 0);
1332 whirlpool_transform (context, buffer);
1333 context->count = 0;
1337 while (buffer_n && (context->count < BLOCK_SIZE))
1339 context->buffer[context->count++] = *buffer++;
1351 carry += context->length[32 - i] + (buffer_size & 0xFF);
1352 context->length[32 - i] = carry;
1362 whirlpool_context_t *context = ctx;
1364 whirlpool_add (context, buffer, buffer_n);
1370 whirlpool_context_t *context = ctx;
1374 whirlpool_add (context, NULL, 0);
1377 context->buffer[context->count++] = 0x80;
1379 if (context->count > 32)
1382 while (context->count < 64)
1383 context->buffer[context->count++] = 0;
1384 whirlpool_add (context, NULL, 0);
1386 while (context->count < 32)
1387 context->buffer[context->count++] = 0;
1390 memcpy (context->buffer + context->count, context->length, 32);
1391 context->count += 32;
1392 whirlpool_add (context, NULL, 0);
1394 block_to_buffer (context->buffer, context->hash_state, i);
1400 whirlpool_context_t *context = ctx;
1402 return context->buffer;