MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / cipher_hash_test

Function cipher_hash_test

extern/libtomcrypt/tests/cipher_hash_test.c:13–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <tomcrypt_test.h>
12
13int 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$ */

Callers

nothing calls this directly

Calls 5

chacha_testFunction · 0.85
rc4_stream_testFunction · 0.85
sober128_stream_testFunction · 0.85
sha3_shake_testFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected