Mercurial > dropbear
diff demos/test.c @ 192:9cc34777b479 libtomcrypt
propagate from branch 'au.asn.ucc.matt.ltc-orig' (head 9ba8f01f44320e9cb9f19881105ae84f84a43ea9)
to branch 'au.asn.ucc.matt.dropbear.ltc' (head dbf51c569bc34956ad948e4cc87a0eeb2170b768)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 08 May 2005 06:36:47 +0000 |
parents | 1c15b283127b |
children | 39d5d58461d6 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/demos/test.c Sun May 08 06:36:47 2005 +0000 @@ -0,0 +1,19 @@ +#include <tomcrypt_test.h> + +int main(void) +{ + reg_algs(); + printf("build == \n%s\n", crypt_build_settings); + printf("\ncipher_test..."); fflush(stdout); printf(cipher_hash_test() ? "failed" : "passed"); + printf("\nmodes_test..."); fflush(stdout); printf(modes_test() ? "failed" : "passed"); + printf("\nmac_test..."); fflush(stdout); printf(mac_test() ? "failed" : "passed"); + printf("\npkcs_1_test..."); fflush(stdout); printf(pkcs_1_test() ? "failed" : "passed"); + printf("\nstore_test..."); fflush(stdout); printf(store_test() ? "failed" : "passed"); + printf("\nrsa_test..."); fflush(stdout); printf(rsa_test() ? "failed" : "passed"); + printf("\necc_test..."); fflush(stdout); printf(ecc_tests() ? "failed" : "passed"); + printf("\ndsa_test..."); fflush(stdout); printf(dsa_test() ? "failed" : "passed"); + printf("\ndh_test..."); fflush(stdout); printf(dh_tests() ? "failed" : "passed"); + printf("\nder_test..."); fflush(stdout); printf(der_tests() ? "failed" : "passed"); + + return EXIT_SUCCESS; +}