Lines Matching refs:wpa_printf
98 wpa_printf(MSG_ERROR, "AES-SIV mode encryption failed"); in test_siv()
102 wpa_printf(MSG_ERROR, in test_siv()
109 wpa_printf(MSG_ERROR, "AES-SIV mode decryption failed"); in test_siv()
113 wpa_printf(MSG_ERROR, in test_siv()
129 wpa_printf(MSG_ERROR, "AES-SIV mode encryption failed"); in test_siv()
133 wpa_printf(MSG_ERROR, in test_siv()
140 wpa_printf(MSG_ERROR, "AES-SIV mode decryption failed"); in test_siv()
144 wpa_printf(MSG_ERROR, in test_siv()
149 wpa_printf(MSG_INFO, "AES-SIV test cases passed"); in test_siv()
232 wpa_printf(MSG_ERROR, "OMAC1-AES-128 test vector %u failed", i); in test_omac1_vector()
245 wpa_printf(MSG_ERROR, in test_omac1_vector()
260 wpa_printf(MSG_ERROR, in test_omac1_vector()
276 wpa_printf(MSG_ERROR, "OMAC1-AES-128 short test mismatch"); in test_omac1_vector()
293 wpa_printf(MSG_INFO, "OMAC1-AES-128 test cases passed"); in test_omac1()
316 wpa_printf(MSG_ERROR, "AES-128 EAX mode encryption failed"); in test_eax()
320 wpa_printf(MSG_ERROR, in test_eax()
325 wpa_printf(MSG_ERROR, in test_eax()
332 wpa_printf(MSG_ERROR, "AES-128 EAX mode decryption failed"); in test_eax()
336 wpa_printf(MSG_ERROR, in test_eax()
341 wpa_printf(MSG_INFO, "AES-128 EAX mode test cases passed"); in test_eax()
399 wpa_printf(MSG_ERROR, "AES-CBC encrypt %d failed", i); in test_cbc()
406 wpa_printf(MSG_ERROR, "AES-CBC decrypt %d failed", i); in test_cbc()
483 wpa_printf(MSG_ERROR, "Invalid AES-ECB test vector %u", in test_ecb()
491 wpa_printf(MSG_ERROR, "AES-ECB encrypt %u failed", i); in test_ecb()
497 wpa_printf(MSG_INFO, "AES ECB mode test cases passed"); in test_ecb()
616 wpa_printf(MSG_INFO, "RFC 3394 - Test vector 4.1"); in test_key_wrap()
619 wpa_printf(MSG_ERROR, "AES-WRAP-128 reported failure"); in test_key_wrap()
623 wpa_printf(MSG_ERROR, "AES-WRAP-128 failed"); in test_key_wrap()
628 wpa_printf(MSG_ERROR, "AES-UNWRAP-128 reported failure"); in test_key_wrap()
632 wpa_printf(MSG_ERROR, "AES-UNWRAP-128 failed"); in test_key_wrap()
637 wpa_printf(MSG_INFO, "RFC 3394 - Test vector 4.2"); in test_key_wrap()
640 wpa_printf(MSG_ERROR, "AES-WRAP-192 reported failure"); in test_key_wrap()
644 wpa_printf(MSG_ERROR, "AES-WRAP-192 failed"); in test_key_wrap()
649 wpa_printf(MSG_ERROR, "AES-UNWRAP-192 reported failure"); in test_key_wrap()
653 wpa_printf(MSG_ERROR, "AES-UNWRAP-192 failed"); in test_key_wrap()
658 wpa_printf(MSG_INFO, "RFC 3394 - Test vector 4.3"); in test_key_wrap()
661 wpa_printf(MSG_ERROR, "AES-WRAP-256 reported failure"); in test_key_wrap()
665 wpa_printf(MSG_ERROR, "AES-WRAP-256 failed"); in test_key_wrap()
670 wpa_printf(MSG_ERROR, "AES-UNWRAP-256 reported failure"); in test_key_wrap()
674 wpa_printf(MSG_ERROR, "AES-UNWRAP-256 failed"); in test_key_wrap()
679 wpa_printf(MSG_INFO, "RFC 3394 - Test vector 4.4"); in test_key_wrap()
682 wpa_printf(MSG_ERROR, "AES-WRAP-192 reported failure"); in test_key_wrap()
686 wpa_printf(MSG_ERROR, "AES-WRAP-192 failed"); in test_key_wrap()
691 wpa_printf(MSG_ERROR, "AES-UNWRAP-192 reported failure"); in test_key_wrap()
695 wpa_printf(MSG_ERROR, "AES-UNWRAP-192 failed"); in test_key_wrap()
700 wpa_printf(MSG_INFO, "RFC 3394 - Test vector 4.5"); in test_key_wrap()
703 wpa_printf(MSG_ERROR, "AES-WRAP-256 reported failure"); in test_key_wrap()
707 wpa_printf(MSG_ERROR, "AES-WRAP-256 failed"); in test_key_wrap()
712 wpa_printf(MSG_ERROR, "AES-UNWRAP-256 reported failure"); in test_key_wrap()
716 wpa_printf(MSG_ERROR, "AES-UNWRAP-256 failed"); in test_key_wrap()
720 wpa_printf(MSG_INFO, "RFC 3394 - Test vector 4.6"); in test_key_wrap()
723 wpa_printf(MSG_ERROR, "AES-WRAP-256 reported failure"); in test_key_wrap()
727 wpa_printf(MSG_ERROR, "AES-WRAP-256 failed"); in test_key_wrap()
732 wpa_printf(MSG_ERROR, "AES-UNWRAP-256 reported failure"); in test_key_wrap()
736 wpa_printf(MSG_ERROR, "AES-UNWRAP-256 failed"); in test_key_wrap()
741 wpa_printf(MSG_INFO, "AES key wrap/unwrap test cases passed"); in test_key_wrap()
843 wpa_printf(MSG_DEBUG, "CTR-AES128.Encrypt"); in test_aes_ctr()
850 wpa_printf(MSG_ERROR, "aes_ctr_encrypt() failed"); in test_aes_ctr()
853 wpa_printf(MSG_ERROR, in test_aes_ctr()
859 wpa_printf(MSG_DEBUG, "CTR-AES192.Encrypt"); in test_aes_ctr()
866 wpa_printf(MSG_ERROR, "aes_ctr_encrypt() failed"); in test_aes_ctr()
869 wpa_printf(MSG_ERROR, in test_aes_ctr()
875 wpa_printf(MSG_DEBUG, "CTR-AES256.Encrypt"); in test_aes_ctr()
882 wpa_printf(MSG_ERROR, "aes_ctr_encrypt() failed"); in test_aes_ctr()
885 wpa_printf(MSG_ERROR, in test_aes_ctr()
948 wpa_printf(MSG_INFO, "MD5 test case %d", i); in test_md5()
954 wpa_printf(MSG_INFO, " FAIL"); in test_md5()
957 wpa_printf(MSG_INFO, " OK"); in test_md5()
966 wpa_printf(MSG_INFO, " FAIL"); in test_md5()
969 wpa_printf(MSG_INFO, " OK"); in test_md5()
974 wpa_printf(MSG_INFO, "MD5 test cases passed"); in test_md5()
978 wpa_printf(MSG_INFO, "MD5 test cases skipped due to CONFIG_FIPS"); in test_md5()
1093 wpa_printf(MSG_INFO, "EAP-FAST test cases"); in test_eap_fast()
1095 wpa_printf(MSG_INFO, "- T-PRF (SHA1) test case / master_secret"); in test_eap_fast()
1100 wpa_printf(MSG_INFO, "T-PRF test - FAILED!"); in test_eap_fast()
1105 wpa_printf(MSG_INFO, "- PRF (TLS, SHA1/MD5) test case / key_block"); in test_eap_fast()
1110 wpa_printf(MSG_INFO, "PRF test - FAILED!"); in test_eap_fast()
1115 wpa_printf(MSG_INFO, "- T-PRF (SHA1) test case / IMCK"); in test_eap_fast()
1119 wpa_printf(MSG_INFO, "T-PRF test - FAILED!"); in test_eap_fast()
1126 wpa_printf(MSG_INFO, "- T-PRF (SHA1) test case / MSK"); in test_eap_fast()
1130 wpa_printf(MSG_INFO, "T-PRF test - FAILED!"); in test_eap_fast()
1134 wpa_printf(MSG_INFO, "- T-PRF (SHA1) test case / EMSK"); in test_eap_fast()
1138 wpa_printf(MSG_INFO, "T-PRF test - FAILED!"); in test_eap_fast()
1142 wpa_printf(MSG_INFO, "- Compound MAC test case"); in test_eap_fast()
1147 wpa_printf(MSG_INFO, "Compound MAC test - FAILED!"); in test_eap_fast()
1355 wpa_printf(MSG_INFO, "PRF-SHA1 test cases:"); in test_sha1()
1360 wpa_printf(MSG_INFO, "Test case 0 - OK"); in test_sha1()
1362 wpa_printf(MSG_INFO, "Test case 0 - FAILED!"); in test_sha1()
1369 wpa_printf(MSG_INFO, "Test case 1 - OK"); in test_sha1()
1371 wpa_printf(MSG_INFO, "Test case 1 - FAILED!"); in test_sha1()
1378 wpa_printf(MSG_INFO, "Test case 2 - OK"); in test_sha1()
1380 wpa_printf(MSG_INFO, "Test case 2 - FAILED!"); in test_sha1()
1386 wpa_printf(MSG_INFO, "PBKDF2-SHA1 Passphrase test cases:"); in test_sha1()
1395 wpa_printf(MSG_INFO, "Test case %d - OK", i); in test_sha1()
1397 wpa_printf(MSG_INFO, "Test case %d - FAILED!", i); in test_sha1()
1402 wpa_printf(MSG_INFO, "PBKDF2-SHA1 test cases (RFC 6070):"); in test_sha1()
1410 wpa_printf(MSG_INFO, "Test case %d - OK", i); in test_sha1()
1412 wpa_printf(MSG_INFO, "Test case %d - FAILED!", i); in test_sha1()
1418 wpa_printf(MSG_INFO, "SHA1 test cases passed"); in test_sha1()
1846 wpa_printf(MSG_INFO, "SHA256 test case %d:", i + 1); in test_sha256()
1852 wpa_printf(MSG_INFO, " FAIL"); in test_sha256()
1855 wpa_printf(MSG_INFO, " OK"); in test_sha256()
1864 wpa_printf(MSG_INFO, " FAIL"); in test_sha256()
1867 wpa_printf(MSG_INFO, " OK"); in test_sha256()
1874 wpa_printf(MSG_INFO, "HMAC-SHA256 test case %d:", i + 1); in test_sha256()
1879 wpa_printf(MSG_INFO, " FAIL"); in test_sha256()
1882 wpa_printf(MSG_INFO, " OK"); in test_sha256()
1889 wpa_printf(MSG_INFO, " FAIL"); in test_sha256()
1892 wpa_printf(MSG_INFO, " OK"); in test_sha256()
1902 wpa_printf(MSG_INFO, " FAIL"); in test_sha256()
1905 wpa_printf(MSG_INFO, " OK"); in test_sha256()
1909 wpa_printf(MSG_INFO, "Test IEEE 802.11r KDF"); in test_sha256()
1922 wpa_printf(MSG_INFO, in test_sha256()
1930 wpa_printf(MSG_INFO, in test_sha256()
1940 wpa_printf(MSG_INFO, "SHA256 test cases passed"); in test_sha256()
1967 wpa_printf(MSG_INFO, "SHA384 test case 1: FAIL"); in test_sha384()
1970 wpa_printf(MSG_INFO, "SHA384 test case 1: OK"); in test_sha384()
1979 wpa_printf(MSG_INFO, "SHA384 test case 2: FAIL"); in test_sha384()
1982 wpa_printf(MSG_INFO, "SHA384 test case 2: OK"); in test_sha384()
1991 wpa_printf(MSG_INFO, "HMAC-SHA384 test case %d:", i + 1); in test_sha384()
1996 wpa_printf(MSG_INFO, " FAIL"); in test_sha384()
1999 wpa_printf(MSG_INFO, " OK"); in test_sha384()
2006 wpa_printf(MSG_INFO, " FAIL"); in test_sha384()
2009 wpa_printf(MSG_INFO, " OK"); in test_sha384()
2019 wpa_printf(MSG_INFO, " FAIL"); in test_sha384()
2022 wpa_printf(MSG_INFO, " OK"); in test_sha384()
2027 wpa_printf(MSG_INFO, "SHA384 test cases passed"); in test_sha384()
2052 wpa_printf(MSG_INFO, in test_fips186_2_prf()
2056 wpa_printf(MSG_INFO, "fips186_2_prf failed"); in test_fips186_2_prf()
2155 wpa_printf(MSG_INFO, "Testing Extract-and-Expand HKDF (RFC 5869)"); in test_extract_expand_hkdf()
2157 wpa_printf(MSG_INFO, "RFC 5869 - Test Case 1"); in test_extract_expand_hkdf()
2161 wpa_printf(MSG_INFO, "HKDF-Extract mismatch in PRK"); in test_extract_expand_hkdf()
2168 wpa_printf(MSG_INFO, "HKDF-Expand mismatch in OKM"); in test_extract_expand_hkdf()
2172 wpa_printf(MSG_INFO, "RFC 5869 - Test Case 2"); in test_extract_expand_hkdf()
2176 wpa_printf(MSG_INFO, "HKDF-Extract mismatch in PRK"); in test_extract_expand_hkdf()
2183 wpa_printf(MSG_INFO, "HKDF-Expand mismatch in OKM"); in test_extract_expand_hkdf()
2187 wpa_printf(MSG_INFO, "Extract-and-Expand HKDF test cases passed"); in test_extract_expand_hkdf()
2326 wpa_printf(MSG_INFO, "- %s", test->name); in run_hpke_test()
2336 wpa_printf(MSG_ERROR, "Could not parse test data"); in run_hpke_test()
2351 wpa_printf(MSG_ERROR, in run_hpke_test()
2362 wpa_printf(MSG_ERROR, "HPKE base open - failed to decrypt"); in run_hpke_test()
2369 wpa_printf(MSG_ERROR, in run_hpke_test()
2391 wpa_printf(MSG_ERROR, "Unexpected pkR length (%zu != %zu)", in run_hpke_test()
2400 wpa_printf(MSG_ERROR, in run_hpke_test()
2411 wpa_printf(MSG_ERROR, "HPKE base open - failed to encrypt"); in run_hpke_test()
2424 wpa_printf(MSG_ERROR, "HPKE base open - failed to decrypt own encrypted version"); in run_hpke_test()
2430 wpa_printf(MSG_ERROR, in run_hpke_test()
2461 wpa_printf(MSG_INFO, "RFC 9180 - HPKE"); in test_hpke()
2467 wpa_printf(MSG_INFO, "HPKE base open test cases passed"); in test_hpke()
2518 wpa_printf(MSG_ERROR, "nt_password_hash failed"); in test_ms_funcs()
2526 wpa_printf(MSG_ERROR, "generate_nt_response failed"); in test_ms_funcs()
2533 wpa_printf(MSG_ERROR, "hash_nt_password_hash failed"); in test_ms_funcs()
2545 wpa_printf(MSG_ERROR, "generate_authenticator_response failed"); in test_ms_funcs()
2551 wpa_printf(MSG_ERROR, "get_master_key failed"); in test_ms_funcs()
2558 wpa_printf(MSG_ERROR, "get_asymetric_start_key failed"); in test_ms_funcs()
2563 wpa_printf(MSG_ERROR, "ms_funcs: %d errors", errors); in test_ms_funcs()
2565 wpa_printf(MSG_INFO, "ms_funcs test cases passed"); in test_ms_funcs()
2569 wpa_printf(MSG_INFO, "ms_funcs test cases skipped due to CONFIG_FIPS"); in test_ms_funcs()
2579 wpa_printf(MSG_INFO, "crypto module tests"); in crypto_module_tests()