Lines Matching refs:os_memcmp
101 if (os_memcmp(out, iv_c, sizeof(iv_c)) != 0) { in test_siv()
112 if (os_memcmp(out, plaintext, sizeof(plaintext)) != 0) { in test_siv()
132 if (os_memcmp(out, iv_c_2, sizeof(iv_c_2)) != 0) { in test_siv()
143 if (os_memcmp(out, plaintext_2, sizeof(plaintext_2)) != 0) { in test_siv()
231 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
244 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
259 os_memcmp(result, tv->tag, 16) != 0) { in test_omac1_vector()
275 os_memcmp(result, result2, 16) != 0) { in test_omac1_vector()
319 if (os_memcmp(data, cipher, sizeof(data)) != 0) { in test_eax()
324 if (os_memcmp(tag, cipher + sizeof(data), AES_BLOCK_SIZE) != 0) { in test_eax()
335 if (os_memcmp(data, msg, sizeof(data)) != 0) { in test_eax()
398 os_memcmp(buf, tv->cipher, tv->len) != 0) { in test_cbc()
405 os_memcmp(buf, tv->plain, tv->len) != 0) { in test_cbc()
490 os_memcmp(out, cipher, 16) != 0) { in test_ecb()
622 if (os_memcmp(result, crypt41, sizeof(crypt41)) != 0) { in test_key_wrap()
631 if (os_memcmp(result, plain41, sizeof(plain41)) != 0) { in test_key_wrap()
643 if (os_memcmp(result, crypt42, sizeof(crypt42)) != 0) { in test_key_wrap()
652 if (os_memcmp(result, plain42, sizeof(plain42)) != 0) { in test_key_wrap()
664 if (os_memcmp(result, crypt43, sizeof(crypt43)) != 0) { in test_key_wrap()
673 if (os_memcmp(result, plain43, sizeof(plain43)) != 0) { in test_key_wrap()
685 if (os_memcmp(result, crypt44, sizeof(crypt44)) != 0) { in test_key_wrap()
694 if (os_memcmp(result, plain44, sizeof(plain44)) != 0) { in test_key_wrap()
706 if (os_memcmp(result, crypt45, sizeof(crypt45)) != 0) { in test_key_wrap()
715 if (os_memcmp(result, plain45, sizeof(plain45)) != 0) { in test_key_wrap()
726 if (os_memcmp(result, crypt46, sizeof(crypt46)) != 0) { in test_key_wrap()
735 if (os_memcmp(result, plain46, sizeof(plain46)) != 0) { in test_key_wrap()
852 } else if (os_memcmp(tmp, cipher128, len) != 0) { in test_aes_ctr()
868 } else if (os_memcmp(tmp, cipher192, len) != 0) { in test_aes_ctr()
884 } else if (os_memcmp(tmp, cipher256, len) != 0) { in test_aes_ctr()
953 os_memcmp(hash, tests[i].hash, 16) != 0) { in test_md5()
965 os_memcmp(hash, tests[i].hash, 16) != 0) { in test_md5()
1099 os_memcmp(master_secret, buf, sizeof(master_secret)) != 0) { in test_eap_fast()
1109 os_memcmp(key_block, buf, sizeof(key_block)) != 0) { in test_eap_fast()
1118 os_memcmp(imck, buf, sizeof(imck)) != 0) { in test_eap_fast()
1129 os_memcmp(msk, buf, sizeof(msk)) != 0) { in test_eap_fast()
1137 os_memcmp(emsk, buf, sizeof(emsk)) != 0) { in test_eap_fast()
1145 os_memcmp(tlv + sizeof(tlv) - 20, compound_mac, in test_eap_fast()
1359 os_memcmp(res, prf0, sizeof(prf0)) == 0) in test_sha1()
1368 os_memcmp(res, prf1, sizeof(prf1)) == 0) in test_sha1()
1377 os_memcmp(res, prf2, sizeof(prf2)) == 0) in test_sha1()
1394 os_memcmp(psk, test->psk, 32) == 0) in test_sha1()
1409 os_memcmp(dk, test->dk, test->dk_len) == 0) in test_sha1()
1878 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256()
1888 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256()
1901 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256()
1966 os_memcmp(hash, hash_res, 48) != 0) { in test_sha384()
1978 os_memcmp(hash, hash_res, 48) != 0) { in test_sha384()
1995 os_memcmp(hash, t->hash384, 48) != 0) { in test_sha384()
2005 os_memcmp(hash, t->hash384, 48) != 0) { in test_sha384()
2018 os_memcmp(hash, t->hash384, 48) != 0) { in test_sha384()
2055 os_memcmp(w, buf, sizeof(w)) != 0) { in test_fips186_2_prf()
2160 if (os_memcmp(prk, prk1, SHA256_MAC_LEN) != 0) { in test_extract_expand_hkdf()
2167 if (os_memcmp(okm, okm1, sizeof(okm1)) != 0) { in test_extract_expand_hkdf()
2175 if (os_memcmp(prk, prk2, SHA256_MAC_LEN) != 0) { in test_extract_expand_hkdf()
2182 if (os_memcmp(okm, okm2, sizeof(okm2)) != 0) { in test_extract_expand_hkdf()
2367 os_memcmp(wpabuf_head(res_pt), wpabuf_head(pt), in run_hpke_test()
2428 os_memcmp(wpabuf_head(res_pt), wpabuf_head(pt), in run_hpke_test()
2517 os_memcmp(password_hash, buf, sizeof(password_hash)) != 0) { in test_ms_funcs()
2525 os_memcmp(nt_response, buf, sizeof(nt_response)) != 0) { in test_ms_funcs()
2531 os_memcmp(password_hash_hash, buf, in test_ms_funcs()
2543 os_memcmp(authenticator_response, buf, in test_ms_funcs()
2550 os_memcmp(master_key, buf, sizeof(master_key)) != 0) { in test_ms_funcs()
2557 os_memcmp(send_start_key, buf, sizeof(send_start_key)) != 0) { in test_ms_funcs()