Lines Matching refs:state
286 memcpy(context->state, sha256_initial_hash_value,
318 SHA256_Transform(u_int32_t state[8], const u_int8_t data[SHA256_BLOCK_LENGTH])
325 a = state[0];
326 b = state[1];
327 c = state[2];
328 d = state[3];
329 e = state[4];
330 f = state[5];
331 g = state[6];
332 h = state[7];
360 state[0] += a;
361 state[1] += b;
362 state[2] += c;
363 state[3] += d;
364 state[4] += e;
365 state[5] += f;
366 state[6] += g;
367 state[7] += h;
376 SHA256_Transform(u_int32_t state[8], const u_int8_t data[SHA256_BLOCK_LENGTH])
383 a = state[0];
384 b = state[1];
385 c = state[2];
386 d = state[3];
387 e = state[4];
388 f = state[5];
389 g = state[6];
390 h = state[7];
435 state[0] += a;
436 state[1] += b;
437 state[2] += c;
438 state[3] += d;
439 state[4] += e;
440 state[5] += f;
441 state[6] += g;
442 state[7] += h;
470 SHA256_Transform(context->state, context->buffer);
482 SHA256_Transform(context->state, data);
516 SHA256_Transform(context->state, context->buffer);
533 SHA256_Transform(context->state, context->buffer);
551 BE_32_TO_8(digest + i * 4, context->state[i]);
553 memcpy(digest, context->state, SHA256_DIGEST_LENGTH);
566 memcpy(context->state, sha512_initial_hash_value,
599 SHA512_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH])
606 a = state[0];
607 b = state[1];
608 c = state[2];
609 d = state[3];
610 e = state[4];
611 f = state[5];
612 g = state[6];
613 h = state[7];
641 state[0] += a;
642 state[1] += b;
643 state[2] += c;
644 state[3] += d;
645 state[4] += e;
646 state[5] += f;
647 state[6] += g;
648 state[7] += h;
657 SHA512_Transform(u_int64_t state[8], const u_int8_t data[SHA512_BLOCK_LENGTH])
664 a = state[0];
665 b = state[1];
666 c = state[2];
667 d = state[3];
668 e = state[4];
669 f = state[5];
670 g = state[6];
671 h = state[7];
716 state[0] += a;
717 state[1] += b;
718 state[2] += c;
719 state[3] += d;
720 state[4] += e;
721 state[5] += f;
722 state[6] += g;
723 state[7] += h;
751 SHA512_Transform(context->state, context->buffer);
763 SHA512_Transform(context->state, data);
795 SHA512_Transform(context->state, context->buffer);
814 SHA512_Transform(context->state, context->buffer);
832 BE_64_TO_8(digest + i * 8, context->state[i]);
834 memcpy(digest, context->state, SHA512_DIGEST_LENGTH);
848 memcpy(context->state, sha384_initial_hash_value,
870 BE_64_TO_8(digest + i * 8, context->state[i]);
872 memcpy(digest, context->state, SHA384_DIGEST_LENGTH);
876 /* Zero out state data */