Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 417) sorted by relevance

12345678910>>...17

/openthread-latest/tests/unit/
Dtest_hkdf_sha256.cpp131 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 …]
DCMakeLists.txt63 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 …]
Dtest_aes.cpp48 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 …]
DREADME.md3 … 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/
Dtest_suite_cipher.ccm.data1 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 …]
Dtest_suite_psa_crypto_se_driver_hal_mocks.data1 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 …]
Dtest_suite_gcm.camellia.data1 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 …]
Dtest_suite_lmots.data1 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 …]
Dtest_suite_lms.data1 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 …]
Dtest_suite_psa_crypto_se_driver_hal.data4 # 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 …]
Dtest_suite_bignum.misc.data4 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 …]
Dtest_suite_ecdsa.data93 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 …]
Dtest_suite_x509write.data63test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20190210144406":"202…
67test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"19700210144406":"202…
71test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20190210144406":"205…
75test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"19700210144406":"205…
79test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20500210144406":"205…
83test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20190210144406":"202…
87test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20110212144406":"202…
91test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20110212144406":"202…
95test-ca_unenc.key":"PolarSSLTest":"C=NL,O=PolarSSL,CN=PolarSSL Test CA":"01":"20190210144406":"202…
99test-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/
Dtest-framework.md1 # Mbed TLS test framework
3 This document is an overview of the Mbed TLS test framework and test tools.
11 ### Unit test descriptions
13test 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 …]
Dinvasive-testing.md5 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 …]
Dpsa-storage-format-testing.md7 …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…
23test cases under a version V of Mbed TLS, where the test case parameters include both the paramete…
25test 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…
37test 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.gitignore55 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/
DReadme-x509.txt7 - 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 …]
Dtest-ca.server1.opensslconf2 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
Dtest-ca.server1.future-crl.opensslconf2 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
Dtest-ca.server1.test_serial.opensslconf2 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/
Dhelpers.c65 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/
Drunner.py77 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/
DREADME_CLI.md3 `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/
Dselftest.c373 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()

12345678910>>...17