Lines Matching refs:u

1222     int ret = 0, i, j, u, v;  in mbedtls_aes_self_test()  local
1249 u = i >> 1; in mbedtls_aes_self_test()
1253 mbedtls_printf( " AES-ECB-%3d (%s): ", 128 + u * 64, in mbedtls_aes_self_test()
1260 mbedtls_aes_setkey_dec( &ctx, key, 128 + u * 64 ); in mbedtls_aes_self_test()
1265 if( memcmp( buf, aes_test_ecb_dec[u], 16 ) != 0 ) in mbedtls_aes_self_test()
1276 mbedtls_aes_setkey_enc( &ctx, key, 128 + u * 64 ); in mbedtls_aes_self_test()
1281 if( memcmp( buf, aes_test_ecb_enc[u], 16 ) != 0 ) in mbedtls_aes_self_test()
1304 u = i >> 1; in mbedtls_aes_self_test()
1308 mbedtls_printf( " AES-CBC-%3d (%s): ", 128 + u * 64, in mbedtls_aes_self_test()
1317 mbedtls_aes_setkey_dec( &ctx, key, 128 + u * 64 ); in mbedtls_aes_self_test()
1322 if( memcmp( buf, aes_test_cbc_dec[u], 16 ) != 0 ) in mbedtls_aes_self_test()
1333 mbedtls_aes_setkey_enc( &ctx, key, 128 + u * 64 ); in mbedtls_aes_self_test()
1346 if( memcmp( prv, aes_test_cbc_enc[u], 16 ) != 0 ) in mbedtls_aes_self_test()
1370 u = i >> 1; in mbedtls_aes_self_test()
1374 mbedtls_printf( " AES-CFB128-%3d (%s): ", 128 + u * 64, in mbedtls_aes_self_test()
1378 memcpy( key, aes_test_cfb128_key[u], 16 + u * 8 ); in mbedtls_aes_self_test()
1381 mbedtls_aes_setkey_enc( &ctx, key, 128 + u * 64 ); in mbedtls_aes_self_test()
1385 memcpy( buf, aes_test_cfb128_ct[u], 64 ); in mbedtls_aes_self_test()
1402 if( memcmp( buf, aes_test_cfb128_ct[u], 64 ) != 0 ) in mbedtls_aes_self_test()
1426 u = i >> 1; in mbedtls_aes_self_test()
1433 memcpy( nonce_counter, aes_test_ctr_nonce_counter[u], 16 ); in mbedtls_aes_self_test()
1434 memcpy( key, aes_test_ctr_key[u], 16 ); in mbedtls_aes_self_test()
1441 len = aes_test_ctr_len[u]; in mbedtls_aes_self_test()
1442 memcpy( buf, aes_test_ctr_ct[u], len ); in mbedtls_aes_self_test()
1447 if( memcmp( buf, aes_test_ctr_pt[u], len ) != 0 ) in mbedtls_aes_self_test()
1458 len = aes_test_ctr_len[u]; in mbedtls_aes_self_test()
1459 memcpy( buf, aes_test_ctr_pt[u], len ); in mbedtls_aes_self_test()
1464 if( memcmp( buf, aes_test_ctr_ct[u], len ) != 0 ) in mbedtls_aes_self_test()