/openthread-3.5.0/tests/unit/ |
D | CMakeLists.txt | 40 add_library(ot-test-platform 45 target_include_directories(ot-test-platform 50 target_compile_options(ot-test-platform 55 target_link_libraries(ot-test-platform 64 ot-test-platform 66 ot-test-platform 72 add_executable(ot-test-aes 76 target_include_directories(ot-test-aes 81 target_compile_options(ot-test-aes 86 target_link_libraries(ot-test-aes [all …]
|
D | test_hkdf_sha256.cpp | 129 for (const TestVector *test = &kTestVectors[0]; test < ot::GetArrayEnd(kTestVectors); test++) in TestHkdfSha256() local 136 DumpBuffer("\nInput Key", test->mInKey, test->mInKeyLength); in TestHkdfSha256() 137 DumpBuffer("\nSalt", test->mSalt, test->mSaltLength); in TestHkdfSha256() 138 DumpBuffer("\nInfo", test->mInfo, test->mInfoLength); in TestHkdfSha256() 139 DumpBuffer("\nExpected Output Key", test->mOutKey, test->mOutKeyLength); in TestHkdfSha256() 143 testInputKey.mKey = test->mInKey; in TestHkdfSha256() 144 testInputKey.mKeyLength = test->mInKeyLength; in TestHkdfSha256() 146 hkdf.Extract(test->mSalt, test->mSaltLength, testInputKey); in TestHkdfSha256() 147 hkdf.Expand(test->mInfo, test->mInfoLength, outKey, test->mOutKeyLength); in TestHkdfSha256() 149 DumpBuffer("\nCalculated Output Key", outKey, test->mOutKeyLength); in TestHkdfSha256() [all …]
|
D | test_aes.cpp | 46 uint8_t test[] = {0x08, 0xD0, 0x84, 0x21, 0x43, 0x01, 0x00, 0x00, 0x00, 0x00, 0x48, 0xDE, in TestMacBeaconFrame() local 60 uint32_t headerLength = sizeof(test) - 8; in TestMacBeaconFrame() 72 aesCcm.Header(test, headerLength); in TestMacBeaconFrame() 74 aesCcm.Finalize(test + headerLength); in TestMacBeaconFrame() 76 VerifyOrQuit(memcmp(test, encrypted, sizeof(encrypted)) == 0); in TestMacBeaconFrame() 79 aesCcm.Header(test, headerLength); in TestMacBeaconFrame() 81 aesCcm.Finalize(test + headerLength); in TestMacBeaconFrame() 83 VerifyOrQuit(memcmp(test, decrypted, sizeof(decrypted)) == 0); in TestMacBeaconFrame() 97 uint8_t test[] = { in TestMacCommandFrame() local 133 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-3.5.0/third_party/mbedtls/repo/tests/suites/ |
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_ecdsa.data | 96 ECDSA deterministic test vector rfc 6979 p192 sha1 [#1] 100 ECDSA deterministic test vector rfc 6979 p192 sha224 [#1] 104 ECDSA deterministic test vector rfc 6979 p192 sha256 [#1] 108 ECDSA deterministic test vector rfc 6979 p192 sha384 [#1] 112 ECDSA deterministic test vector rfc 6979 p192 sha512 [#1] 116 ECDSA deterministic test vector rfc 6979 p192 sha1 [#2] 118 …192R1:"6FAB034934E4C0FC9AE67F5B5659A9D7D1FEFD187EE09FD4":MBEDTLS_MD_SHA1:"test":"0F2141A0EBBC44D2E… 120 ECDSA deterministic test vector rfc 6979 p192 sha224 [#2] 122 …2R1:"6FAB034934E4C0FC9AE67F5B5659A9D7D1FEFD187EE09FD4":MBEDTLS_MD_SHA224:"test":"6945A1C1D1B2206B8… 124 ECDSA deterministic test vector rfc 6979 p192 sha256 [#2] [all …]
|
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_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_mpi.data | 10 Base test mpi_read_write_string #1 13 Base test mpi_read_write_string #1 (Leading 0) 16 Base test mpi_read_write_string #2 19 Base test mpi_read_write_string #3 (Read zero decimal) 22 Base test mpi_read_write_string #3 (Read zero hex) 25 Base test mpi_read_write_string #3 (Read minus zero decimal) 28 Base test mpi_read_write_string #3 (Read minus zero hex) 31 Base test mpi_read_write_string #3 (Negative decimal) 34 Base test mpi_read_write_string #3 (Negative decimal, leading 0) 37 Base test mpi_read_write_string #3 (Negative hex -> decimal) [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_pk.data | 50 RSA verify test vector #1 (good) 54 RSA verify test vector #2 (bad) 58 ECDSA verify test vector #1 (good) 62 ECDSA verify test vector #2 (bad) 66 EC(DSA) verify test vector #1 (good) 70 EC(DSA) verify test vector #2 (bad) 74 EC(DSA) verify test vector: good, bitlen(r) = 256 78 EC(DSA) verify test vector: good, bitlen(r) = 255 82 EC(DSA) verify test vector: good, bitlen(r) = 248 86 EC(DSA) verify test vector: good, bitlen(r) = 247 [all …]
|
D | test_suite_psa_crypto_storage_format.misc.data | 1 # The following two manually crafted test cases are redundant with 2 # systematically generated test cases, but useful to have as an anchor when 3 # debugging changes to the test code or to the test case generation.
|
/openthread-3.5.0/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 header files from `library/`. Do not define … 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 …]
|
/openthread-3.5.0/third_party/mbedtls/repo/programs/ |
D | .gitignore | 54 test/benchmark 55 test/cpp_dummy_build 56 test/cpp_dummy_build.cpp 57 test/dlopen 58 test/ecp-bench 59 test/query_compile_time_config 60 test/selftest 61 test/ssl_cert_test 62 test/udp_proxy 63 test/zeroize
|
/openthread-3.5.0/third_party/mbedtls/repo/tests/data_files/ |
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 | 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 …]
|
/openthread-3.5.0/third_party/mbedtls/repo/programs/test/ |
D | selftest.c | 366 const selftest_t *test; in main() local 428 for( test = selftests; test->name != NULL; test++ ) in main() 430 if( !strcmp( *argp, test->name ) ) in main() 432 if( test->function( v ) != 0 ) in main() 440 if( test->name == NULL ) in main() 450 for( test = selftests; test->name != NULL; test++ ) in main() 457 if( !strcmp( *excluded, test->name ) ) in main() 463 mbedtls_printf( " Skip: %s\n", test->name ); in main() 467 if( test->function( v ) != 0 ) in main()
|
/openthread-3.5.0/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-3.5.0/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-3.5.0/third_party/mbedtls/repo/tests/scripts/ |
D | test_psa_compliance.py | 100 test = -1 111 test = int(test_num) 114 unexpected_successes.remove(test) 115 expected_failures.append(test) 118 unexpected_failures.append(test) 120 elif test in unexpected_successes:
|
/openthread-3.5.0/third_party/mbedtls/repo/tests/src/ |
D | helpers.c | 82 void mbedtls_test_fail( const char *test, int line_no, const char* filename ) in mbedtls_test_fail() argument 91 mbedtls_test_info.test = test; in mbedtls_test_fail() 96 void mbedtls_test_skip( const char *test, int line_no, const char* filename ) in mbedtls_test_skip() argument 99 mbedtls_test_info.test = test; in mbedtls_test_skip() 113 mbedtls_test_info.test = 0; in mbedtls_test_info_reset() 120 int mbedtls_test_equal( const char *test, int line_no, const char* filename, in mbedtls_test_equal() argument 131 mbedtls_test_fail( test, line_no, filename ); in mbedtls_test_equal()
|
/openthread-3.5.0/src/cli/ |
D | README_COAPS.md | 33 On node 1, setup CoAPS server with resource `test-resource`. 38 > coaps resource test-resource 50 > coaps get test-resource 53 > coaps put test-resource con payload 142 > coaps delete test-resource con payload 160 > coaps get test-resource 165 > coaps get test-resource block-1024 176 > coaps post test-resource con payload 181 > coaps post test-resource block-1024 10 204 > coaps put test-resource con payload [all …]
|
D | README_COAP.md | 13 On node 1, setup CoAP server with resource `test-resource`. 18 > coap resource test-resource 27 > coap get fdde:ad00:beef:0:d395:daee:a75:3964 test-resource 30 > coap put fdde:ad00:beef:0:2780:9423:166c:1aac test-resource con payload 101 > coap delete fdde:ad00:beef:0:2780:9423:166c:1aac test-resource con payload 112 > coap get fdde:ad00:beef:0:2780:9423:166c:1aac test-resource 117 > coap get fdde:ad00:beef:0:2780:9423:166c:1aac test-resource block-1024 130 > coap observe fdde:ad00:beef:0:2780:9423:166c:1aac test-resource 179 > coap post fdde:ad00:beef:0:2780:9423:166c:1aac test-resource con payload 184 > coap post fdde:ad00:beef:0:2780:9423:166c:1aac test-resource block-1024 10 [all …]
|