Commit Graph

8 Commits

Author SHA1 Message Date
Jon Shallow
86f4988fc4 github: Add in build and test workflow
Unfortunately out of path builds do not work at present.

Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
2022-08-08 09:55:21 +02:00
Olaf Bergmann
5250e56ecb [Unit Tests] add unit tests for PRF
Test vectors are from
https://mailarchive.ietf.org/arch/msg/tls/fzVCzk-z3FShgGJ6DOXqM1ydxms/

and generated by

https://github.com/obgm/tls12_prf

Change-Id: I19b4dd9fdca21b7deb568fce35e7b4270b529b27
2022-05-20 17:33:31 +02:00
Jon Shallow
f06e787335 compile warnings: Include WARNING_CFLAGS in all Makefile.in
Fix all the compile warnings generated following adding WARNING_CFLAGS
to all the Makefile.in files.

Fix tests/unit-tests/testdriver failures caused by dtls_prng() return value.

Signed-off-by: Jon Shallow <supjps-libcoap@jpshallow.com>
2021-06-01 20:08:13 +01:00
Olaf Bergmann
838fdefe9a unit-tests/testdriver.c: invoke unit tests for ECC
Change-Id: I7905d94a1598d3d5cdc59f223b0b747252a18fa7
2020-07-21 16:50:00 +02:00
Olaf Bergmann
2f9795c5ad unit-tests/Makefile.in: add test_ecc.c to build
Change-Id: Id688e750e91cdcb8706b78ee652433e2359d21f6
2020-07-21 16:49:14 +02:00
Olaf Bergmann
55d5867013 test_ecc.[hc]: unit tests for Elliptic Curve Cryptography
Change-Id: Iaff6ee8adc1c9c7180805e23adf576d4b2538159
2020-07-21 16:48:32 +02:00
Olaf Bergmann
7ade8009ec test_ccm.c: Unit tests for dtls_encrypt/decrypt
Change-Id: Ibfd33ec66c67cb2a0411b0d6396ce5e6f617f70b
2020-06-10 12:40:46 +02:00
Olaf Bergmann
ad4c6114be Unit tests for CCM
Add a subdirectory tests/unit-tests for unit tests based on cunit.
The unit tests are run by invoking the executable testdriver or
make check.

Initial unit tests with test vectors for CCM from RFC 3610 are
provided.

Change-Id: I3e8eb0e147ff357f54830e15cfe0346f83a5d28b
2020-06-02 09:52:23 +02:00