Lines Matching refs:i
116 for( i = 0; i < 16; i++ ) \
117 y[i] ^= b[i]; \
131 for( i = 0; i < len; i++ ) \
132 dst[i] = src[i] ^ b[i];
144 unsigned char i; in ccm_auth_crypt() local
189 for( i = 0, len_left = length; i < q; i++, len_left >>= 8 ) in ccm_auth_crypt()
190 b[15-i] = (unsigned char)( len_left & 0xFF ); in ccm_auth_crypt()
287 for( i = 0; i < q; i++ ) in ccm_auth_crypt()
288 if( ++ctr[15-i] != 0 ) in ccm_auth_crypt()
295 for( i = 0; i < q; i++ ) in ccm_auth_crypt()
296 ctr[15-i] = 0; in ccm_auth_crypt()
328 unsigned char i; in mbedtls_ccm_auth_decrypt() local
339 for( diff = 0, i = 0; i < tag_len; i++ ) in mbedtls_ccm_auth_decrypt()
340 diff |= tag[i] ^ check_tag[i]; in mbedtls_ccm_auth_decrypt()
404 size_t i; in mbedtls_ccm_self_test() local
417 for( i = 0; i < NB_TESTS; i++ ) in mbedtls_ccm_self_test()
420 mbedtls_printf( " CCM-AES #%u: ", (unsigned int) i + 1 ); in mbedtls_ccm_self_test()
422 ret = mbedtls_ccm_encrypt_and_tag( &ctx, msg_len[i], in mbedtls_ccm_self_test()
423 iv, iv_len[i], ad, add_len[i], in mbedtls_ccm_self_test()
425 out + msg_len[i], tag_len[i] ); in mbedtls_ccm_self_test()
428 memcmp( out, res[i], msg_len[i] + tag_len[i] ) != 0 ) in mbedtls_ccm_self_test()
436 ret = mbedtls_ccm_auth_decrypt( &ctx, msg_len[i], in mbedtls_ccm_self_test()
437 iv, iv_len[i], ad, add_len[i], in mbedtls_ccm_self_test()
438 res[i], out, in mbedtls_ccm_self_test()
439 res[i] + msg_len[i], tag_len[i] ); in mbedtls_ccm_self_test()
442 memcmp( out, msg, msg_len[i] ) != 0 ) in mbedtls_ccm_self_test()