| /lib/lwip/lwip/test/unit/dhcp/ |
| A D | test_dhcp.c | 248 if (memcmp(&data[i], mem, len) == 0) { in check_pkt_fuzzy() 501 fail_if(memcmp(&addr, &net_test.ip_addr, sizeof(ip4_addr_t))); in START_TEST() 503 fail_if(memcmp(&gw, &net_test.gw, sizeof(ip4_addr_t))); in START_TEST() 536 fail_if(memcmp(&gw, &net_test.gw, sizeof(ip4_addr_t))); in START_TEST() 578 fail_if(memcmp(&gw, &net_test.gw, sizeof(ip4_addr_t))); in START_TEST() 802 fail_if(memcmp(&gw, &net_test.gw, sizeof(ip4_addr_t))); in START_TEST() 829 fail_if(memcmp(&gw, &net_test.gw, sizeof(ip4_addr_t))); in START_TEST() 951 fail_if(memcmp(&gw, &net_test.gw, sizeof(ip4_addr_t))); in START_TEST() 1057 fail_if(memcmp(&gw, &net_test.gw, sizeof(ip4_addr_t))); in START_TEST() 1065 fail_if(memcmp(&gw, &net_test.gw, sizeof(ip4_addr_t))); in START_TEST() [all …]
|
| /lib/lwip/lwip/test/unit/ip6/ |
| A D | test_ip6.c | 166 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 170 fail_unless(memcmp(&addr, &addr_expected, 16) == 0); in START_TEST() 176 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 180 fail_unless(memcmp(&addr, &addr_expected, 16) == 0); in START_TEST() 186 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 190 fail_unless(memcmp(&addr, &addr_expected, 16) == 0); in START_TEST() 196 fail_unless(memcmp(&addr6, &addr_expected, 16) == 0); in START_TEST() 200 fail_unless(memcmp(&addr, &addr_expected, 16) == 0); in START_TEST() 260 fail_unless(!memcmp(test_netif6.hwaddr, zeros, 6)); in START_TEST() 263 fail_unless(!memcmp(netif_ip6_addr(&test_netif6, 0), zeros, sizeof(ip6_addr_t))); in START_TEST() [all …]
|
| /lib/acpi/ |
| A D | acpi.c | 49 if (!memcmp(hdr->signature, sig, ACPI_NAME_LEN)) in acpi_find_table() 51 if (!memcmp(hdr->signature, "FACP", ACPI_NAME_LEN)) { in acpi_find_table() 54 if (!memcmp(sig, "DSDT", ACPI_NAME_LEN)) { in acpi_find_table() 66 if (!memcmp(sig, "FACS", ACPI_NAME_LEN)) { in acpi_find_table()
|
| /lib/efi_selftest/ |
| A D | efi_selftest_variables.c | 78 if (memcmp(data, v + 4, 3)) { in execute() 106 if (memcmp(data, v, 8)) { in execute() 129 if (memcmp(data, v, len)) in execute() 168 if (memcmp(data, v, len)) in execute() 233 if (!memcmp(&guid, &guid_vendor0, sizeof(efi_guid_t)) && in execute() 242 if (!memcmp(&guid, &guid_vendor1, sizeof(efi_guid_t)) && in execute()
|
| A D | efi_selftest_mem.c | 54 if (memcmp(c1, "abcdedefghijknop", 16)) { in execute() 59 if (memcmp(c2, "abcfghijklmlmnop", 16)) { in execute() 64 if (memcmp(c1, "abcxxxxxxxxjknop", 16)) { in execute()
|
| A D | efi_selftest_manageprotocols.c | 337 if (memcmp(prot_buffer[0], &guid1, 16) && in execute() 338 memcmp(prot_buffer[1], &guid1, 16)) { in execute() 342 if (memcmp(prot_buffer[0], &guid3, 16) && in execute() 343 memcmp(prot_buffer[1], &guid3, 16)) { in execute()
|
| A D | efi_selftest_config_table.c | 157 if (!memcmp(&sys_table->tables[i].guid, &table_guid, in execute() 196 if (!memcmp(&sys_table->tables[i].guid, &table_guid, in execute() 239 if (!memcmp(&sys_table->tables[i].guid, &table_guid, in execute()
|
| A D | efi_selftest_ipconfig.c | 130 if (memcmp(ip, &manual_address.address, in execute() 132 memcmp(netmask, &manual_address.subnet_mask, in execute()
|
| A D | efi_selftest_load_file.c | 216 if (memcmp(file_path, dp_lf_file_remainder, in load_file() 252 if (memcmp(file_path, dp_lf2_file_remainder, in load_file2() 455 memcmp(exit_data, expected_text, sizeof(expected_text))) { in efi_st_load_file_execute()
|
| /lib/mbedtls/external/mbedtls/library/ |
| A D | pem.c | 328 if (s2 - s1 >= 22 && memcmp(s1, "Proc-Type: 4,ENCRYPTED", 22) == 0) { in mbedtls_pem_read_buffer() 344 if (s2 - s1 >= 23 && memcmp(s1, "DEK-Info: DES-EDE3-CBC,", 23) == 0) { in mbedtls_pem_read_buffer() 353 } else if (s2 - s1 >= 18 && memcmp(s1, "DEK-Info: DES-CBC,", 18) == 0) { in mbedtls_pem_read_buffer() 366 if (s2 - s1 >= 14 && memcmp(s1, "DEK-Info: AES-", 14) == 0) { in mbedtls_pem_read_buffer() 369 } else if (memcmp(s1, "DEK-Info: AES-128-CBC,", 22) == 0) { in mbedtls_pem_read_buffer() 371 } else if (memcmp(s1, "DEK-Info: AES-192-CBC,", 22) == 0) { in mbedtls_pem_read_buffer() 373 } else if (memcmp(s1, "DEK-Info: AES-256-CBC,", 22) == 0) { in mbedtls_pem_read_buffer()
|
| A D | sha3.c | 558 result = memcmp(hash, test_hash_sha3_224[test_num], 28); in mbedtls_sha3_kat_test() 561 result = memcmp(hash, test_hash_sha3_256[test_num], 32); in mbedtls_sha3_kat_test() 564 result = memcmp(hash, test_hash_sha3_384[test_num], 48); in mbedtls_sha3_kat_test() 567 result = memcmp(hash, test_hash_sha3_512[test_num], 64); in mbedtls_sha3_kat_test() 635 result = memcmp(hash, long_kat_hash_sha3_224, 28); in mbedtls_sha3_long_kat_test() 638 result = memcmp(hash, long_kat_hash_sha3_256, 32); in mbedtls_sha3_long_kat_test() 641 result = memcmp(hash, long_kat_hash_sha3_384, 48); in mbedtls_sha3_long_kat_test() 644 result = memcmp(hash, long_kat_hash_sha3_512, 64); in mbedtls_sha3_long_kat_test()
|
| A D | aria.c | 841 memcmp(blk, aria_test1_ecb_ct[i], MBEDTLS_ARIA_BLOCKSIZE) in mbedtls_aria_self_test() 856 memcmp(blk, aria_test1_ecb_pt, MBEDTLS_ARIA_BLOCKSIZE) in mbedtls_aria_self_test() 878 ARIA_SELF_TEST_ASSERT(memcmp(buf, aria_test2_cbc_ct[i], 48) in mbedtls_aria_self_test() 890 ARIA_SELF_TEST_ASSERT(memcmp(buf, aria_test2_pt, 48) != 0); in mbedtls_aria_self_test() 910 ARIA_SELF_TEST_ASSERT(memcmp(buf, aria_test2_cfb_ct[i], 48) != 0); in mbedtls_aria_self_test() 922 ARIA_SELF_TEST_ASSERT(memcmp(buf, aria_test2_pt, 48) != 0); in mbedtls_aria_self_test() 941 ARIA_SELF_TEST_ASSERT(memcmp(buf, aria_test2_ctr_ct[i], 48) != 0); in mbedtls_aria_self_test() 953 ARIA_SELF_TEST_ASSERT(memcmp(buf, aria_test2_pt, 48) != 0); in mbedtls_aria_self_test()
|
| A D | psa_crypto_pake.c | 240 if (memcmp(user, jpake_client_id, actual_user_len) == 0 && in mbedtls_psa_pake_setup() 241 memcmp(peer, jpake_server_id, actual_peer_len) == 0) { in mbedtls_psa_pake_setup() 244 if (memcmp(user, jpake_server_id, actual_user_len) == 0 && in mbedtls_psa_pake_setup() 245 memcmp(peer, jpake_client_id, actual_peer_len) == 0) { in mbedtls_psa_pake_setup()
|
| A D | gcm.c | 1095 if (memcmp(buf, ct_test_data[j * 6 + i], in mbedtls_gcm_self_test() 1097 memcmp(tag_buf, tag_test_data[j * 6 + i], 16) != 0) { in mbedtls_gcm_self_test() 1134 if (memcmp(buf, pt_test_data[pt_index_test_data[i]], in mbedtls_gcm_self_test() 1136 memcmp(tag_buf, tag_test_data[j * 6 + i], 16) != 0) { in mbedtls_gcm_self_test() 1216 if (memcmp(buf, ct_test_data[j * 6 + i], in mbedtls_gcm_self_test() 1218 memcmp(tag_buf, tag_test_data[j * 6 + i], 16) != 0) { in mbedtls_gcm_self_test() 1296 if (memcmp(buf, pt_test_data[pt_index_test_data[i]], in mbedtls_gcm_self_test() 1298 memcmp(tag_buf, tag_test_data[j * 6 + i], 16) != 0) { in mbedtls_gcm_self_test()
|
| /lib/mbedtls/external/mbedtls/3rdparty/everest/library/ |
| A D | x25519.c | 84 if( memcmp( buf, base, MBEDTLS_X25519_KEY_SIZE_BYTES) == 0 ) in mbedtls_x25519_make_params() 139 if( memcmp( buf, ctx->our_secret, MBEDTLS_X25519_KEY_SIZE_BYTES) == 0 ) in mbedtls_x25519_calc_secret() 168 if( memcmp( buf, base, MBEDTLS_X25519_KEY_SIZE_BYTES ) == 0 ) in mbedtls_x25519_make_public()
|
| /lib/lwip/lwip/contrib/addons/ipv6_static_routing/ |
| A D | ip6_route_table.c | 89 memcmp(&ip6_prefix->addr, &static_route_table[i].prefix.addr, in ip6_add_route_entry() 137 memcmp(&ip6_prefix->addr, &static_route_table[i].prefix.addr, in ip6_remove_route_entry() 176 if (memcmp(ip6_dest_addr, &static_route_table[i].prefix.addr, in ip6_find_route_entry()
|
| /lib/mbedtls/external/mbedtls/tests/suites/ |
| A D | test_suite_bignum_mod_raw.function | 85 TEST_ASSERT(memcmp(buf, input->x, input->len) == 0); 98 TEST_ASSERT(memcmp(input->x, buf, nb) == 0); 150 TEST_ASSERT(memcmp(X, Y, bytes) != 0); 165 TEST_ASSERT(memcmp(X, Y, bytes) != 0); 243 TEST_ASSERT(memcmp(X, tmp_X, bytes) != 0); 244 TEST_ASSERT(memcmp(X, tmp_Y, bytes) != 0); 245 TEST_ASSERT(memcmp(Y, tmp_X, bytes) != 0); 246 TEST_ASSERT(memcmp(Y, tmp_Y, bytes) != 0); 313 if (memcmp(A, B, bytes) == 0) { 436 if (memcmp(A, B, bytes) == 0) { [all …]
|
| A D | test_suite_random.function | 59 TEST_ASSERT(memcmp(output1, output2, OUTPUT_SIZE) != 0); 106 TEST_ASSERT(memcmp(output1, output2, OUTPUT_SIZE) != 0); 134 TEST_ASSERT(memcmp(output1, output2, OUTPUT_SIZE) != 0); 158 TEST_ASSERT(memcmp(output1, output2, OUTPUT_SIZE) != 0);
|
| A D | test_suite_chachapoly.function | 35 TEST_ASSERT(memcmp(output_str->x, output, output_str->len) == 0); 36 TEST_ASSERT(memcmp(mac_str->x, mac, 16U) == 0); 71 TEST_ASSERT(memcmp(output_str->x, output, output_str->len) == 0);
|
| A D | test_suite_base64.function | 124 TEST_ASSERT(memcmp(dst, res, len) == 0); 145 TEST_ASSERT(memcmp(dst->x, res, len) == 0); 162 TEST_ASSERT(memcmp(dst, dst_ref, len) == 0);
|
| /lib/lwip/lwip/test/unit/core/ |
| A D | test_def.c | 43 fail_unless(!memcmp(test_buf, expected, exp_len)); in test_def_itoa() 57 fail_unless(!memcmp(test_buf, expected, exp_len)); in test_def_itoa()
|
| /lib/mbedtls/external/mbedtls/programs/psa/ |
| A D | psa_hash.c | 105 (memcmp(hash, expected_hash, expected_hash_len) != 0)) { in main() 135 (memcmp(hash, expected_hash, expected_hash_len) != 0)) { in main()
|
| /lib/lwip/lwip/src/netif/ |
| A D | bridgeif.c | 179 if (br->fdbs[i].used && !memcmp(&br->fdbs[i].addr, addr, sizeof(struct eth_addr))) { in bridgeif_fdb_remove() 181 if (br->fdbs[i].used && !memcmp(&br->fdbs[i].addr, addr, sizeof(struct eth_addr))) { in bridgeif_fdb_remove() 204 if (!memcmp(&br->fdbs[i].addr, dst_addr, sizeof(struct eth_addr))) { in bridgeif_find_dst_ports() 230 if (!memcmp(br->netif->hwaddr, addr, sizeof(struct eth_addr))) { in bridgeif_is_local_mac() 237 if (!memcmp(portif->hwaddr, addr, sizeof(struct eth_addr))) { in bridgeif_is_local_mac()
|
| /lib/efi_loader/ |
| A D | helloworld.c | 147 if (!memcmp(&systable->tables[i].guid, &fdt_guid, in print_config_tables() 151 if (!memcmp(&systable->tables[i].guid, &acpi_guid, in print_config_tables() 155 if (!memcmp(&systable->tables[i].guid, &smbios_guid, in print_config_tables()
|
| /lib/mbedtls/external/mbedtls/include/mbedtls/ |
| A D | asn1.h | 123 memcmp((oid_str), (oid_buf)->p, (oid_buf)->len) != 0) 127 memcmp((oid_str), (oid_buf), (oid_buf_len)) != 0)
|