cipher_hash_test.c 393 B

1234567891011121314151617181920
  1. /* test the ciphers and hashes using their built-in self-tests */
  2. #include "test.h"
  3. int cipher_hash_test(void)
  4. {
  5. int x;
  6. /* test ciphers */
  7. for (x = 0; cipher_descriptor[x].name != NULL; x++) {
  8. DO(cipher_descriptor[x].test());
  9. }
  10. /* test hashes */
  11. for (x = 0; hash_descriptor[x].name != NULL; x++) {
  12. DO(hash_descriptor[x].test());
  13. }
  14. return 0;
  15. }