Lines Matching refs:hash
146 uint32_t A = ctx->hash[0]; in md5_process_block64()
147 uint32_t B = ctx->hash[1]; in md5_process_block64()
148 uint32_t C = ctx->hash[2]; in md5_process_block64()
149 uint32_t D = ctx->hash[3]; in md5_process_block64()
245 ctx->hash[0] += A; in md5_process_block64()
246 ctx->hash[1] += B; in md5_process_block64()
247 ctx->hash[2] += C; in md5_process_block64()
248 ctx->hash[3] += D; in md5_process_block64()
396 ctx->hash[0] += A; in md5_process_block64()
397 ctx->hash[1] += B; in md5_process_block64()
398 ctx->hash[2] += C; in md5_process_block64()
399 ctx->hash[3] += D; in md5_process_block64()
412 ctx->hash[0] = 0x67452301; in md5_begin()
413 ctx->hash[1] = 0xefcdab89; in md5_begin()
414 ctx->hash[2] = 0x98badcfe; in md5_begin()
415 ctx->hash[3] = 0x10325476; in md5_begin()
460 ctx->hash[0] = SWAP_LE32(ctx->hash[0]); in md5_end()
461 ctx->hash[1] = SWAP_LE32(ctx->hash[1]); in md5_end()
462 ctx->hash[2] = SWAP_LE32(ctx->hash[2]); in md5_end()
463 ctx->hash[3] = SWAP_LE32(ctx->hash[3]); in md5_end()
466 memcpy(resbuf, ctx->hash, sizeof(ctx->hash[0]) * 4); in md5_end()
467 return sizeof(ctx->hash[0]) * 4; in md5_end()
508 a = ctx->hash[0]; in sha1_process_block64()
509 b = ctx->hash[1]; in sha1_process_block64()
510 c = ctx->hash[2]; in sha1_process_block64()
511 d = ctx->hash[3]; in sha1_process_block64()
512 e = ctx->hash[4]; in sha1_process_block64()
550 ctx->hash[0] += a; in sha1_process_block64()
551 ctx->hash[1] += b; in sha1_process_block64()
552 ctx->hash[2] += c; in sha1_process_block64()
553 ctx->hash[3] += d; in sha1_process_block64()
554 ctx->hash[4] += e; in sha1_process_block64()
643 a = ctx->hash[0]; in sha256_process_block64()
644 b = ctx->hash[1]; in sha256_process_block64()
645 c = ctx->hash[2]; in sha256_process_block64()
646 d = ctx->hash[3]; in sha256_process_block64()
647 e = ctx->hash[4]; in sha256_process_block64()
648 f = ctx->hash[5]; in sha256_process_block64()
649 g = ctx->hash[6]; in sha256_process_block64()
650 h = ctx->hash[7]; in sha256_process_block64()
678 ctx->hash[0] += a; in sha256_process_block64()
679 ctx->hash[1] += b; in sha256_process_block64()
680 ctx->hash[2] += c; in sha256_process_block64()
681 ctx->hash[3] += d; in sha256_process_block64()
682 ctx->hash[4] += e; in sha256_process_block64()
683 ctx->hash[5] += f; in sha256_process_block64()
684 ctx->hash[6] += g; in sha256_process_block64()
685 ctx->hash[7] += h; in sha256_process_block64()
696 uint64_t a = ctx->hash[0]; in sha512_process_block128()
697 uint64_t b = ctx->hash[1]; in sha512_process_block128()
698 uint64_t c = ctx->hash[2]; in sha512_process_block128()
699 uint64_t d = ctx->hash[3]; in sha512_process_block128()
700 uint64_t e = ctx->hash[4]; in sha512_process_block128()
701 uint64_t f = ctx->hash[5]; in sha512_process_block128()
702 uint64_t g = ctx->hash[6]; in sha512_process_block128()
703 uint64_t h = ctx->hash[7]; in sha512_process_block128()
741 ctx->hash[0] += a; in sha512_process_block128()
742 ctx->hash[1] += b; in sha512_process_block128()
743 ctx->hash[2] += c; in sha512_process_block128()
744 ctx->hash[3] += d; in sha512_process_block128()
745 ctx->hash[4] += e; in sha512_process_block128()
746 ctx->hash[5] += f; in sha512_process_block128()
747 ctx->hash[6] += g; in sha512_process_block128()
748 ctx->hash[7] += h; in sha512_process_block128()
754 ctx->hash[0] = 0x67452301; in sha1_begin()
755 ctx->hash[1] = 0xefcdab89; in sha1_begin()
756 ctx->hash[2] = 0x98badcfe; in sha1_begin()
757 ctx->hash[3] = 0x10325476; in sha1_begin()
758 ctx->hash[4] = 0xc3d2e1f0; in sha1_begin()
864 ctx->hash[i] = SWAP_BE32(ctx->hash[i]); in sha1_end()
866 hash_size *= sizeof(ctx->hash[0]); in sha1_end()
867 memcpy(resbuf, ctx->hash, hash_size); in sha1_end()
900 for (i = 0; i < ARRAY_SIZE(ctx->hash); ++i) in sha512_end()
901 ctx->hash[i] = SWAP_BE64(ctx->hash[i]); in sha512_end()
903 memcpy(resbuf, ctx->hash, sizeof(ctx->hash)); in sha512_end()
904 return sizeof(ctx->hash); in sha512_end()