1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/pbkdf2
Marian Buschsieweke 176cb9a7b0
tests/pbkdf2: de-flanky-fy test
Previously, the test vectors were encoded into the python test scripts,
converted to base64, and send over to the device under test via stdio.
The application sent back the output after converting it to base64
first, which was read back in by the test script and decoded. Finally,
the test script compared the result with the expected result.

This made the test complex, slow and, flanky, as stdio on interfaces
such as UART has a high bit error rate and some quirks (e.g. the EDBG
UART bridge e.g. in the samr21-xpro dropping bytes when bursts of more
than 64 bytes at a time are send).

This basically rewrites the test to embed the test vectors in the
firmware and do the comparison on the devices. This fixes test failures
on the samr21-xpro, the nRF52840-DK and likely many others. Also, it
is now fast.
2022-11-18 13:55:26 +01:00
..
tests tests/pbkdf2: de-flanky-fy test 2022-11-18 13:55:26 +01:00
main.c tests/pbkdf2: de-flanky-fy test 2022-11-18 13:55:26 +01:00
Makefile tests/pbkdf2: de-flanky-fy test 2022-11-18 13:55:26 +01:00
Makefile.ci boards: introduce atmega328p-xplained-mini 2021-03-27 14:10:19 -03:00
README sys/hashes/pbkdf2: Add PBKDF2-sha256 implementation. 2020-11-04 09:57:32 +01:00

Test PBKDF2 implementation
==========================

This test evaluates the RIOT implementation against a reference. The objective
is flexibility and clarity, and for this reason there are no hard coded vectors,
but instead the test is interactive, with the DUT processing vectors given
through the serial interface.

This means that the test is slower, but more complete and trustworthy.

The test is completely automated.