Lines Matching refs:i
105 int i; in keccak_f1600() local
112 for (i = 0; i < 5; i++) { in keccak_f1600()
113 lane[i] = s[i] ^ s[i + 5] ^ s[i + 10] ^ s[i + 15] ^ s[i + 20]; in keccak_f1600()
115 for (i = 0; i < 5; i++) { in keccak_f1600()
116 t = lane[(i + 4) % 5] ^ ROTR64(lane[(i + 1) % 5], 63); in keccak_f1600()
117 s[i] ^= t; s[i + 5] ^= t; s[i + 10] ^= t; s[i + 15] ^= t; s[i + 20] ^= t; in keccak_f1600()
143 for (i = 1; i < 25; i += 4) { in keccak_f1600()
144 uint32_t r = rho[(i - 1) >> 2]; in keccak_f1600()
146 for (int j = i; j < i + 4; j++) { in keccak_f1600()
152 s[i + 0] = ROTR64(s[i + 0], MBEDTLS_BYTE_3(r)); in keccak_f1600()
153 s[i + 1] = ROTR64(s[i + 1], MBEDTLS_BYTE_2(r)); in keccak_f1600()
154 s[i + 2] = ROTR64(s[i + 2], MBEDTLS_BYTE_1(r)); in keccak_f1600()
155 s[i + 3] = ROTR64(s[i + 3], MBEDTLS_BYTE_0(r)); in keccak_f1600()
162 for (i = 0; i < 24; i += 4) { in keccak_f1600()
163 uint32_t p = pi[i >> 2]; in keccak_f1600()
192 for (i = 0; i <= 20; i += 5) { in keccak_f1600()
193 lane[0] = s[i]; lane[1] = s[i + 1]; lane[2] = s[i + 2]; in keccak_f1600()
194 lane[3] = s[i + 3]; lane[4] = s[i + 4]; in keccak_f1600()
195 s[i + 0] ^= (~lane[1]) & lane[2]; in keccak_f1600()
196 s[i + 1] ^= (~lane[2]) & lane[3]; in keccak_f1600()
197 s[i + 2] ^= (~lane[3]) & lane[4]; in keccak_f1600()
198 s[i + 3] ^= (~lane[4]) & lane[0]; in keccak_f1600()
199 s[i + 4] ^= (~lane[0]) & lane[1]; in keccak_f1600()
613 for (int i = 0; i < 1000; i++) { in mbedtls_sha3_long_kat_test() local
667 int i; in mbedtls_sha3_self_test() local
670 for (i = 0; i < 2; i++) { in mbedtls_sha3_self_test()
672 "SHA3-224", MBEDTLS_SHA3_224, i)) { in mbedtls_sha3_self_test()
677 "SHA3-256", MBEDTLS_SHA3_256, i)) { in mbedtls_sha3_self_test()
682 "SHA3-384", MBEDTLS_SHA3_384, i)) { in mbedtls_sha3_self_test()
687 "SHA3-512", MBEDTLS_SHA3_512, i)) { in mbedtls_sha3_self_test()