Lines Matching refs:i
409 unsigned int i; in mbedtls_internal_sha256_process_c() local
411 for( i = 0; i < 8; i++ ) in mbedtls_internal_sha256_process_c()
412 local.A[i] = ctx->state[i]; in mbedtls_internal_sha256_process_c()
415 for( i = 0; i < 64; i++ ) in mbedtls_internal_sha256_process_c()
417 if( i < 16 ) in mbedtls_internal_sha256_process_c()
418 local.W[i] = MBEDTLS_GET_UINT32_BE( data, 4 * i ); in mbedtls_internal_sha256_process_c()
420 R( i ); in mbedtls_internal_sha256_process_c()
423 local.A[5], local.A[6], local.A[7], local.W[i], K[i] ); in mbedtls_internal_sha256_process_c()
432 for( i = 0; i < 16; i++ ) in mbedtls_internal_sha256_process_c()
433 local.W[i] = MBEDTLS_GET_UINT32_BE( data, 4 * i ); in mbedtls_internal_sha256_process_c()
435 for( i = 0; i < 16; i += 8 ) in mbedtls_internal_sha256_process_c()
438 local.A[5], local.A[6], local.A[7], local.W[i+0], K[i+0] ); in mbedtls_internal_sha256_process_c()
440 local.A[4], local.A[5], local.A[6], local.W[i+1], K[i+1] ); in mbedtls_internal_sha256_process_c()
442 local.A[3], local.A[4], local.A[5], local.W[i+2], K[i+2] ); in mbedtls_internal_sha256_process_c()
444 local.A[2], local.A[3], local.A[4], local.W[i+3], K[i+3] ); in mbedtls_internal_sha256_process_c()
446 local.A[1], local.A[2], local.A[3], local.W[i+4], K[i+4] ); in mbedtls_internal_sha256_process_c()
448 local.A[0], local.A[1], local.A[2], local.W[i+5], K[i+5] ); in mbedtls_internal_sha256_process_c()
450 local.A[7], local.A[0], local.A[1], local.W[i+6], K[i+6] ); in mbedtls_internal_sha256_process_c()
452 local.A[6], local.A[7], local.A[0], local.W[i+7], K[i+7] ); in mbedtls_internal_sha256_process_c()
455 for( i = 16; i < 64; i += 8 ) in mbedtls_internal_sha256_process_c()
458 local.A[5], local.A[6], local.A[7], R(i+0), K[i+0] ); in mbedtls_internal_sha256_process_c()
460 local.A[4], local.A[5], local.A[6], R(i+1), K[i+1] ); in mbedtls_internal_sha256_process_c()
462 local.A[3], local.A[4], local.A[5], R(i+2), K[i+2] ); in mbedtls_internal_sha256_process_c()
464 local.A[2], local.A[3], local.A[4], R(i+3), K[i+3] ); in mbedtls_internal_sha256_process_c()
466 local.A[1], local.A[2], local.A[3], R(i+4), K[i+4] ); in mbedtls_internal_sha256_process_c()
468 local.A[0], local.A[1], local.A[2], R(i+5), K[i+5] ); in mbedtls_internal_sha256_process_c()
470 local.A[7], local.A[0], local.A[1], R(i+6), K[i+6] ); in mbedtls_internal_sha256_process_c()
472 local.A[6], local.A[7], local.A[0], R(i+7), K[i+7] ); in mbedtls_internal_sha256_process_c()
476 for( i = 0; i < 8; i++ ) in mbedtls_internal_sha256_process_c()
477 ctx->state[i] += local.A[i]; in mbedtls_internal_sha256_process_c()
762 int i, j, k, buflen, ret = 0; in mbedtls_sha256_self_test() local
778 for( i = 0; i < 6; i++ ) in mbedtls_sha256_self_test()
780 j = i % 3; in mbedtls_sha256_self_test()
781 k = i < 3; in mbedtls_sha256_self_test()
813 if( memcmp( sha256sum, sha256_test_sum[i], 32 - k * 4 ) != 0 ) in mbedtls_sha256_self_test()