zephyr/tests/crypto/test_ecc_dh
Flavio Santes 19d22dc389 tinycrypt: Add test case for the ECC DH algorithm
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>
2016-09-20 12:54:21 +00:00
..
src tinycrypt: Add test case for the ECC DH algorithm 2016-09-20 12:54:21 +00:00
Makefile tinycrypt: Add test case for the ECC DH algorithm 2016-09-20 12:54:21 +00:00
README.txt tinycrypt: Add test case for the ECC DH algorithm 2016-09-20 12:54:21 +00:00
prj.conf tinycrypt: Add test case for the ECC DH algorithm 2016-09-20 12:54:21 +00:00
testcase.ini tinycrypt: Add test case for the ECC DH algorithm 2016-09-20 12:54:21 +00:00

README.txt

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