Lines Matching refs:i
496 unsigned int i; in mbedtls_internal_sha256_process_c() local
498 for (i = 0; i < 8; i++) { in mbedtls_internal_sha256_process_c()
499 local.A[i] = ctx->state[i]; in mbedtls_internal_sha256_process_c()
503 for (i = 0; i < 64; i++) { in mbedtls_internal_sha256_process_c()
504 if (i < 16) { in mbedtls_internal_sha256_process_c()
505 local.W[i] = MBEDTLS_GET_UINT32_BE(data, 4 * i); in mbedtls_internal_sha256_process_c()
507 R(i); in mbedtls_internal_sha256_process_c()
511 local.A[5], local.A[6], local.A[7], local.W[i], K[i]); in mbedtls_internal_sha256_process_c()
520 for (i = 0; i < 16; i++) { in mbedtls_internal_sha256_process_c()
521 local.W[i] = MBEDTLS_GET_UINT32_BE(data, 4 * i); in mbedtls_internal_sha256_process_c()
524 for (i = 0; i < 16; i += 8) { in mbedtls_internal_sha256_process_c()
526 local.A[5], local.A[6], local.A[7], local.W[i+0], K[i+0]); in mbedtls_internal_sha256_process_c()
528 local.A[4], local.A[5], local.A[6], local.W[i+1], K[i+1]); in mbedtls_internal_sha256_process_c()
530 local.A[3], local.A[4], local.A[5], local.W[i+2], K[i+2]); in mbedtls_internal_sha256_process_c()
532 local.A[2], local.A[3], local.A[4], local.W[i+3], K[i+3]); in mbedtls_internal_sha256_process_c()
534 local.A[1], local.A[2], local.A[3], local.W[i+4], K[i+4]); in mbedtls_internal_sha256_process_c()
536 local.A[0], local.A[1], local.A[2], local.W[i+5], K[i+5]); in mbedtls_internal_sha256_process_c()
538 local.A[7], local.A[0], local.A[1], local.W[i+6], K[i+6]); in mbedtls_internal_sha256_process_c()
540 local.A[6], local.A[7], local.A[0], local.W[i+7], K[i+7]); in mbedtls_internal_sha256_process_c()
543 for (i = 16; i < 64; i += 8) { in mbedtls_internal_sha256_process_c()
545 local.A[5], local.A[6], local.A[7], R(i+0), K[i+0]); in mbedtls_internal_sha256_process_c()
547 local.A[4], local.A[5], local.A[6], R(i+1), K[i+1]); in mbedtls_internal_sha256_process_c()
549 local.A[3], local.A[4], local.A[5], R(i+2), K[i+2]); in mbedtls_internal_sha256_process_c()
551 local.A[2], local.A[3], local.A[4], R(i+3), K[i+3]); in mbedtls_internal_sha256_process_c()
553 local.A[1], local.A[2], local.A[3], R(i+4), K[i+4]); in mbedtls_internal_sha256_process_c()
555 local.A[0], local.A[1], local.A[2], R(i+5), K[i+5]); in mbedtls_internal_sha256_process_c()
557 local.A[7], local.A[0], local.A[1], R(i+6), K[i+6]); in mbedtls_internal_sha256_process_c()
559 local.A[6], local.A[7], local.A[0], R(i+7), K[i+7]); in mbedtls_internal_sha256_process_c()
563 for (i = 0; i < 8; i++) { in mbedtls_internal_sha256_process_c()
564 ctx->state[i] += local.A[i]; in mbedtls_internal_sha256_process_c()
876 int i, buflen, ret = 0; in mbedtls_sha256_common_self_test() local
900 for (i = 0; i < 3; i++) { in mbedtls_sha256_common_self_test()
902 mbedtls_printf(" SHA-%d test #%d: ", 256 - is224 * 32, i + 1); in mbedtls_sha256_common_self_test()
909 if (i == 2) { in mbedtls_sha256_common_self_test()
920 ret = mbedtls_sha256_update(&ctx, sha_test_buf[i], in mbedtls_sha256_common_self_test()
921 sha_test_buflen[i]); in mbedtls_sha256_common_self_test()
932 if (memcmp(sha256sum, sha_test_sum[i], 32 - is224 * 4) != 0) { in mbedtls_sha256_common_self_test()