Mercurial > dropbear
comparison demos/test.c @ 191:1c15b283127b libtomcrypt-orig
Import of libtomcrypt 1.02 with manual path rename rearrangement etc
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 06 May 2005 13:23:02 +0000 |
parents | |
children | 39d5d58461d6 |
comparison
equal
deleted
inserted
replaced
143:5d99163f7e32 | 191:1c15b283127b |
---|---|
1 #include <tomcrypt_test.h> | |
2 | |
3 int main(void) | |
4 { | |
5 reg_algs(); | |
6 printf("build == \n%s\n", crypt_build_settings); | |
7 printf("\ncipher_test..."); fflush(stdout); printf(cipher_hash_test() ? "failed" : "passed"); | |
8 printf("\nmodes_test..."); fflush(stdout); printf(modes_test() ? "failed" : "passed"); | |
9 printf("\nmac_test..."); fflush(stdout); printf(mac_test() ? "failed" : "passed"); | |
10 printf("\npkcs_1_test..."); fflush(stdout); printf(pkcs_1_test() ? "failed" : "passed"); | |
11 printf("\nstore_test..."); fflush(stdout); printf(store_test() ? "failed" : "passed"); | |
12 printf("\nrsa_test..."); fflush(stdout); printf(rsa_test() ? "failed" : "passed"); | |
13 printf("\necc_test..."); fflush(stdout); printf(ecc_tests() ? "failed" : "passed"); | |
14 printf("\ndsa_test..."); fflush(stdout); printf(dsa_test() ? "failed" : "passed"); | |
15 printf("\ndh_test..."); fflush(stdout); printf(dh_tests() ? "failed" : "passed"); | |
16 printf("\nder_test..."); fflush(stdout); printf(der_tests() ? "failed" : "passed"); | |
17 | |
18 return EXIT_SUCCESS; | |
19 } |