mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-29 07:05:46 +00:00
This commit adds the test-case for the ECC DH algorithm. Origin: https://github.com/01org/tinycrypt/tree/v0.2.0 The code was refactored to eliminate function calls and checkpatch errors. Furthermore, the PRNG was replaced by sys_rand32_init. Refactoring history is available at: Repo: https://gitlab.com/santes/tinycrypt/tree/refactoring Commit: f71fc46403e90be0c54a77150e0539756d8314e7 Jira: ZEP-614 Jira: ZEP-861 Change-Id: I884f26ef8e9ff8e79ed0858678c4f51a37796e02 Signed-off-by: Flavio Santes <flavio.santes@intel.com> |
||
---|---|---|
.. | ||
src | ||
Makefile | ||
prj.conf | ||
README.txt | ||
testcase.ini |
Title: test_ecc_dh Description: This test verifies that the TinyCrypt ECC DH APIs operate as expected. -------------------------------------------------------------------------------- Building and Running Project: This microkernel project outputs to the console. It can be built and executed on QEMU as follows: make qemu -------------------------------------------------------------------------------- Troubleshooting: Problems caused by out-dated project information can be addressed by issuing one of the following commands then rebuilding the project: make clean # discard results of previous builds # but keep existing configuration info or make pristine # discard results of previous builds # and restore pre-defined configuration info -------------------------------------------------------------------------------- Sample Output: tc_start() - TinyCrypt ECC DH tests [PASS] Test #1: ECDH - NIST-p256 [PASS] Test #2: ECC KeyGen - NIST-p256 [PASS] Test #3: PubKeyVerify - NIST-p256-SHA2-256 [PASS] Test #4: Monte Carlo (Randomized EC-DH key-exchange) - NIST-p256 All ECC tests succeeded. =================================================================== PASS - main. =================================================================== PROJECT EXECUTION SUCCESSFUL