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 main (int argc, char *argv[]) { init_highflyers_protocol (); check_frame_parser_helper_to_uint32 (); test_crc32(); test_struct_parser_test (); test_struct_serialize_test (); test_struct_serialize_parser_test (); second_struct_parser_test (); second_struct_serialize_test (); second_struct_serialize_parser_test (); TEST_SUMMARY return 0; }
int wmain(int argc, wchar_t *argv[]) { #if !defined(SMALL_CODE) || !defined(_M_X64) printf("VIA-Padlock support: %d\n", aes256_padlock_available()); #endif #ifndef SMALL_CODE printf("AES-NI support: %d\n", xts_aes_ni_available()); printf("SSE2 support: %d\n", xts_serpent_sse2_available()); printf("AVX support: %d\n", xts_serpent_avx_available()); printf("crc32: %d\n", test_crc32()); #endif printf("sha512: %d\n", test_sha512()); printf("pkcs5: %d\n", test_pkcs5()); printf("Aes-256: %d\n", test_aes256()); printf("Twofish-256: %d\n", test_twofish256()); printf("Seprent-256: %d\n", test_serpent256()); printf("XTS: %d\n", test_xts_mode()); _getch(); return 0; }