[test] Generalise cipher tests and use okx()
authorMichael Brown <mcb30@ipxe.org>
Mon, 27 Jul 2015 13:00:57 +0000 (14:00 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 27 Jul 2015 15:04:38 +0000 (16:04 +0100)
commitc0be4c68610cfa8cb60259e4e00d69e8f7d2705d
treead1c51d3ed1793eb995779ab321d37c87730c0b9
parent69891db8e2159be589b0e98cf2f01ccc5118ee4c
[test] Generalise cipher tests and use okx()

Generalise the existing support for performing CBC-mode block cipher
tests, and update the code to use okx() for neater reporting of test
results.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/tests/aes_test.c [moved from src/tests/aes_cbc_test.c with 54% similarity]
src/tests/cbc_test.h [deleted file]
src/tests/cipher_test.c [moved from src/tests/cbc_test.c with 57% similarity]
src/tests/cipher_test.h [new file with mode: 0644]
src/tests/tests.c