[test] Simplify digest algorithm self-tests
authorMichael Brown <mcb30@ipxe.org>
Sun, 12 Apr 2015 11:41:08 +0000 (12:41 +0100)
committerMichael Brown <mcb30@ipxe.org>
Sun, 12 Apr 2015 16:01:10 +0000 (17:01 +0100)
commita9da1291227735fdae475e21b02b2a5fa29dd956
tree8d689b12395549809ebf408b9afe0fadaa0459c2
parentb12b1b620fffc89e86af3879a945e7ffaa7c141d
[test] Simplify digest algorithm self-tests

Update the digest self-tests to use okx(), and centralise concepts and
data shared between tests for multiple algorithms to reduce duplicated
code.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/tests/digest_test.c
src/tests/digest_test.h
src/tests/md5_test.c
src/tests/sha1_test.c
src/tests/sha256_test.c