Lines Matching defs:state

259 	memcpy(context->state.st32, sha256_initial_hash_value,
292 SHA256Transform(u_int32_t *state, const u_int8_t *data)
299 a = state[0];
300 b = state[1];
301 c = state[2];
302 d = state[3];
303 e = state[4];
304 f = state[5];
305 g = state[6];
306 h = state[7];
334 state[0] += a;
335 state[1] += b;
336 state[2] += c;
337 state[3] += d;
338 state[4] += e;
339 state[5] += f;
340 state[6] += g;
341 state[7] += h;
350 SHA256Transform(u_int32_t *state, const u_int8_t *data)
357 a = state[0];
358 b = state[1];
359 c = state[2];
360 d = state[3];
361 e = state[4];
362 f = state[5];
363 g = state[6];
364 h = state[7];
410 state[0] += a;
411 state[1] += b;
412 state[2] += c;
413 state[3] += d;
414 state[4] += e;
415 state[5] += f;
416 state[6] += g;
417 state[7] += h;
446 SHA256Transform(context->state.st32, context->buffer);
458 SHA256Transform(context->state.st32, data);
496 SHA256Transform(context->state.st32, context->buffer);
513 SHA256Transform(context->state.st32, context->buffer);
520 context->state.st32[j] = swap32(context->state.st32[j]);
524 memcpy(digest, context->state.st32, SHA256_DIGEST_LENGTH);
525 /* Clean up state data: */
535 memcpy(context->state.st64, sha512_initial_hash_value,
571 SHA512Transform(u_int64_t *state, const u_int8_t *data)
578 a = state[0];
579 b = state[1];
580 c = state[2];
581 d = state[3];
582 e = state[4];
583 f = state[5];
584 g = state[6];
585 h = state[7];
612 state[0] += a;
613 state[1] += b;
614 state[2] += c;
615 state[3] += d;
616 state[4] += e;
617 state[5] += f;
618 state[6] += g;
619 state[7] += h;
628 SHA512Transform(u_int64_t *state, const u_int8_t *data)
635 a = state[0];
636 b = state[1];
637 c = state[2];
638 d = state[3];
639 e = state[4];
640 f = state[5];
641 g = state[6];
642 h = state[7];
690 state[0] += a;
691 state[1] += b;
692 state[2] += c;
693 state[3] += d;
694 state[4] += e;
695 state[5] += f;
696 state[6] += g;
697 state[7] += h;
726 SHA512Transform(context->state.st64, context->buffer);
738 SHA512Transform(context->state.st64, data);
777 SHA512Transform(context->state.st64, context->buffer);
794 SHA512Transform(context->state.st64, context->buffer);
809 context->state.st64[j] = swap64(context->state.st64[j]);
813 memcpy(digest, context->state.st64, SHA512_DIGEST_LENGTH);
815 /* Zero out state data */
824 memcpy(context->state.st64, sha384_initial_hash_value,
848 context->state.st64[j] = swap64(context->state.st64[j]);
852 memcpy(digest, context->state.st64, SHA384_DIGEST_LENGTH);
853 /* Zero out state data */