Lines Matching refs:i

90     size_t i;  in test_hash_alloc()  local
92 for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) { in test_hash_alloc()
98 if (!qcrypto_hash_supports(i)) { in test_hash_alloc()
102 ret = qcrypto_hash_bytes(i, in test_hash_alloc()
109 g_assert(resultlen == expected_lens[i]); in test_hash_alloc()
112 g_assert(expected_outputs[i][j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hash_alloc()
113 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_alloc()
122 size_t i; in test_hash_prealloc() local
124 for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) { in test_hash_prealloc()
130 if (!qcrypto_hash_supports(i)) { in test_hash_prealloc()
134 resultlen = expected_lens[i]; in test_hash_prealloc()
137 ret = qcrypto_hash_bytes(i, in test_hash_prealloc()
145 g_assert(resultlen == expected_lens[i]); in test_hash_prealloc()
147 g_assert(expected_outputs[i][j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hash_prealloc()
148 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_prealloc()
158 size_t i; in test_hash_iov() local
160 for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) { in test_hash_iov()
171 if (!qcrypto_hash_supports(i)) { in test_hash_iov()
175 ret = qcrypto_hash_bytesv(i, in test_hash_iov()
181 g_assert(resultlen == expected_lens[i]); in test_hash_iov()
183 g_assert(expected_outputs[i][j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hash_iov()
184 g_assert(expected_outputs[i][j * 2 + 1] == hex[result[j] & 0xf]); in test_hash_iov()
194 size_t i; in test_hash_digest() local
196 for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) { in test_hash_digest()
201 if (!qcrypto_hash_supports(i)) { in test_hash_digest()
205 digestsize = qcrypto_hash_digest_len(i); in test_hash_digest()
207 g_assert_cmpint(digestsize * 2, ==, strlen(expected_outputs[i])); in test_hash_digest()
209 ret = qcrypto_hash_digest(i, in test_hash_digest()
215 g_assert_cmpstr(digest, ==, expected_outputs[i]); in test_hash_digest()
223 size_t i; in test_hash_base64() local
225 for (i = 0; i < G_N_ELEMENTS(expected_outputs) ; i++) { in test_hash_base64()
229 if (!qcrypto_hash_supports(i)) { in test_hash_base64()
233 ret = qcrypto_hash_base64(i, in test_hash_base64()
239 g_assert_cmpstr(digest, ==, expected_outputs_b64[i]); in test_hash_base64()