| 11 | #include <tomcrypt_test.h> |
| 12 | |
| 13 | int cipher_hash_test(void) |
| 14 | { |
| 15 | int x; |
| 16 | |
| 17 | /* test ciphers */ |
| 18 | for (x = 0; cipher_descriptor[x].name != NULL; x++) { |
| 19 | DOX(cipher_descriptor[x].test(), cipher_descriptor[x].name); |
| 20 | } |
| 21 | |
| 22 | /* stream ciphers */ |
| 23 | #ifdef LTC_CHACHA |
| 24 | DO(chacha_test()); |
| 25 | #endif |
| 26 | #ifdef LTC_RC4_STREAM |
| 27 | DO(rc4_stream_test()); |
| 28 | #endif |
| 29 | #ifdef LTC_SOBER128_STREAM |
| 30 | DO(sober128_stream_test()); |
| 31 | #endif |
| 32 | |
| 33 | /* test hashes */ |
| 34 | for (x = 0; hash_descriptor[x].name != NULL; x++) { |
| 35 | DOX(hash_descriptor[x].test(), hash_descriptor[x].name); |
| 36 | } |
| 37 | |
| 38 | /* SHAKE128 + SHAKE256 tests are a bit special */ |
| 39 | DOX(sha3_shake_test(), "sha3_shake"); |
| 40 | |
| 41 | return 0; |
| 42 | } |
| 43 | |
| 44 | /* ref: $Format:%D$ */ |
| 45 | /* git commit: $Format:%H$ */ |
nothing calls this directly
no test coverage detected