/mcuboot-latest/ |
D | .travis.yml-disabled | 12 env: BUILD_TYPE=RELEASE SKIP_SIZE=2,4,6,8,10 TEST=fih-tests DAMAGE_TYPE=SIGNATURE 16 … env: BUILD_TYPE=RELEASE SKIP_SIZE=2,4,6,8,10 FIH_LEVEL=LOW TEST=fih-tests DAMAGE_TYPE=SIGNATURE 20 … env: BUILD_TYPE=RELEASE SKIP_SIZE=2,4,6,8,10 FIH_LEVEL=MEDIUM TEST=fih-tests DAMAGE_TYPE=SIGNATURE 24 env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=2,4,6 TEST=fih-tests DAMAGE_TYPE=SIGNATURE 28 env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=2,4,6 FIH_LEVEL=LOW TEST=fih-tests DAMAGE_TYPE=SIGNATURE 32 … env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=2,4,6 FIH_LEVEL=MEDIUM TEST=fih-tests DAMAGE_TYPE=SIGNATURE 36 env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=8,10 TEST=fih-tests DAMAGE_TYPE=SIGNATURE 40 env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=8,10 FIH_LEVEL=LOW TEST=fih-tests DAMAGE_TYPE=SIGNATURE 44 … env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=8,10 FIH_LEVEL=MEDIUM TEST=fih-tests DAMAGE_TYPE=SIGNATURE 50 # env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=2,4,6 TEST=fih-tests DAMAGE_TYPE=IMAGE_HASH [all …]
|
/mcuboot-latest/ext/tinycrypt/tests/ |
D | test_sha256.c | 38 - NIST SHA256 test vectors 51 * NIST SHA256 test vector 1. 57 TC_PRINT("SHA256 test #1:\n"); in test_1() 77 * NIST SHA256 test vector 2. 82 TC_PRINT("SHA256 test #2:\n"); in test_2() 105 TC_PRINT("SHA256 test #3:\n"); in test_3() 128 TC_PRINT("SHA256 test #4:\n"); in test_4() 151 TC_PRINT("SHA256 test #5:\n"); in test_5() 177 TC_PRINT("SHA256 test #6:\n"); in test_6() 202 TC_PRINT("SHA256 test #7:\n"); in test_7() [all …]
|
D | test_ccm_mode.c | 38 * - AES128 CCM mode encryption RFC 3610 test vector #1 39 * - AES128 CCM mode encryption RFC 3610 test vector #2 40 * - AES128 CCM mode encryption RFC 3610 test vector #3 41 * - AES128 CCM mode encryption RFC 3610 test vector #7 42 * - AES128 CCM mode encryption RFC 3610 test vector #8 43 * - AES128 CCM mode encryption RFC 3610 test vector #9 135 /* RFC 3610 test vector #1 */ in test_vector_1() 160 TC_PRINT("%s: Performing CCM test #1 (RFC 3610 test vector #1):\n", in test_vector_1() 172 /* RFC 3610 test vector #2 */ in test_vector_2() 197 TC_PRINT("%s: Performing CCM test #2 (RFC 3610 test vector #2):\n", in test_vector_2() [all …]
|
D | test_cmac_mode.c | 34 * This module tests the following AES-CMAC test (including SP 800-38B): 37 * - CMAC test #1 (GF(2^128) double)) 38 * - CMAC test #2 null msg (SP 800-38B test vector #1) 39 * - CMAC test #3 1 block msg (SP 800-38B test vector #2) 40 * - CMAC test #4 320 bit msg (SP 800-38B test vector #3) 41 * - CMAC test #5 512 bit msg (SP 800-38B test vector #4) 72 TC_PRINT("Performing CMAC test #1 (GF(2^128) double):\n"); in verify_gf_2_128_double() 122 TC_PRINT("Performing CMAC test #2 (SP 800-38B test vector #1):\n"); in verify_cmac_null_msg() 149 TC_PRINT("Performing CMAC test #3 (SP 800-38B test vector #2):\n"); in verify_cmac_1_block_msg() 181 TC_PRINT("Performing CMAC test #4 (SP 800-38B test vector #3):\n"); in verify_cmac_320_bit_msg() [all …]
|
D | test_ecc_dh.c | 235 TC_PRINT("Test #1: ECDH"); in cavp_ecdh() 293 TC_PRINT("Test #2: ECC KeyGen "); in cavp_keygen() 306 /* Test ecc_make_keys, and also as keygen part of other tests */ 408 TC_PRINT("Test #3: PubKeyVerify "); in cavp_pkv() 427 TC_PRINT("Test #4: Monte Carlo (%d Randomized EC-DH key-exchange) ", num_tests); in montecarlo_ecdh() 491 TC_PRINT("Performing cavp_ecdh test:\n"); in main() 493 if (result == TC_FAIL) { /* terminate test */ in main() 494 TC_ERROR("cavp_ecdh test failed.\n"); in main() 497 TC_PRINT("Performing cavp_keygen test:\n"); in main() 499 if (result == TC_FAIL) { /* terminate test */ in main() [all …]
|
D | test_ctr_mode.c | 51 * NIST SP 800-38a CTR Test for encryption and decryption. 86 TC_PRINT("CTR test #1 (encryption SP 800-38a tests):\n"); in test_1_and_2() 92 TC_ERROR("CTR test #1 (encryption SP 800-38a tests) failed in %s.\n", __func__); in test_1_and_2() 98 TC_ERROR("CTR test #1 invalid block offset (%u).\n", off); in test_1_and_2() 105 TC_PRINT("CTR test #2 (decryption SP 800-38a tests):\n"); in test_1_and_2() 110 TC_ERROR("CTR test #2 (decryption SP 800-38a tests) failed in %s.\n", __func__); in test_1_and_2() 116 TC_ERROR("CTR test #2 invalid block offset (%u).\n", off); in test_1_and_2() 129 * Main task to test AES 140 if (result == TC_FAIL) { /* terminate test */ in main() 141 TC_ERROR("CTR test #1 failed.\n"); in main()
|
D | test_cbc_mode.c | 49 * NIST test vectors from SP 800-38a: 102 * NIST SP 800-38a CBC Test for encryption and decryption. 118 TC_PRINT("CBC test #1 (encryption SP 800-38a tests):\n"); in test_1_and_2() 121 TC_ERROR("CBC test #1 (encryption SP 800-38a tests) failed in " in test_1_and_2() 131 TC_PRINT("CBC test #2 (decryption SP 800-38a tests):\n"); in test_1_and_2() 139 TC_ERROR("CBC test #2 (decryption SP 800-38a tests) failed in. " in test_1_and_2() 154 * Main task to test AES 165 /* terminate test */ in main() 166 TC_ERROR("CBC test #1 failed.\n"); in main()
|
D | test_hmac.c | 38 - HMAC tests (RFC 4231 test vectors) 67 * NIST test vectors for encryption. 306 * Main task to test AES 312 TC_START("Performing HMAC tests (RFC4231 test vectors):"); in main() 316 /* terminate test */ in main() 317 TC_ERROR("HMAC test #1 failed.\n"); in main() 322 /* terminate test */ in main() 323 TC_ERROR("HMAC test #2 failed.\n"); in main() 328 /* terminate test */ in main() 329 TC_ERROR("HMAC test #3 failed.\n"); in main() [all …]
|
D | test_hmac_prng.c | 73 * Main task to test AES 85 TC_PRINT("HMAC-PRNG test#1 (init, reseed, generate):\n"); in main() 98 TC_PRINT("HMAC-PRNG test#1 (init):\n"); in main() 107 TC_PRINT("HMAC-PRNG test#1 (reseed):\n"); in main() 117 TC_PRINT("HMAC-PRNG test#1 (generate):\n"); in main()
|
D | test_ecc_dsa.c | 99 /* use keygen test to generate and validate pubkey */ in sign_vectors() 337 TC_PRINT("Test #1: ECDSAsign "); in cavp_sign() 584 printf("Test #2: ECDSAvrfy "); in cavp_verify() 592 printf("Test #3: Monte Carlo (%d Randomized EC-DSA signatures) ", num_tests); in montecarlo_signverify() 645 TC_PRINT("Performing cavp_sign test:\n"); in main() 647 if (result == TC_FAIL) { /* terminate test */ in main() 648 TC_ERROR("cavp_sign test failed.\n"); in main() 651 TC_PRINT("Performing cavp_verify test:\n"); in main() 654 TC_ERROR("cavp_verify test failed.\n"); in main() 657 TC_PRINT("Performing montecarlo_signverify test:\n"); in main() [all …]
|
/mcuboot-latest/ci/fih_test_docker/ |
D | utils.py | 42 for test in results: 43 test = test["skip_test"] 47 if test["test_exec_ok"]: 50 if "skipped" in test.keys() and not test["skipped"]: 55 if test["boot"]: 59 failed_boot_last_lines.update([test["last_line"]]) 61 exec_fail_reasons.update([test["test_exec_fail_reason"]])
|
D | fi_tester_gdb.sh | 30 # don't run the test 31 if test "$INSTR" == ""; then 35 # Print out the meta-info about the test, in YAML 120 # The image booted, although it shouldn't happen as the test is to 164 if test -z "$IMAGE_DIR"; then 166 elif test -z "$START"; then 168 elif test -z "$END"; then 180 if test -z "$IMAGE_DIR"; then 185 if test -z "$START"; then 190 if test -z "$END"; then [all …]
|
/mcuboot-latest/sim/tests/ |
D | core.rs | 9 //! Run the existing testsuite as a Rust unit test. 25 /// A single test, after setting up logging and such. Within the $body, 29 #[test] 39 /// A typical test calls a particular constructor, and runs a given test on 42 ($name:ident, $maker:ident($($margs:expr),*), $test:ident($($targs:expr),*)) => { 46 assert!(!image.$test($($targs),*)); 84 // Test various combinations of incorrect dependencies. 86 // Only test setups with two images. 98 /// These are the variants of dependencies we will test. 100 // A sanity test, no dependencies should upgrade. [all …]
|
/mcuboot-latest/docs/ |
D | testplan-zephyr.md | 1 # Zephyr test plan 11 test case and expected result. 15 The tests are build using the various `test-*` targets in 16 `samples/zephyr/Makefile`. For each test, invoke `make` with that 19 $ make test-good-rsa 36 Note that there are comments with each test target describing the 42 This should print a message: `boot_swap_type: Swap type: test`, and 71 Repeat these steps for each of the `test-*` targest in the Makefile.
|
D | testplan-mynewt.md | 1 ## MCUboot test plan 37 test image and check that swap only happens for image signed with 43 * `newtmgr image test <hash of slot 1>` 61 test image and check that swap only happens for image signed with 72 * `newtmgr image test <hash of slot 1>` 125 DISCLAIMER: be careful with copy/paste of commands, this test uses another
|
/mcuboot-latest/samples/zephyr/ |
D | Makefile | 185 # These test- targets reinvoke make with the configuration set to test 189 # Test a good image, with a good upgrade, using RSA signatures. 194 test-good-rsa: clean 199 # Test a good image, with a good upgrade, using ECDSA signatures. 204 test-good-ecdsa: clean 210 # Test (with RSA) that overwrite-only works. This should boot, 216 test-overwrite: clean 221 # Test that when configured for RSA, a wrong signature in the upgrade 227 test-bad-rsa-upgrade: clean 236 # Test that when configured for ECDSA, a wrong signature in the upgrade [all …]
|
D | test-compile.go | 7 // go run test-compile.go -out name.tar 24 var outFile = flag.String("out", "test-images.zip", "Name of zip file to put built tests into") 45 fmt.Sprintf("test-%s", group.ShortName)) 92 // Collect stat information from the test directory, which
|
/mcuboot-latest/sim/src/ |
D | depends.rs | 27 test: DepTest, field 31 pub fn new(number: usize, test: &DepTest) -> BoringDep { in new() 34 test: test.clone(), in new() 41 let slot = if self.test.downgrade { in my_version() 58 /// An individual test of the dependency mechanism describes one of the 101 /// A "test" that gives no dependency information. 108 /// A "test" with no dependency information, and the images marked as a 121 test: DepTest, field 132 test: deps.clone(), in new() 139 let slot = if self.test.downgrade { in my_version() [all …]
|
D | testlog.rs | 6 //! Logging support for the test framework. 10 //! The test framework runs the tests, possibly simultaneously, and in various orders. This helper 11 //! function, which should be called at the beginning of each test, will setup logging for all of 18 /// Setup the logging system. Intended to be called at the beginning of each test.
|
/mcuboot-latest/ci/ |
D | sim_run.sh | 28 time cargo test --no-run 29 time cargo test 36 time cargo test --no-run --features $feature 37 time cargo test --features $feature 51 TEST_ARGS='--test-threads=1' 58 time cargo test --no-run --features "$features" -- $TEST_ARGS 59 time cargo test --features "$features" -- $TEST_ARGS
|
D | fih-tests_run.sh | 54 if test -z "$FIH_LEVEL"; then 55 …docker run --rm -v $(pwd):/root/work/tfm:rw,z mcuboot/fih-test:$FIH_IMAGE_VERSION /bin/sh -c '/roo… 57 …docker run --rm -v $(pwd):/root/work/tfm:rw,z mcuboot/fih-test:$FIH_IMAGE_VERSION /bin/sh -c '/roo…
|
/mcuboot-latest/sim/ |
D | README.rst | 35 $ cargo test 41 There are several different features you can test. For example, 44 $ cargo test --features sig-rsa 59 $ cargo test -- basic_revert 61 which will run only the `basic_revert` test.
|
/mcuboot-latest/samples/zephyr/mcutests/ |
D | mcutests.go | 4 // The main driver of this consists of a series of tests. Each test 17 {"make", "test-good-rsa"}, 50 {"make", "test-good-ecdsa"}, 83 {"make", "test-overwrite"}, 116 {"make", "test-bad-rsa-upgrade"}, 149 {"make", "test-bad-ecdsa-upgrade"}, 182 {"make", "test-no-bootcheck"}, 215 {"make", "test-wrong-rsa"}, 248 {"make", "test-wrong-ecdsa"},
|
/mcuboot-latest/ext/tinycrypt/documentation/ |
D | tinycrypt.rst | 284 Test Vectors 287 The library provides a test program for each cryptographic primitive (see 'test' 290 well-known publicly validated test vectors. 293 battery test to produce meaningful conclusions, we suggest the user to evaluate 294 the unpredictability of the implementation by using the NIST Statistical Test 297 For the case of the EC-DH and EC-DSA implementations, most of the test vectors 334 * `NIST Statistical Test Suite (useful for testing HMAC-PRNG)`_ 336 .. _NIST Statistical Test Suite (useful for testing HMAC-PRNG):
|
/mcuboot-latest/ptest/src/ |
D | main.rs | 51 let matrix = if args.test.len() == 0 { matrix } else { in main() 52 matrix.only(&args.test) in main() 105 test: Vec<usize>, field 126 /// Result of a test run. 188 error!("Unable to run test {:?} ({:?}", key, err); in done() 241 // Break each test up so we can run more in in from_yaml() 299 /// Run a test for this given feature set. Output is captured and will be returned if there is 312 writeln!(&mut output, "Test {} {}", in run()
|