Lines Matching +full:- +full:j
11 * top-level directory.
102 size_t j; in test_hmac_alloc() local
104 if (!qcrypto_hmac_supports(data->alg)) { in test_hmac_alloc()
108 exp_output = data->hex_digest; in test_hmac_alloc()
110 hmac = qcrypto_hmac_new(data->alg, (const uint8_t *)KEY, in test_hmac_alloc()
119 for (j = 0; j < resultlen; j++) { in test_hmac_alloc()
120 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_alloc()
121 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_alloc()
141 size_t j; in test_hmac_prealloc() local
143 if (!qcrypto_hmac_supports(data->alg)) { in test_hmac_prealloc()
147 exp_output = data->hex_digest; in test_hmac_prealloc()
152 hmac = qcrypto_hmac_new(data->alg, (const uint8_t *)KEY, in test_hmac_prealloc()
160 /* Validate that our pre-allocated pointer was not replaced */ in test_hmac_prealloc()
163 exp_output = data->hex_digest; in test_hmac_prealloc()
164 for (j = 0; j < resultlen; j++) { in test_hmac_prealloc()
165 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_prealloc()
166 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_prealloc()
186 size_t j; in test_hmac_iov() local
193 if (!qcrypto_hmac_supports(data->alg)) { in test_hmac_iov()
197 exp_output = data->hex_digest; in test_hmac_iov()
199 hmac = qcrypto_hmac_new(data->alg, (const uint8_t *)KEY, in test_hmac_iov()
207 for (j = 0; j < resultlen; j++) { in test_hmac_iov()
208 g_assert(exp_output[j * 2] == hex[(result[j] >> 4) & 0xf]); in test_hmac_iov()
209 g_assert(exp_output[j * 2 + 1] == hex[result[j] & 0xf]); in test_hmac_iov()
229 if (!qcrypto_hmac_supports(data->alg)) { in test_hmac_digest()
233 exp_output = data->hex_digest; in test_hmac_digest()
235 hmac = qcrypto_hmac_new(data->alg, (const uint8_t *)KEY, in test_hmac_digest()