Mercurial > dropbear
comparison demos/test/cipher_hash_test.c @ 15:6362d3854bb4 libtomcrypt-orig
0.96 release of LibTomCrypt
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Jun 2004 14:07:21 +0000 |
parents | |
children | 5d99163f7e32 |
comparison
equal
deleted
inserted
replaced
3:7faae8f46238 | 15:6362d3854bb4 |
---|---|
1 /* test the ciphers and hashes using their built-in self-tests */ | |
2 | |
3 #include "test.h" | |
4 | |
5 int cipher_hash_test(void) | |
6 { | |
7 int x; | |
8 | |
9 /* test ciphers */ | |
10 for (x = 0; cipher_descriptor[x].name != NULL; x++) { | |
11 DO(cipher_descriptor[x].test()); | |
12 } | |
13 | |
14 /* test hashes */ | |
15 for (x = 0; hash_descriptor[x].name != NULL; x++) { | |
16 DO(hash_descriptor[x].test()); | |
17 } | |
18 | |
19 return 0; | |
20 } |