/openthread-latest/tests/unit/ |
D | test_hkdf_sha256.cpp | 131 for (const TestVector *test = &kTestVectors[0]; test < GetArrayEnd(kTestVectors); test++) in TestHkdfSha256() local 138 DumpBuffer("\nInput Key", test->mInKey, test->mInKeyLength); in TestHkdfSha256() 139 DumpBuffer("\nSalt", test->mSalt, test->mSaltLength); in TestHkdfSha256() 140 DumpBuffer("\nInfo", test->mInfo, test->mInfoLength); in TestHkdfSha256() 141 DumpBuffer("\nExpected Output Key", test->mOutKey, test->mOutKeyLength); in TestHkdfSha256() 145 testInputKey.mKey = test->mInKey; in TestHkdfSha256() 146 testInputKey.mKeyLength = test->mInKeyLength; in TestHkdfSha256() 148 hkdf.Extract(test->mSalt, test->mSaltLength, testInputKey); in TestHkdfSha256() 149 hkdf.Expand(test->mInfo, test->mInfoLength, outKey, test->mOutKeyLength); in TestHkdfSha256() 151 DumpBuffer("\nCalculated Output Key", outKey, test->mOutKeyLength); in TestHkdfSha256() [all …]
|
D | CMakeLists.txt | 63 add_library(ot-test-platform-ftd 67 add_library(ot-test-platform-rcp 72 target_include_directories(ot-test-platform-ftd 77 target_include_directories(ot-test-platform-rcp 82 target_compile_options(ot-test-platform-ftd 87 target_compile_options(ot-test-platform-rcp 93 target_compile_options(ot-test-platform-rcp 101 target_link_libraries(ot-test-platform-ftd 107 target_link_libraries(ot-test-platform-rcp 116 ot-test-platform-ftd [all …]
|
D | test_aes.cpp | 48 uint8_t test[] = {0x08, 0xD0, 0x84, 0x21, 0x43, 0x01, 0x00, 0x00, 0x00, 0x00, 0x48, 0xDE, in TestMacBeaconFrame() local 62 uint32_t headerLength = sizeof(test) - 8; in TestMacBeaconFrame() 74 aesCcm.Header(test, headerLength); in TestMacBeaconFrame() 76 aesCcm.Finalize(test + headerLength); in TestMacBeaconFrame() 78 VerifyOrQuit(memcmp(test, encrypted, sizeof(encrypted)) == 0); in TestMacBeaconFrame() 81 aesCcm.Header(test, headerLength); in TestMacBeaconFrame() 83 aesCcm.Finalize(test + headerLength); in TestMacBeaconFrame() 85 VerifyOrQuit(memcmp(test, decrypted, sizeof(decrypted)) == 0); in TestMacBeaconFrame() 99 uint8_t test[] = { in TestMacCommandFrame() local 135 aesCcm.Header(test, kHeaderLength); in TestMacCommandFrame() [all …]
|
D | README.md | 3 … be helpful for developers to debug failed unit test cases if they got one in CI or to add some ne… 32 To run a specific unit test, for example, `ot-test-spinel`: 36 $ ctest -R ot-test-spinel 41 If you are developing a unit test case and have made some changes in the test source file, you will… 48 This will only build the test and take a short time. 57 This will build the updated OpenThread code as well as the test cases.
|
/openthread-latest/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_cipher.ccm.data | 1 AES-128-CCM test vector NIST #1 (P=0, N=7, A=0, T=4) 5 AES-128-CCM test vector NIST #2 (P=0, N=7, A=0, T=4) 9 AES-128-CCM test vector NIST #3 (P=0, N=7, A=0, T=16) 13 AES-128-CCM test vector NIST #4 (P=0, N=7, A=0, T=16) 17 AES-128-CCM test vector NIST #5 (P=0, N=13, A=0, T=4) 21 AES-128-CCM test vector NIST #6 (P=0, N=13, A=0, T=4) 25 AES-128-CCM test vector NIST #7 (P=0, N=13, A=0, T=16) 29 AES-128-CCM test vector NIST #8 (P=0, N=13, A=0, T=16) 33 AES-128-CCM test vector NIST #9 (P=24, N=7, A=0, T=4) 37 AES-128-CCM test vector NIST #10 (P=24, N=7, A=0, T=4) [all …]
|
D | test_suite_psa_crypto_se_driver_hal_mocks.data | 1 SE init mock test: success 4 SE init mock test: failure 7 SE init mock test: invalid location (0) 10 SE init mock test: location not supported (INT_MAX) 13 SE key importing mock test 16 SE key importing mock test: max key bits 19 SE key importing mock test: more than max key bits 22 SE key importing mock test: alloc failed 25 SE key importing mock test: import failed 28 SE key exporting mock test [all …]
|
D | test_suite_gcm.camellia.data | 1 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #1 (128-en) 5 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #2 (128-en) 9 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #3 (128-en) 13 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #4 (128-en) 17 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #5 (128-en) 21 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #6 (128-en) 25 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #7 (192-en) 29 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #8 (192-en) 33 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #9 (192-en) 37 Camellia-GCM test vect draft-kato-ipsec-camellia-gcm #10 (192-en) [all …]
|
D | test_suite_lmots.data | 1 LMOTS sign-verify test #1 2 # This test uses a fixed message, and then generates a private key, signs the 6 LMOTS sign-verify test #2 7 # This test uses a fixed message, and then generates a private key, signs the 11 LMOTS NULL-message sign-verify test 12 # This test uses a NULL zero-length message, and then generates a private key, 16 LMOTS hsslms interop test #1 17 # This test uses data from https://github.com/pmvr/python-hsslms due to the 18 # limited amount of available test vectors for LMOTS, and few implementations 21 # This test uses the same OTS key as the LMS hsslms interop test 1 (leaf 0 of [all …]
|
D | test_suite_lms.data | 1 LMS sign-verify test 2 # This test uses a fixed message, and then generates a private key, signs the 6 LMS NULL-message sign-verify test 7 # This test uses a NULL zero-length message, and then generates a private key, 11 LMS pyhsslms interop test #1 12 # This test uses data from https://github.com/russhousley/pyhsslms due to the 13 # limited amount of available test vectors for LMS. The private key is stored in 19 # and the public key before including them in a the test data. 37 LMS pyhsslms interop test #2 38 # This test case continues from "LMS pyhsslms interop test #1". [all …]
|
D | test_suite_psa_crypto_se_driver_hal.data | 4 # Run this test case a second time to verify that the library deinit 66 Key import smoke test: AES-CTR 69 Key import smoke test: AES-CBC 72 Key import smoke test: AES-CMAC 75 Key import smoke test: AES-CCM 78 Key import smoke test: AES-GCM 81 Key import smoke test: ARIA-CTR 84 Key import smoke test: ARIA-CBC 87 Key import smoke test: ARIA-CMAC 90 Key import smoke test: ARIA-CCM [all …]
|
D | test_suite_bignum.misc.data | 4 Base test mpi_read_write_string #1 7 Base test mpi_read_write_string #1 (Leading 0) 10 Base test mpi_read_write_string #2 13 Base test mpi_read_write_string #3 (Read zero decimal) 16 Base test mpi_read_write_string #3 (Read zero hex) 19 Base test mpi_read_write_string #3 (Read minus zero decimal) 22 Base test mpi_read_write_string #3 (Read minus zero hex) 25 Base test mpi_read_write_string #3 (Negative decimal) 28 Base test mpi_read_write_string #3 (Negative decimal, leading 0) 31 Base test mpi_read_write_string #3 (Negative hex -> decimal) [all …]
|
D | test_suite_ecdsa.data | 93 ECDSA deterministic test vector rfc 6979 p192 sha1 [#1] 97 ECDSA deterministic test vector rfc 6979 p192 sha224 [#1] 101 ECDSA deterministic test vector rfc 6979 p192 sha256 [#1] 105 ECDSA deterministic test vector rfc 6979 p192 sha384 [#1] 109 ECDSA deterministic test vector rfc 6979 p192 sha512 [#1] 113 ECDSA deterministic test vector rfc 6979 p192 sha1 [#2] 117 ECDSA deterministic test vector rfc 6979 p192 sha224 [#2] 121 ECDSA deterministic test vector rfc 6979 p192 sha256 [#2] 125 ECDSA deterministic test vector rfc 6979 p192 sha384 [#2] 129 ECDSA deterministic test vector rfc 6979 p192 sha512 [#2] [all …]
|
D | test_suite_x509write.data | 63 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20190210144406":"202… 67 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"19700210144406":"202… 71 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20190210144406":"205… 75 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"19700210144406":"205… 79 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20500210144406":"205… 83 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20190210144406":"202… 87 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20110212144406":"202… 91 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20110212144406":"202… 95 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20190210144406":"202… 99 …test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20190210144406":"202… [all …]
|
/openthread-latest/third_party/mbedtls/repo/docs/architecture/testing/ |
D | test-framework.md | 1 # Mbed TLS test framework 3 This document is an overview of the Mbed TLS test framework and test tools. 11 ### Unit test descriptions 13 …test case has a description which succinctly describes for a human audience what the test does. Th… 16 …Rationale: keep the tools that process test descriptions (`generate_test_code.py`, [outcome file](… 18 …Rationale: make it easy to relate a failure log to the test data. Avoid confusion between cases in… 21 … lot of test cases with longer descriptions, but they should be avoided. At least please make sure… 22 …en” is even better if these inequalities and parities are why this particular test data was chosen. 23 * Avoid changing the description of an existing test case without a good reason. This breaks the tr… 31 #### SSL test case descriptions [all …]
|
D | invasive-testing.md | 5 In Mbed TLS, we use black-box testing as much as possible: test the documented behavior of the prod… 9 This is a test strategy document, not a test plan. A description of exactly what is tested is out o… 30 Do not add test-specific interfaces if there's a practical way of doing it another way. All public … 34 In unit tests and in test programs, it's ok to include internal header files from `library/`. Do no… 36 …ch functions in `library/*.h` and include the corresponding header in the test code. If the functi… 38 If test code or test data depends on internal details of the library and not just on its documented… 41 > /* This test file is specific to the ITS implementation in PSA Crypto 48 > # This test assumes that PSA_MAX_KEY_BITS (currently 65536-8 bits = 8191 bytes 55 If the most practical way to test something is to add code to the product that is only useful for t… 57 * **Only use test-specific code when necessary.** Anything that can be tested through the documente… [all …]
|
D | psa-storage-format-testing.md | 7 …ne a test strategy for the key store that not only validates that it's possible to load a key that… 19 …ting test data under version V, and reading it back under version W. Done naively, this would requ… 23 …test cases under a version V of Mbed TLS, where the test case parameters include both the paramete… 25 …test case also loads the key and checks that it has the expected data and metadata. Import-and-sav… 27 If the test passes with version V, this means that the test data is consistent with what the implem… 37 …test cases used to exist. It can only be enforced through review of library changes. The review is… 39 …g a version of the storage format), then we should keep the corresponding test cases in load-only … 52 … trusted storage interface on top of C stdio. This document addresses the test strategy for [PSA I… 56 …d test cases for keys created with the current storage format version. When the storage format cha… 60 Objective: test that the key file name corresponds to the key identifier. [all …]
|
/openthread-latest/third_party/mbedtls/repo/programs/ |
D | .gitignore | 55 test/benchmark 56 test/cpp_dummy_build 57 test/cpp_dummy_build.cpp 58 test/dlopen 59 test/ecp-bench 60 test/metatest 61 test/query_compile_time_config 62 test/query_included_headers 63 test/selftest 64 test/ssl_cert_test [all …]
|
/openthread-latest/third_party/mbedtls/repo/tests/data_files/ |
D | Readme-x509.txt | 7 - test-ca.crt aka "C=NL, O=PolarSSL, CN=PolarSSL Test CA" 9 test-ca-sha1.crt and test-ca-sha256.crt use the same key, signed with 11 - test-ca2*.crt aka "C=NL, O=PolarSSL, CN=Polarssl Test EC CA" 13 variants used to test the keyUsage extension 14 The files test-ca_cat12 and test-ca_cat21 contain them concatenated both ways. 17 - test-int-ca.crt "C=NL, O=PolarSSL, CN=PolarSSL Test Intermediate CA" 18 uses RSA-4096, signed by test-ca2 19 - test-int-ca-exp.crt is a copy that is expired 20 - test-int-ca2.crt "C=NL, O=PolarSSL, CN=PolarSSL Test Intermediate EC CA" 21 uses an EC key with NIST P-384, signed by test-ca [all …]
|
D | test-ca.server1.opensslconf | 2 default_ca = test-ca 4 [ test-ca ] 5 certificate = test-ca.crt 6 private_key = test-ca.key 7 serial = test-ca.server1.serial 12 database = ./test-ca.server1.db
|
D | test-ca.server1.future-crl.opensslconf | 2 default_ca = test-ca 4 [ test-ca ] 5 certificate = test-ca.crt 6 private_key = test-ca.key 7 serial = test-ca.server1.serial 12 database = ./test-ca.server1.future-crl.db
|
D | test-ca.server1.test_serial.opensslconf | 2 default_ca = test-ca 4 [ test-ca ] 5 certificate = test-ca.crt 6 private_key = test-ca.key 7 serial = test-ca.server1.tmp.serial 13 database = ./test-ca.server1.db
|
/openthread-latest/third_party/mbedtls/repo/tests/src/ |
D | helpers.c | 65 static void mbedtls_test_set_result_internal(mbedtls_test_result_t result, const char *test, in mbedtls_test_set_result_internal() argument 72 mbedtls_test_info.test = test; in mbedtls_test_set_result_internal() 79 const char *test; in mbedtls_test_get_test() local 85 test = mbedtls_test_info.test; in mbedtls_test_get_test() 91 return test; in mbedtls_test_get_test() 379 static void mbedtls_test_fail_internal(const char *test, int line_no, const char *filename) in mbedtls_test_fail_internal() argument 388 mbedtls_test_set_result_internal(MBEDTLS_TEST_RESULT_FAILED, test, line_no, filename); in mbedtls_test_fail_internal() 392 void mbedtls_test_fail(const char *test, int line_no, const char *filename) in mbedtls_test_fail() argument 398 mbedtls_test_fail_internal(test, line_no, filename); in mbedtls_test_fail() 405 void mbedtls_test_skip(const char *test, int line_no, const char *filename) in mbedtls_test_skip() argument [all …]
|
/openthread-latest/tools/harness-automation/autothreadharness/ |
D | runner.py | 77 def startTest(self, test): argument 80 test.__class__.__name__, 83 test.add_all_devices = self.add_all_devices 86 test.auto_reboot = True 88 … (' '.join(self.auto_reboot_args + ['-c', test.__class__.__name__]), RESUME_SCRIPT_PATH)) 93 os.system('mkdir %s' % test.result_dir) 94 …self.log_handler = logging.FileHandler('%s\\auto-%s.log' % (test.result_dir, time.strftime('%Y%m%d… 99 def add_result(self, test, passed, error=None): argument 106 fails = self.result.get(test.__class__.__name__, {}).get('fails', 0) 109 self.result[str(test.__class__.__name__)] = { [all …]
|
/openthread-latest/tests/toranj/ |
D | README_CLI.md | 3 `toranj-cli` is a test framework for OpenThread using its CLI interface. 14 To build OpenThread with `toranj` configuration, the `test/toranj/build.sh` script can be used: 28 …in `tests/toranj/cli` folder. Each test-case has its own script following naming model `test-nnn-n… 30 To run a specific test: 34 $ python3 test-001-get-set.py 46 `cli` python module defines the `toranj-cli` test components. 118 >>> node1.form('test') 141 … to run all test-cases, if any test fails, to help with debugging of the issue, the last 30 lines … 143 A `cli.Node()` instance can also provide additional logs and info as the test-cases are run (verbos… 154 >>> node.form('test') [all …]
|
/openthread-latest/third_party/mbedtls/repo/programs/test/ |
D | selftest.c | 373 const selftest_t *test; in main() local 526 for (test = selftests; test->name != NULL; test++) { in main() 527 if (!strcmp(*argp, test->name)) { in main() 528 if (test->function(v) != 0) { in main() 535 if (test->name == NULL) { in main() 542 for (test = selftests; test->name != NULL; test++) { in main() 546 if (!strcmp(*excluded, test->name)) { in main() 552 mbedtls_printf(" Skip: %s\n", test->name); in main() 557 if (test->function(v) != 0) { in main()
|