Lines Matching refs:i

121     for( i = 0; i < 16; i++ )                                               \
122 y[i] ^= b[i]; \
141 for( i = 0; i < (len); i++ ) \
142 (dst)[i] = (src)[i] ^ b[i]; \
155 unsigned char i; in ccm_auth_crypt() local
202 for( i = 0, len_left = length; i < q; i++, len_left >>= 8 ) in ccm_auth_crypt()
203 b[15-i] = MBEDTLS_BYTE_0( len_left ); in ccm_auth_crypt()
299 for( i = 0; i < q; i++ ) in ccm_auth_crypt()
300 if( ++ctr[15-i] != 0 ) in ccm_auth_crypt()
307 for( i = 0; i < q; i++ ) in ccm_auth_crypt()
308 ctr[15-i] = 0; in ccm_auth_crypt()
365 unsigned char i; in mbedtls_ccm_star_auth_decrypt() local
383 for( diff = 0, i = 0; i < tag_len; i++ ) in mbedtls_ccm_star_auth_decrypt()
384 diff |= tag[i] ^ check_tag[i]; in mbedtls_ccm_star_auth_decrypt()
475 size_t i; in mbedtls_ccm_self_test() local
489 for( i = 0; i < NB_TESTS; i++ ) in mbedtls_ccm_self_test()
492 mbedtls_printf( " CCM-AES #%u: ", (unsigned int) i + 1 ); in mbedtls_ccm_self_test()
496 memcpy( plaintext, msg_test_data, msg_len_test_data[i] ); in mbedtls_ccm_self_test()
498 ret = mbedtls_ccm_encrypt_and_tag( &ctx, msg_len_test_data[i], in mbedtls_ccm_self_test()
499 iv_test_data, iv_len_test_data[i], in mbedtls_ccm_self_test()
500 ad_test_data, add_len_test_data[i], in mbedtls_ccm_self_test()
502 ciphertext + msg_len_test_data[i], in mbedtls_ccm_self_test()
503 tag_len_test_data[i] ); in mbedtls_ccm_self_test()
506 memcmp( ciphertext, res_test_data[i], in mbedtls_ccm_self_test()
507 msg_len_test_data[i] + tag_len_test_data[i] ) != 0 ) in mbedtls_ccm_self_test()
516 ret = mbedtls_ccm_auth_decrypt( &ctx, msg_len_test_data[i], in mbedtls_ccm_self_test()
517 iv_test_data, iv_len_test_data[i], in mbedtls_ccm_self_test()
518 ad_test_data, add_len_test_data[i], in mbedtls_ccm_self_test()
520 ciphertext + msg_len_test_data[i], in mbedtls_ccm_self_test()
521 tag_len_test_data[i] ); in mbedtls_ccm_self_test()
524 memcmp( plaintext, msg_test_data, msg_len_test_data[i] ) != 0 ) in mbedtls_ccm_self_test()