int main() { test_sha1(); test_sha224(); test_sha256(); test_sha384(); test_sha512(); test_sha512_224(); test_sha512_256(); exit(0); }
void TestHashes() { const std::string p_fileName = "D:\\Games\\Doom3\\install.log"; const std::string p_text = "I'm a string ready to be hashed"; test_none( p_fileName, p_text ); test_crc32( p_fileName, p_text ); test_md5( p_fileName, p_text ); test_sha1( p_fileName, p_text ); test_sha224( p_fileName, p_text ); test_sha256( p_fileName, p_text ); return; }
int TestApp::main() { // Create a console window for text-output if not available ConsoleWindow console("Console"); try { Console::write_line("ClanLib Test Suite:"); Console::write_line("-------------------"); #ifdef WIN32 Console::write_line("Target: WIN32"); #else Console::write_line("Target: LINUX"); #endif Console::write_line("Directory: API/Core/Math"); test_md5(); test_rsa(); test_aes128(); test_aes192(); test_aes256(); test_sha1(); test_sha224(); test_sha256(); test_sha384(); test_sha512(); test_sha512_224(); test_sha512_256(); Console::write_line("All Tests Complete"); console.display_close_message(); } catch(Exception error) { Console::write_line("Exception caught:"); Console::write_line(error.message); console.display_close_message(); return -1; } return 0; }