Lines Matching defs:state

291 	memcpy(context->state, sha256_initial_hash_value,
323 SHA256_Transform(u_int32_t state[8], const u_int8_t data[SHA256_BLOCK_LENGTH])
330 a = state[0];
331 b = state[1];
332 c = state[2];
333 d = state[3];
334 e = state[4];
335 f = state[5];
336 g = state[6];
337 h = state[7];
365 state[0] += a;
366 state[1] += b;
367 state[2] += c;
368 state[3] += d;
369 state[4] += e;
370 state[5] += f;
371 state[6] += g;
372 state[7] += h;
381 SHA256_Transform(u_int32_t state[8], const u_int8_t data[SHA256_BLOCK_LENGTH])
388 a = state[0];
389 b = state[1];
390 c = state[2];
391 d = state[3];
392 e = state[4];
393 f = state[5];
394 g = state[6];
395 h = state[7];
440 state[0] += a;
441 state[1] += b;
442 state[2] += c;
443 state[3] += d;
444 state[4] += e;
445 state[5] += f;
446 state[6] += g;
447 state[7] += h;
475 SHA256_Transform(context->state, context->buffer);
487 SHA256_Transform(context->state, data);
521 SHA256_Transform(context->state, context->buffer);
538 SHA256_Transform(context->state, context->buffer);
556 BE_32_TO_8(digest + i * 4, context->state[i]);
558 memcpy(digest, context->state, SHA256_DIGEST_LENGTH);
571 memcpy(context->state, sha512_initial_hash_value,
604 SHA512_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH])
611 a = state[0];
612 b = state[1];
613 c = state[2];
614 d = state[3];
615 e = state[4];
616 f = state[5];
617 g = state[6];
618 h = state[7];
646 state[0] += a;
647 state[1] += b;
648 state[2] += c;
649 state[3] += d;
650 state[4] += e;
651 state[5] += f;
652 state[6] += g;
653 state[7] += h;
662 SHA512_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH])
669 a = state[0];
670 b = state[1];
671 c = state[2];
672 d = state[3];
673 e = state[4];
674 f = state[5];
675 g = state[6];
676 h = state[7];
721 state[0] += a;
722 state[1] += b;
723 state[2] += c;
724 state[3] += d;
725 state[4] += e;
726 state[5] += f;
727 state[6] += g;
728 state[7] += h;
756 SHA512_Transform(context->state, context->buffer);
768 SHA512_Transform(context->state, data);
800 SHA512_Transform(context->state, context->buffer);
819 SHA512_Transform(context->state, context->buffer);
837 BE_64_TO_8(digest + i * 8, context->state[i]);
839 memcpy(digest, context->state, SHA512_DIGEST_LENGTH);
852 memcpy(context->state, sha384_initial_hash_value,
865 SHA384_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH])
867 return SHA512_Transform(state, data);
894 BE_64_TO_8(digest + i * 8, context->state[i]);
896 memcpy(digest, context->state, SHA384_DIGEST_LENGTH);
900 /* Zero out state data */