| /lib/mbedtls/external/mbedtls/tests/suites/ |
| A D | test_suite_mps.function | 63 TEST_MEMORY_COMPARE(tmp, 100, bufA, 100); 113 TEST_MEMORY_COMPARE(tmp, 100, bufA, 100); 120 TEST_MEMORY_COMPARE(tmp, 100, bufB, 100); 169 TEST_MEMORY_COMPARE(tmp, 10, buf, 10); 211 TEST_MEMORY_COMPARE(tmp, 10, bufA, 10); 254 TEST_MEMORY_COMPARE(tmp, 50, buf, 50); 297 TEST_MEMORY_COMPARE(tmp, 50, buf, 50); 339 TEST_MEMORY_COMPARE(tmp, 50, buf, 50); 391 TEST_MEMORY_COMPARE(tmp, 80, bufA, 80); 515 TEST_MEMORY_COMPARE(tmp, 80, bufA, 80); [all …]
|
| A D | test_suite_bignum_mod_raw.function | 423 TEST_MEMORY_COMPARE(X, bytes, R, bytes); 428 TEST_MEMORY_COMPARE(X, bytes, R, bytes); 433 TEST_MEMORY_COMPARE(X, bytes, R, bytes); 581 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 586 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 591 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 726 TEST_MEMORY_COMPARE(R, bytes, X, bytes); 732 TEST_MEMORY_COMPARE(R, bytes, X, bytes); 739 TEST_MEMORY_COMPARE(A, bytes, X, bytes); 790 TEST_MEMORY_COMPARE(R, bytes, X, bytes); [all …]
|
| A D | test_suite_common.function | 31 TEST_MEMORY_COMPARE(r1, n, r2, n); 39 TEST_MEMORY_COMPARE(r1, n, r2, n); 47 TEST_MEMORY_COMPARE(r1, n, r2, n); 55 TEST_MEMORY_COMPARE(r1, n, r2, n); 63 TEST_MEMORY_COMPARE(r1, n, r2, n); 74 TEST_MEMORY_COMPARE(r1 + r_off, n, r2 + r_off, n);
|
| A D | test_suite_bignum_core.function | 37 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 42 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 47 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 54 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 59 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 65 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 114 TEST_MEMORY_COMPARE(X, bytes, A, bytes); 118 TEST_MEMORY_COMPARE(X, bytes, S, bytes); 667 TEST_MEMORY_COMPARE(r, bytes, x, bytes); 675 TEST_MEMORY_COMPARE(r, bytes, x, bytes); [all …]
|
| A D | test_suite_aria.function | 82 TEST_MEMORY_COMPARE(output, expected_output->len, 110 TEST_MEMORY_COMPARE(output, expected_output->len, 135 TEST_MEMORY_COMPARE(output, expected_output->len, 160 TEST_MEMORY_COMPARE(output, expected_output->len, 187 TEST_MEMORY_COMPARE(output, expected_output->len, 213 TEST_MEMORY_COMPARE(output, expected_output->len, 239 TEST_MEMORY_COMPARE(output, expected_output->len, 265 TEST_MEMORY_COMPARE(output, expected_output->len,
|
| A D | test_suite_poly1305.function | 25 TEST_MEMORY_COMPARE(mac, expected_mac->len, 39 TEST_MEMORY_COMPARE(mac, expected_mac->len, 56 TEST_MEMORY_COMPARE(mac, expected_mac->len, 72 TEST_MEMORY_COMPARE(mac, expected_mac->len,
|
| A D | test_suite_psa_crypto_memory.function | 48 TEST_MEMORY_COMPARE(src_buffer, src_len, dst_buffer, src_len); 75 TEST_MEMORY_COMPARE(src_buffer, src_len, dst_buffer, src_len); 104 TEST_MEMORY_COMPARE(input, input_len, 148 TEST_MEMORY_COMPARE(local_input.buffer, local_input.length, 216 TEST_MEMORY_COMPARE(buffer_copy_for_comparison, output_len, 252 TEST_MEMORY_COMPARE(output, sizeof(output),
|
| A D | test_suite_chacha20.function | 32 TEST_MEMORY_COMPARE(output, expected_output_str->len, 47 TEST_MEMORY_COMPARE(output, expected_output_str->len, 63 TEST_MEMORY_COMPARE(output, expected_output_str->len,
|
| A D | test_suite_md.function | 209 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len); 230 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len); 272 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len); 279 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len); 319 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len); 326 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len); 352 TEST_MEMORY_COMPARE(output, trunc_size, hash->x, hash->len); 387 TEST_MEMORY_COMPARE(output, trunc_size, hash->x, hash->len); 397 TEST_MEMORY_COMPARE(output, trunc_size, hash->x, hash->len); 419 TEST_MEMORY_COMPARE(output, mbedtls_md_get_size(md_info), hash->x, hash->len);
|
| A D | test_suite_platform_printf.function | 37 TEST_MEMORY_COMPARE(result, n + 1, output, n + 1); 62 TEST_MEMORY_COMPARE(expected, n + 1, output, n + 1); 82 TEST_MEMORY_COMPARE(result, n + 1, output, n + 1);
|
| A D | test_suite_gcm.function | 40 TEST_MEMORY_COMPARE(output, olen, expected_output->x, n1); 48 TEST_MEMORY_COMPARE(output, olen, expected_output->x + n1, n2); 55 TEST_MEMORY_COMPARE(output, tag->len, tag->x, tag->len); 94 TEST_MEMORY_COMPARE(output, olen, expected_output->x, input->len); 101 TEST_MEMORY_COMPARE(output, tag->len, tag->x, tag->len); 131 TEST_MEMORY_COMPARE(output_tag, tag->len, tag->x, tag->len); 150 TEST_MEMORY_COMPARE(output, tag->len, tag->x, tag->len); 233 TEST_MEMORY_COMPARE(output, src_str->len, dst->x, dst->len); 234 TEST_MEMORY_COMPARE(tag_output, tag_len, tag->x, tag->len); 292 TEST_MEMORY_COMPARE(output, src_str->len, pt_result->x, pt_result->len);
|
| A D | test_suite_shax.function | 162 TEST_MEMORY_COMPARE(output, hash->len, hash->x, hash->len); 210 TEST_MEMORY_COMPARE(output, hash->len, hash->x, hash->len); 259 TEST_MEMORY_COMPARE(hash, hash_length, reference_hash, hash_length); 295 TEST_MEMORY_COMPARE(output, hash1->len, hash1->x, hash1->len); 301 TEST_MEMORY_COMPARE(output, hash2->len, hash2->x, hash2->len);
|
| A D | test_suite_hkdf.function | 29 TEST_MEMORY_COMPARE(okm, expected_okm->len, 59 TEST_MEMORY_COMPARE(output_prk, output_prk_len, prk->x, prk->len); 91 TEST_MEMORY_COMPARE(output_okm, okm->len, okm->x, okm->len);
|
| A D | test_suite_pkwrite.function | 115 TEST_MEMORY_COMPARE(start_buf, buf_len, check_buf, check_buf_len); 133 TEST_MEMORY_COMPARE(start_buf, buf_len, check_buf, check_buf_len); 196 TEST_MEMORY_COMPARE(derived_key_raw, derived_key_len, 212 TEST_MEMORY_COMPARE(derived_key_raw, derived_key_len,
|
| A D | test_suite_psa_crypto_hash.function | 29 TEST_MEMORY_COMPARE(expected_hash->x, expected_hash->len, 133 TEST_MEMORY_COMPARE(expected_hash->x, expected_hash->len, 139 TEST_MEMORY_COMPARE(expected_hash->x, expected_hash->len,
|
| A D | test_suite_bignum_mod.function | 10 TEST_MEMORY_COMPARE((a).p, (a).limbs * sizeof(mbedtls_mpi_uint), \ 131 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); 136 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); 141 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); 146 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); 151 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); 156 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); 161 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); 166 TEST_MEMORY_COMPARE(rX.p, bytes, rR.p, bytes); 705 TEST_MEMORY_COMPARE(r.p, r.limbs, r_copy.p, r_copy.limbs); [all …]
|
| A D | test_suite_ccm.function | 39 TEST_MEMORY_COMPARE(output, olen, expected_output->x, n1); 47 TEST_MEMORY_COMPARE(output, olen, expected_output->x + n1, n2); 53 TEST_MEMORY_COMPARE(output, tag->len, tag->x, tag->len); 216 TEST_MEMORY_COMPARE(io_msg_buf, msg->len, result->x, msg->len); 217 TEST_MEMORY_COMPARE(tag_buf, expected_tag_len, expected_tag, expected_tag_len); 263 TEST_MEMORY_COMPARE(output, olen, result->x, result->len); 390 TEST_MEMORY_COMPARE(io_msg_buf, msg->len, expected_result->x, msg->len); 391 TEST_MEMORY_COMPARE(tag_buf, expected_tag_len, expected_tag, expected_tag_len); 526 TEST_MEMORY_COMPARE(output, olen, result->x, result->len); 532 TEST_MEMORY_COMPARE(output, tag->len, tag->x, tag->len); [all …]
|
| A D | test_suite_psa_its.function | 103 TEST_MEMORY_COMPARE(data->x, data->len, buffer, ret_len); 132 TEST_MEMORY_COMPARE(data1->x, data1->len, buffer, ret_len); 140 TEST_MEMORY_COMPARE(data2->x, data2->len, buffer, ret_len); 170 TEST_MEMORY_COMPARE(retrieved, ret_len, 226 TEST_MEMORY_COMPARE(data->x + offset, (size_t) length_arg,
|
| A D | test_suite_pkcs1_v21.function | 51 TEST_MEMORY_COMPARE(output, ctx.len, result_str->x, result_str->len); 113 TEST_MEMORY_COMPARE(output, output_len, result_str->x, result_str->len); 170 TEST_MEMORY_COMPARE(output, ctx.len, result_str->x, result_str->len); 182 TEST_MEMORY_COMPARE(output, ctx.len, result_str->x, result_str->len);
|
| A D | test_suite_psa_crypto_driver_wrappers.function | 549 TEST_MEMORY_COMPARE(signature, signature_length, 676 TEST_MEMORY_COMPARE(signature, signature_length, 798 TEST_MEMORY_COMPARE(actual_output, actual_output_length, 931 TEST_MEMORY_COMPARE(actual_output, actual_output_length, 1010 TEST_MEMORY_COMPARE(actual_output, actual_output_length, 1099 TEST_MEMORY_COMPARE(output1 + iv_size, output1_length - iv_size, 1768 TEST_MEMORY_COMPARE(expected_data->x, expected_data->len, 1837 TEST_MEMORY_COMPARE(expected_mac->x, expected_mac->len, 1955 TEST_MEMORY_COMPARE(expected_mac->x, expected_mac->len, 2157 TEST_MEMORY_COMPARE(output_buffer, output_size, [all …]
|
| A D | test_suite_bignum_random.function | 177 TEST_MEMORY_COMPARE(R_core, limbs * ciL, 185 TEST_MEMORY_COMPARE(&rnd_core, sizeof(rnd_core), 240 TEST_MEMORY_COMPARE(R_core, N.limbs * ciL, 244 TEST_MEMORY_COMPARE(R_core, N.limbs * ciL, 252 TEST_MEMORY_COMPARE(&rnd_core, sizeof(rnd_core), 254 TEST_MEMORY_COMPARE(&rnd_core, sizeof(rnd_core),
|
| A D | test_suite_psa_crypto_slot_management.function | 309 TEST_MEMORY_COMPARE(key_data->x, key_data->len, 404 TEST_MEMORY_COMPARE(material1, sizeof(material1), 580 TEST_MEMORY_COMPARE(material->x, material->len, 694 TEST_MEMORY_COMPARE(target_material->x, target_material->len, 835 TEST_MEMORY_COMPARE(exported, exported_length, 912 TEST_MEMORY_COMPARE(exported, exported_length, 988 TEST_MEMORY_COMPARE(exported, exported_length, (uint8_t *) &i, sizeof(i)); 1016 TEST_MEMORY_COMPARE(exported, exported_length, 1028 TEST_MEMORY_COMPARE(exported, exported_length,
|
| A D | test_suite_asn1write.function | 40 TEST_MEMORY_COMPARE(data->p, (size_t) (data->end - data->p), 325 TEST_MEMORY_COMPARE(alg.p, alg.len, oid->x, oid->len); 443 TEST_MEMORY_COMPARE(read.p, read.len, 548 TEST_MEMORY_COMPARE(found->val.p, found->val.len, 583 TEST_MEMORY_COMPARE(found->oid.p, found->oid.len, oid, oid_len); 590 TEST_MEMORY_COMPARE(found->val.p, found->val.len,
|
| A D | test_suite_constant_time.function | 362 TEST_MEMORY_COMPARE(expected, size, result + offset, size); 382 TEST_MEMORY_COMPARE(expected, size, result, size); 405 TEST_MEMORY_COMPARE(expected, size, result, size); 425 TEST_MEMORY_COMPARE(expected, size, src + offset, size); 492 TEST_MEMORY_COMPARE(dst, len, src + secret, len);
|
| /lib/mbedtls/external/mbedtls/tests/include/test/ |
| A D | macros.h | 199 #define TEST_MEMORY_COMPARE(p1, size1, p2, size2) \ macro 208 #define ASSERT_COMPARE(p1, size1, p2, size2) TEST_MEMORY_COMPARE(p1, size1, p2, size2)
|