Lines Matching refs:i
463 unsigned int i; in mbedtls_internal_sha256_process_c() local
465 for (i = 0; i < 8; i++) { in mbedtls_internal_sha256_process_c()
466 local.A[i] = ctx->state[i]; in mbedtls_internal_sha256_process_c()
470 for (i = 0; i < 64; i++) { in mbedtls_internal_sha256_process_c()
471 if (i < 16) { in mbedtls_internal_sha256_process_c()
472 local.W[i] = MBEDTLS_GET_UINT32_BE(data, 4 * i); in mbedtls_internal_sha256_process_c()
474 R(i); in mbedtls_internal_sha256_process_c()
478 local.A[5], local.A[6], local.A[7], local.W[i], K[i]); in mbedtls_internal_sha256_process_c()
487 for (i = 0; i < 16; i++) { in mbedtls_internal_sha256_process_c()
488 local.W[i] = MBEDTLS_GET_UINT32_BE(data, 4 * i); in mbedtls_internal_sha256_process_c()
491 for (i = 0; i < 16; i += 8) { in mbedtls_internal_sha256_process_c()
493 local.A[5], local.A[6], local.A[7], local.W[i+0], K[i+0]); in mbedtls_internal_sha256_process_c()
495 local.A[4], local.A[5], local.A[6], local.W[i+1], K[i+1]); in mbedtls_internal_sha256_process_c()
497 local.A[3], local.A[4], local.A[5], local.W[i+2], K[i+2]); in mbedtls_internal_sha256_process_c()
499 local.A[2], local.A[3], local.A[4], local.W[i+3], K[i+3]); in mbedtls_internal_sha256_process_c()
501 local.A[1], local.A[2], local.A[3], local.W[i+4], K[i+4]); in mbedtls_internal_sha256_process_c()
503 local.A[0], local.A[1], local.A[2], local.W[i+5], K[i+5]); in mbedtls_internal_sha256_process_c()
505 local.A[7], local.A[0], local.A[1], local.W[i+6], K[i+6]); in mbedtls_internal_sha256_process_c()
507 local.A[6], local.A[7], local.A[0], local.W[i+7], K[i+7]); in mbedtls_internal_sha256_process_c()
510 for (i = 16; i < 64; i += 8) { in mbedtls_internal_sha256_process_c()
512 local.A[5], local.A[6], local.A[7], R(i+0), K[i+0]); in mbedtls_internal_sha256_process_c()
514 local.A[4], local.A[5], local.A[6], R(i+1), K[i+1]); in mbedtls_internal_sha256_process_c()
516 local.A[3], local.A[4], local.A[5], R(i+2), K[i+2]); in mbedtls_internal_sha256_process_c()
518 local.A[2], local.A[3], local.A[4], R(i+3), K[i+3]); in mbedtls_internal_sha256_process_c()
520 local.A[1], local.A[2], local.A[3], R(i+4), K[i+4]); in mbedtls_internal_sha256_process_c()
522 local.A[0], local.A[1], local.A[2], R(i+5), K[i+5]); in mbedtls_internal_sha256_process_c()
524 local.A[7], local.A[0], local.A[1], R(i+6), K[i+6]); in mbedtls_internal_sha256_process_c()
526 local.A[6], local.A[7], local.A[0], R(i+7), K[i+7]); in mbedtls_internal_sha256_process_c()
530 for (i = 0; i < 8; i++) { in mbedtls_internal_sha256_process_c()
531 ctx->state[i] += local.A[i]; in mbedtls_internal_sha256_process_c()
839 int i, buflen, ret = 0; in mbedtls_sha256_common_self_test() local
863 for (i = 0; i < 3; i++) { in mbedtls_sha256_common_self_test()
865 mbedtls_printf(" SHA-%d test #%d: ", 256 - is224 * 32, i + 1); in mbedtls_sha256_common_self_test()
872 if (i == 2) { in mbedtls_sha256_common_self_test()
883 ret = mbedtls_sha256_update(&ctx, sha_test_buf[i], in mbedtls_sha256_common_self_test()
884 sha_test_buflen[i]); in mbedtls_sha256_common_self_test()
895 if (memcmp(sha256sum, sha_test_sum[i], 32 - is224 * 4) != 0) { in mbedtls_sha256_common_self_test()