Exemple #1
0
int main() {
	test_sha1();
	test_sha224();
	test_sha256();
	test_sha384();
	test_sha512();
	test_sha512_224();
	test_sha512_256();
	exit(0);
}
Exemple #2
0
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;
}