From 499af55179261b7da6fb01f6947bb1d29bb02074 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 2 Feb 2023 08:40:07 +0100 Subject: Progress --- CMakeLists.txt | 197 +-------- StormLib_vs08.vcproj | 836 +------------------------------------ StormLib_vs08_dll.vcproj | 836 +------------------------------------ StormLib_vs08_test.vcproj | 836 +------------------------------------ StormLib_vs22.vcxproj | 199 +-------- StormLib_vs22.vcxproj.filters | 621 +-------------------------- StormLib_vs22_dll.vcxproj | 199 +-------- StormLib_vs22_dll.vcxproj.filters | 627 +--------------------------- StormLib_vs22_test.vcxproj | 199 +-------- StormLib_vs22_test.vcxproj.filters | 627 +--------------------------- src/LibTomCrypt.c | 84 ++++ src/LibTomMath.c | 125 ++++++ src/LibTomMathDesc.c | 4 + src/wdk/sources-wdk-tommath.c | 1 - 14 files changed, 285 insertions(+), 5106 deletions(-) create mode 100644 src/LibTomCrypt.c create mode 100644 src/LibTomMath.c create mode 100644 src/LibTomMathDesc.c diff --git a/CMakeLists.txt b/CMakeLists.txt index c480d40..009df62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,203 +61,12 @@ if(MSVC) endif() set(TOMCRYPT_FILES - src/libtomcrypt/src/hashes/hash_memory.c - src/libtomcrypt/src/hashes/md5.c - src/libtomcrypt/src/hashes/sha1.c - src/libtomcrypt/src/math/ltm_desc.c - src/libtomcrypt/src/math/multi.c - src/libtomcrypt/src/math/rand_prime.c - src/libtomcrypt/src/misc/base64_decode.c - src/libtomcrypt/src/misc/crypt_argchk.c - src/libtomcrypt/src/misc/crypt_find_hash.c - src/libtomcrypt/src/misc/crypt_find_prng.c - src/libtomcrypt/src/misc/crypt_hash_descriptor.c - src/libtomcrypt/src/misc/crypt_hash_is_valid.c - src/libtomcrypt/src/misc/crypt_ltc_mp_descriptor.c - src/libtomcrypt/src/misc/crypt_prng_descriptor.c - src/libtomcrypt/src/misc/crypt_prng_is_valid.c - src/libtomcrypt/src/misc/crypt_register_hash.c - src/libtomcrypt/src/misc/crypt_register_prng.c - src/libtomcrypt/src/misc/zeromem.c - src/libtomcrypt/src/pk/asn1/der_decode_bit_string.c - src/libtomcrypt/src/pk/asn1/der_decode_boolean.c - src/libtomcrypt/src/pk/asn1/der_decode_choice.c - src/libtomcrypt/src/pk/asn1/der_decode_ia5_string.c - src/libtomcrypt/src/pk/asn1/der_decode_integer.c - src/libtomcrypt/src/pk/asn1/der_decode_object_identifier.c - src/libtomcrypt/src/pk/asn1/der_decode_octet_string.c - src/libtomcrypt/src/pk/asn1/der_decode_printable_string.c - src/libtomcrypt/src/pk/asn1/der_decode_sequence_ex.c - src/libtomcrypt/src/pk/asn1/der_decode_sequence_flexi.c - src/libtomcrypt/src/pk/asn1/der_decode_sequence_multi.c - src/libtomcrypt/src/pk/asn1/der_decode_short_integer.c - src/libtomcrypt/src/pk/asn1/der_decode_utctime.c - src/libtomcrypt/src/pk/asn1/der_decode_utf8_string.c - src/libtomcrypt/src/pk/asn1/der_encode_bit_string.c - src/libtomcrypt/src/pk/asn1/der_encode_boolean.c - src/libtomcrypt/src/pk/asn1/der_encode_ia5_string.c - src/libtomcrypt/src/pk/asn1/der_encode_integer.c - src/libtomcrypt/src/pk/asn1/der_encode_object_identifier.c - src/libtomcrypt/src/pk/asn1/der_encode_octet_string.c - src/libtomcrypt/src/pk/asn1/der_encode_printable_string.c - src/libtomcrypt/src/pk/asn1/der_encode_sequence_ex.c - src/libtomcrypt/src/pk/asn1/der_encode_sequence_multi.c - src/libtomcrypt/src/pk/asn1/der_encode_set.c - src/libtomcrypt/src/pk/asn1/der_encode_setof.c - src/libtomcrypt/src/pk/asn1/der_encode_short_integer.c - src/libtomcrypt/src/pk/asn1/der_encode_utctime.c - src/libtomcrypt/src/pk/asn1/der_encode_utf8_string.c - src/libtomcrypt/src/pk/asn1/der_length_bit_string.c - src/libtomcrypt/src/pk/asn1/der_length_boolean.c - src/libtomcrypt/src/pk/asn1/der_length_ia5_string.c - src/libtomcrypt/src/pk/asn1/der_length_integer.c - src/libtomcrypt/src/pk/asn1/der_length_object_identifier.c - src/libtomcrypt/src/pk/asn1/der_length_octet_string.c - src/libtomcrypt/src/pk/asn1/der_length_printable_string.c - src/libtomcrypt/src/pk/asn1/der_length_sequence.c - src/libtomcrypt/src/pk/asn1/der_length_utctime.c - src/libtomcrypt/src/pk/asn1/der_sequence_free.c - src/libtomcrypt/src/pk/asn1/der_length_utf8_string.c - src/libtomcrypt/src/pk/asn1/der_length_short_integer.c - src/libtomcrypt/src/pk/ecc/ltc_ecc_map.c - src/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c - src/libtomcrypt/src/pk/ecc/ltc_ecc_mulmod.c - src/libtomcrypt/src/pk/ecc/ltc_ecc_points.c - src/libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c - src/libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c - src/libtomcrypt/src/pk/pkcs1/pkcs_1_mgf1.c - src/libtomcrypt/src/pk/pkcs1/pkcs_1_oaep_decode.c - src/libtomcrypt/src/pk/pkcs1/pkcs_1_pss_decode.c - src/libtomcrypt/src/pk/pkcs1/pkcs_1_pss_encode.c - src/libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_decode.c - src/libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_encode.c - src/libtomcrypt/src/pk/rsa/rsa_exptmod.c - src/libtomcrypt/src/pk/rsa/rsa_free.c - src/libtomcrypt/src/pk/rsa/rsa_import.c - src/libtomcrypt/src/pk/rsa/rsa_make_key.c - src/libtomcrypt/src/pk/rsa/rsa_sign_hash.c - src/libtomcrypt/src/pk/rsa/rsa_verify_hash.c + src/LibTomCrypt.c ) set(TOMMATH_FILES - src/libtommath/bncore.c - src/libtommath/bn_fast_mp_invmod.c - src/libtommath/bn_fast_mp_montgomery_reduce.c - src/libtommath/bn_fast_s_mp_mul_digs.c - src/libtommath/bn_fast_s_mp_mul_high_digs.c - src/libtommath/bn_fast_s_mp_sqr.c - src/libtommath/bn_mp_2expt.c - src/libtommath/bn_mp_abs.c - src/libtommath/bn_mp_add.c - src/libtommath/bn_mp_addmod.c - src/libtommath/bn_mp_add_d.c - src/libtommath/bn_mp_and.c - src/libtommath/bn_mp_clamp.c - src/libtommath/bn_mp_clear.c - src/libtommath/bn_mp_clear_multi.c - src/libtommath/bn_mp_cmp.c - src/libtommath/bn_mp_cmp_d.c - src/libtommath/bn_mp_cmp_mag.c - src/libtommath/bn_mp_cnt_lsb.c - src/libtommath/bn_mp_copy.c - src/libtommath/bn_mp_count_bits.c - src/libtommath/bn_mp_div.c - src/libtommath/bn_mp_div_2.c - src/libtommath/bn_mp_div_2d.c - src/libtommath/bn_mp_div_3.c - src/libtommath/bn_mp_div_d.c - src/libtommath/bn_mp_dr_is_modulus.c - src/libtommath/bn_mp_dr_reduce.c - src/libtommath/bn_mp_dr_setup.c - src/libtommath/bn_mp_exch.c - src/libtommath/bn_mp_exptmod.c - src/libtommath/bn_mp_exptmod_fast.c - src/libtommath/bn_mp_expt_d.c - src/libtommath/bn_mp_exteuclid.c - src/libtommath/bn_mp_fread.c - src/libtommath/bn_mp_fwrite.c - src/libtommath/bn_mp_gcd.c - src/libtommath/bn_mp_get_int.c - src/libtommath/bn_mp_grow.c - src/libtommath/bn_mp_init.c - src/libtommath/bn_mp_init_copy.c - src/libtommath/bn_mp_init_multi.c - src/libtommath/bn_mp_init_set.c - src/libtommath/bn_mp_init_set_int.c - src/libtommath/bn_mp_init_size.c - src/libtommath/bn_mp_invmod.c - src/libtommath/bn_mp_invmod_slow.c - src/libtommath/bn_mp_is_square.c - src/libtommath/bn_mp_jacobi.c - src/libtommath/bn_mp_karatsuba_mul.c - src/libtommath/bn_mp_karatsuba_sqr.c - src/libtommath/bn_mp_lcm.c - src/libtommath/bn_mp_lshd.c - src/libtommath/bn_mp_mod.c - src/libtommath/bn_mp_mod_2d.c - src/libtommath/bn_mp_mod_d.c - src/libtommath/bn_mp_montgomery_calc_normalization.c - src/libtommath/bn_mp_montgomery_reduce.c - src/libtommath/bn_mp_montgomery_setup.c - src/libtommath/bn_mp_mul.c - src/libtommath/bn_mp_mulmod.c - src/libtommath/bn_mp_mul_2.c - src/libtommath/bn_mp_mul_2d.c - src/libtommath/bn_mp_mul_d.c - src/libtommath/bn_mp_neg.c - src/libtommath/bn_mp_n_root.c - src/libtommath/bn_mp_or.c - src/libtommath/bn_mp_prime_fermat.c - src/libtommath/bn_mp_prime_is_divisible.c - src/libtommath/bn_mp_prime_is_prime.c - src/libtommath/bn_mp_prime_miller_rabin.c - src/libtommath/bn_mp_prime_next_prime.c - src/libtommath/bn_mp_prime_rabin_miller_trials.c - src/libtommath/bn_mp_prime_random_ex.c - src/libtommath/bn_mp_radix_size.c - src/libtommath/bn_mp_radix_smap.c - src/libtommath/bn_mp_rand.c - src/libtommath/bn_mp_read_radix.c - src/libtommath/bn_mp_read_signed_bin.c - src/libtommath/bn_mp_read_unsigned_bin.c - src/libtommath/bn_mp_reduce.c - src/libtommath/bn_mp_reduce_2k.c - src/libtommath/bn_mp_reduce_2k_l.c - src/libtommath/bn_mp_reduce_2k_setup.c - src/libtommath/bn_mp_reduce_2k_setup_l.c - src/libtommath/bn_mp_reduce_is_2k.c - src/libtommath/bn_mp_reduce_is_2k_l.c - src/libtommath/bn_mp_reduce_setup.c - src/libtommath/bn_mp_rshd.c - src/libtommath/bn_mp_set.c - src/libtommath/bn_mp_set_int.c - src/libtommath/bn_mp_shrink.c - src/libtommath/bn_mp_signed_bin_size.c - src/libtommath/bn_mp_sqr.c - src/libtommath/bn_mp_sqrmod.c - src/libtommath/bn_mp_sqrt.c - src/libtommath/bn_mp_sub.c - src/libtommath/bn_mp_submod.c - src/libtommath/bn_mp_sub_d.c - src/libtommath/bn_mp_toom_mul.c - src/libtommath/bn_mp_toom_sqr.c - src/libtommath/bn_mp_toradix.c - src/libtommath/bn_mp_toradix_n.c - src/libtommath/bn_mp_to_signed_bin.c - src/libtommath/bn_mp_to_signed_bin_n.c - src/libtommath/bn_mp_to_unsigned_bin.c - src/libtommath/bn_mp_to_unsigned_bin_n.c - src/libtommath/bn_mp_unsigned_bin_size.c - src/libtommath/bn_mp_xor.c - src/libtommath/bn_mp_zero.c - src/libtommath/bn_prime_tab.c - src/libtommath/bn_reverse.c - src/libtommath/bn_s_mp_add.c - src/libtommath/bn_s_mp_exptmod.c - src/libtommath/bn_s_mp_mul_digs.c - src/libtommath/bn_s_mp_mul_high_digs.c - src/libtommath/bn_s_mp_sqr.c - src/libtommath/bn_s_mp_sub.c + src/LibTomMath.c + src/LibTomMathDesc.c ) set(BZIP2_FILES diff --git a/StormLib_vs08.vcproj b/StormLib_vs08.vcproj index 4f59a1b..031dde8 100644 --- a/StormLib_vs08.vcproj +++ b/StormLib_vs08.vcproj @@ -1238,6 +1238,18 @@ /> + + + + + + @@ -4082,830 +4094,6 @@ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/StormLib_vs08_dll.vcproj b/StormLib_vs08_dll.vcproj index 8658887..4a04074 100644 --- a/StormLib_vs08_dll.vcproj +++ b/StormLib_vs08_dll.vcproj @@ -440,6 +440,18 @@ /> + + + + + + @@ -1724,830 +1736,6 @@ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/StormLib_vs08_test.vcproj b/StormLib_vs08_test.vcproj index 2f03a0b..d3506ea 100644 --- a/StormLib_vs08_test.vcproj +++ b/StormLib_vs08_test.vcproj @@ -410,6 +410,18 @@ /> + + + + + + @@ -1150,830 +1162,6 @@ > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/StormLib_vs22.vcxproj b/StormLib_vs22.vcxproj index eba3ea2..26d8f70 100644 --- a/StormLib_vs22.vcxproj +++ b/StormLib_vs22.vcxproj @@ -601,23 +601,9 @@ StormCommon.h Level4 - - - - - - - - - - - - - - - - - + + + Create StormCommon.h @@ -1013,185 +999,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/StormLib_vs22.vcxproj.filters b/StormLib_vs22.vcxproj.filters index 37915d2..22c9793 100644 --- a/StormLib_vs22.vcxproj.filters +++ b/StormLib_vs22.vcxproj.filters @@ -19,36 +19,6 @@ {87256d6a-e658-4f60-8759-6bff32a35eb2} - - {d730d7c1-2960-49d2-ba0d-d1a91dd08964} - - - {13e5ccb1-06f1-4d10-bdc1-825b51c64dbf} - - - {73f7f025-7366-4d76-8d60-4327e00b9d18} - - - {be21c641-7727-4d7b-919e-c895d801db17} - - - {694a7758-f909-4b8e-aa13-4d06a8c70eff} - - - {3f01cae6-5676-4f33-bb38-215341eedfc4} - - - {63d75851-c430-4c76-aa08-3398523aab4a} - - - {11175e9e-e9f1-405c-961b-933e72503cdd} - - - {e30512f4-bdf8-4460-823d-475bd8f08d28} - - - {d2889ef6-3f12-4a9b-8624-8d061748ff03} - {02c6dfb8-4a58-46c5-bb35-69ba6215a3a6} @@ -181,543 +151,6 @@ Source Files\huffman - - Source Files\libtomcrypt\hashes - - - Source Files\libtomcrypt\hashes - - - Source Files\libtomcrypt\hashes - - - Source Files\libtomcrypt\math - - - Source Files\libtomcrypt\math - - - Source Files\libtomcrypt\math - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - Source Files\lzma @@ -775,56 +208,14 @@ Source Files - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\pkcs1 + + Source Files - - Source Files\libtomcrypt\pk\pkcs1 + + Source Files - - Source Files\libtomcrypt\pk\rsa + + Source Files \ No newline at end of file diff --git a/StormLib_vs22_dll.vcxproj b/StormLib_vs22_dll.vcxproj index ba888e9..bda8dd9 100644 --- a/StormLib_vs22_dll.vcxproj +++ b/StormLib_vs22_dll.vcxproj @@ -213,202 +213,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + diff --git a/StormLib_vs22_dll.vcxproj.filters b/StormLib_vs22_dll.vcxproj.filters index 644488f..2eaf026 100644 --- a/StormLib_vs22_dll.vcxproj.filters +++ b/StormLib_vs22_dll.vcxproj.filters @@ -19,36 +19,6 @@ {593ac5e7-fe06-42b8-8025-e3bd725f95d8} - - {9887a885-78fa-4164-80b9-9db6b0c11f86} - - - {7db62947-d38d-48e9-8b52-4cad226394a6} - - - {b435fecf-9a65-4f2e-8d64-7dfc70de3137} - - - {d8ad7878-9e42-427a-b5b6-ae51d92b92cf} - - - {07806629-c061-49ed-8212-0585d25fae23} - - - {ca554d9f-b602-452a-971e-86b537ee2ad1} - - - {46e1697c-e6c2-4a8c-b4d2-0142311bb48b} - - - {99279e07-2e33-44c9-8f37-0b810ee4ba25} - - - {04fbcfe0-3023-4fa0-8e36-26ab024a4abf} - - - {4720c7a0-f4aa-4737-978c-9efe8b429906} - {856c9964-4d85-40e9-8cbd-f4c672c07780} @@ -184,594 +154,6 @@ Source Files\huffman - - Source Files\libtomcrypt\hashes - - - Source Files\libtomcrypt\hashes - - - Source Files\libtomcrypt\hashes - - - Source Files\libtomcrypt\math - - - Source Files\libtomcrypt\math - - - Source Files\libtomcrypt\math - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - Source Files\lzma @@ -829,6 +211,15 @@ Source Files + + Source Files + + + Source Files + + + Source Files + diff --git a/StormLib_vs22_test.vcxproj b/StormLib_vs22_test.vcxproj index d293549..18cee5b 100644 --- a/StormLib_vs22_test.vcxproj +++ b/StormLib_vs22_test.vcxproj @@ -218,202 +218,9 @@ Level1 Level1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + diff --git a/StormLib_vs22_test.vcxproj.filters b/StormLib_vs22_test.vcxproj.filters index 18f619a..d341b12 100644 --- a/StormLib_vs22_test.vcxproj.filters +++ b/StormLib_vs22_test.vcxproj.filters @@ -19,36 +19,6 @@ {7861b4fb-1471-4573-92ea-08c06dc14b93} - - {8ba6c5c7-3ad0-44e6-8829-5020fce13d49} - - - {92cb0c1d-86f0-4735-9e4e-b07df664c359} - - - {f7fb3d55-94af-4a6e-be7b-76cb909e7325} - - - {337159fe-94a7-45a8-a91b-fa8b9d06b2ae} - - - {359bb3d3-71d5-47e7-967a-1fada7882e4d} - - - {775dbb7e-ef06-4660-9d84-50ff2557ef54} - - - {2e5d39cc-482c-4775-8830-79f8314e72e4} - - - {1e0ef267-228e-4c59-8d88-e3b33aeaff49} - - - {98330deb-0b92-4f02-8016-8a33dc5f5d29} - - - {fa78c716-784a-43a0-a548-db413431973b} - {5308566b-d3fd-4561-a7fb-982a63662793} @@ -193,594 +163,6 @@ Source Files\huffman - - Source Files\libtomcrypt\hashes - - - Source Files\libtomcrypt\hashes - - - Source Files\libtomcrypt\hashes - - - Source Files\libtomcrypt\math - - - Source Files\libtomcrypt\math - - - Source Files\libtomcrypt\math - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\misc - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\asn1 - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\ecc - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\pkcs1 - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtomcrypt\pk\rsa - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - - - Source Files\libtommath - Source Files\lzma @@ -835,5 +217,14 @@ Source Files\jenkins + + Source Files + + + Source Files + + + Source Files + \ No newline at end of file diff --git a/src/LibTomCrypt.c b/src/LibTomCrypt.c new file mode 100644 index 0000000..ba8923e --- /dev/null +++ b/src/LibTomCrypt.c @@ -0,0 +1,84 @@ +// +// This compound source is here for reducing the long build time +// of the entire StormLib library +// + +#pragma warning(disable:4242) // der_decode_ia5_string.c(84) : warning C4242: '=' : conversion from 'int' to 'unsigned char', possible loss of data + +#include ".\libtomcrypt\src\hashes\hash_memory.c" +#include ".\libtomcrypt\src\hashes\md5.c" +#include ".\libtomcrypt\src\hashes\sha1.c" +#include ".\libtomcrypt\src\math\multi.c" +#include ".\libtomcrypt\src\math\rand_prime.c" +#include ".\libtomcrypt\src\misc\base64_decode.c" +#include ".\libtomcrypt\src\misc\crypt_argchk.c" +#include ".\libtomcrypt\src\misc\crypt_find_hash.c" +#include ".\libtomcrypt\src\misc\crypt_find_prng.c" +#include ".\libtomcrypt\src\misc\crypt_hash_descriptor.c" +#include ".\libtomcrypt\src\misc\crypt_hash_is_valid.c" +#include ".\libtomcrypt\src\misc\crypt_libc.c" +#include ".\libtomcrypt\src\misc\crypt_ltc_mp_descriptor.c" +#include ".\libtomcrypt\src\misc\crypt_prng_descriptor.c" +#include ".\libtomcrypt\src\misc\crypt_prng_is_valid.c" +#include ".\libtomcrypt\src\misc\crypt_register_hash.c" +#include ".\libtomcrypt\src\misc\crypt_register_prng.c" +#include ".\libtomcrypt\src\misc\zeromem.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_bit_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_boolean.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_choice.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_ia5_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_integer.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_object_identifier.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_octet_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_printable_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_sequence_ex.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_sequence_flexi.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_sequence_multi.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_short_integer.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_utctime.c" +#include ".\libtomcrypt\src\pk\asn1\der_decode_utf8_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_bit_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_boolean.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_ia5_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_integer.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_object_identifier.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_octet_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_printable_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_sequence_ex.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_sequence_multi.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_set.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_setof.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_short_integer.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_utctime.c" +#include ".\libtomcrypt\src\pk\asn1\der_encode_utf8_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_bit_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_boolean.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_ia5_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_integer.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_object_identifier.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_octet_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_printable_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_sequence.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_short_integer.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_utctime.c" +#include ".\libtomcrypt\src\pk\asn1\der_length_utf8_string.c" +#include ".\libtomcrypt\src\pk\asn1\der_sequence_free.c" +#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_map.c" +#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_mul2add.c" +#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_mulmod.c" +#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_points.c" +#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_projective_add_point.c" +#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_projective_dbl_point.c" +#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_mgf1.c" +#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_oaep_decode.c" +#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_pss_decode.c" +#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_pss_encode.c" +#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_v1_5_decode.c" +#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_v1_5_encode.c" +#include ".\libtomcrypt\src\pk\rsa\rsa_exptmod.c" +#include ".\libtomcrypt\src\pk\rsa\rsa_free.c" +#include ".\libtomcrypt\src\pk\rsa\rsa_import.c" +#include ".\libtomcrypt\src\pk\rsa\rsa_make_key.c" +#include ".\libtomcrypt\src\pk\rsa\rsa_sign_hash.c" +#include ".\libtomcrypt\src\pk\rsa\rsa_verify_hash.c" +#include ".\libtomcrypt\src\pk\rsa\rsa_verify_simple.c" diff --git a/src/LibTomMath.c b/src/LibTomMath.c new file mode 100644 index 0000000..20582d0 --- /dev/null +++ b/src/LibTomMath.c @@ -0,0 +1,125 @@ +// +// This compound source is here for reducing the long build time +// of the entire StormLib library +// + +#pragma warning(disable:4334) // warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) + +#include ".\libtommath\bn_fast_mp_invmod.c" +#include ".\libtommath\bn_fast_mp_montgomery_reduce.c" +#include ".\libtommath\bn_fast_s_mp_mul_digs.c" +#include ".\libtommath\bn_fast_s_mp_mul_high_digs.c" +#include ".\libtommath\bn_fast_s_mp_sqr.c" +#include ".\libtommath\bn_mp_2expt.c" +#include ".\libtommath\bn_mp_abs.c" +#include ".\libtommath\bn_mp_add.c" +#include ".\libtommath\bn_mp_add_d.c" +#include ".\libtommath\bn_mp_addmod.c" +#include ".\libtommath\bn_mp_and.c" +#include ".\libtommath\bn_mp_clamp.c" +#include ".\libtommath\bn_mp_clear.c" +#include ".\libtommath\bn_mp_clear_multi.c" +#include ".\libtommath\bn_mp_cmp.c" +#include ".\libtommath\bn_mp_cmp_d.c" +#include ".\libtommath\bn_mp_cmp_mag.c" +#include ".\libtommath\bn_mp_cnt_lsb.c" +#include ".\libtommath\bn_mp_copy.c" +#include ".\libtommath\bn_mp_count_bits.c" +#include ".\libtommath\bn_mp_div.c" +#include ".\libtommath\bn_mp_div_2.c" +#include ".\libtommath\bn_mp_div_2d.c" +#include ".\libtommath\bn_mp_div_3.c" +#include ".\libtommath\bn_mp_div_d.c" +#include ".\libtommath\bn_mp_dr_is_modulus.c" +#include ".\libtommath\bn_mp_dr_reduce.c" +#include ".\libtommath\bn_mp_dr_setup.c" +#include ".\libtommath\bn_mp_exch.c" +#include ".\libtommath\bn_mp_expt_d.c" +#include ".\libtommath\bn_mp_exptmod.c" +#include ".\libtommath\bn_mp_exptmod_fast.c" +#include ".\libtommath\bn_mp_exteuclid.c" +#include ".\libtommath\bn_mp_fread.c" +#include ".\libtommath\bn_mp_fwrite.c" +#include ".\libtommath\bn_mp_gcd.c" +#include ".\libtommath\bn_mp_get_int.c" +#include ".\libtommath\bn_mp_grow.c" +#include ".\libtommath\bn_mp_init.c" +#include ".\libtommath\bn_mp_init_copy.c" +#include ".\libtommath\bn_mp_init_multi.c" +#include ".\libtommath\bn_mp_init_set.c" +#include ".\libtommath\bn_mp_init_set_int.c" +#include ".\libtommath\bn_mp_init_size.c" +#include ".\libtommath\bn_mp_invmod.c" +#include ".\libtommath\bn_mp_invmod_slow.c" +#include ".\libtommath\bn_mp_is_square.c" +#include ".\libtommath\bn_mp_jacobi.c" +#include ".\libtommath\bn_mp_karatsuba_mul.c" +#include ".\libtommath\bn_mp_karatsuba_sqr.c" +#include ".\libtommath\bn_mp_lcm.c" +#include ".\libtommath\bn_mp_lshd.c" +#include ".\libtommath\bn_mp_mod.c" +#include ".\libtommath\bn_mp_mod_2d.c" +#include ".\libtommath\bn_mp_mod_d.c" +#include ".\libtommath\bn_mp_montgomery_calc_normalization.c" +#include ".\libtommath\bn_mp_montgomery_reduce.c" +#include ".\libtommath\bn_mp_montgomery_setup.c" +#include ".\libtommath\bn_mp_mul.c" +#include ".\libtommath\bn_mp_mul_2.c" +#include ".\libtommath\bn_mp_mul_2d.c" +#include ".\libtommath\bn_mp_mul_d.c" +#include ".\libtommath\bn_mp_mulmod.c" +#include ".\libtommath\bn_mp_n_root.c" +#include ".\libtommath\bn_mp_neg.c" +#include ".\libtommath\bn_mp_or.c" +#include ".\libtommath\bn_mp_prime_fermat.c" +#include ".\libtommath\bn_mp_prime_is_divisible.c" +#include ".\libtommath\bn_mp_prime_is_prime.c" +#include ".\libtommath\bn_mp_prime_miller_rabin.c" +#include ".\libtommath\bn_mp_prime_next_prime.c" +#include ".\libtommath\bn_mp_prime_rabin_miller_trials.c" +#include ".\libtommath\bn_mp_prime_random_ex.c" +#include ".\libtommath\bn_mp_radix_size.c" +#include ".\libtommath\bn_mp_radix_smap.c" +#include ".\libtommath\bn_mp_rand.c" +#include ".\libtommath\bn_mp_read_radix.c" +#include ".\libtommath\bn_mp_read_signed_bin.c" +#include ".\libtommath\bn_mp_read_unsigned_bin.c" +#include ".\libtommath\bn_mp_reduce.c" +#include ".\libtommath\bn_mp_reduce_2k.c" +#include ".\libtommath\bn_mp_reduce_2k_l.c" +#include ".\libtommath\bn_mp_reduce_2k_setup.c" +#include ".\libtommath\bn_mp_reduce_2k_setup_l.c" +#include ".\libtommath\bn_mp_reduce_is_2k.c" +#include ".\libtommath\bn_mp_reduce_is_2k_l.c" +#include ".\libtommath\bn_mp_reduce_setup.c" +#include ".\libtommath\bn_mp_rshd.c" +#include ".\libtommath\bn_mp_set.c" +#include ".\libtommath\bn_mp_set_int.c" +#include ".\libtommath\bn_mp_shrink.c" +#include ".\libtommath\bn_mp_signed_bin_size.c" +#include ".\libtommath\bn_mp_sqr.c" +#include ".\libtommath\bn_mp_sqrmod.c" +#include ".\libtommath\bn_mp_sqrt.c" +#include ".\libtommath\bn_mp_sub.c" +#include ".\libtommath\bn_mp_sub_d.c" +#include ".\libtommath\bn_mp_submod.c" +#include ".\libtommath\bn_mp_to_signed_bin.c" +#include ".\libtommath\bn_mp_to_signed_bin_n.c" +#include ".\libtommath\bn_mp_to_unsigned_bin.c" +#include ".\libtommath\bn_mp_to_unsigned_bin_n.c" +#include ".\libtommath\bn_mp_toom_mul.c" +#include ".\libtommath\bn_mp_toom_sqr.c" +#include ".\libtommath\bn_mp_toradix.c" +#include ".\libtommath\bn_mp_toradix_n.c" +#include ".\libtommath\bn_mp_unsigned_bin_size.c" +#include ".\libtommath\bn_mp_xor.c" +#include ".\libtommath\bn_mp_zero.c" +#include ".\libtommath\bn_prime_tab.c" +#include ".\libtommath\bn_reverse.c" +#include ".\libtommath\bn_s_mp_add.c" +#include ".\libtommath\bn_s_mp_exptmod.c" +#include ".\libtommath\bn_s_mp_mul_digs.c" +#include ".\libtommath\bn_s_mp_mul_high_digs.c" +#include ".\libtommath\bn_s_mp_sqr.c" +#include ".\libtommath\bn_s_mp_sub.c" +#include ".\libtommath\bncore.c" diff --git a/src/LibTomMathDesc.c b/src/LibTomMathDesc.c new file mode 100644 index 0000000..574cdfb --- /dev/null +++ b/src/LibTomMathDesc.c @@ -0,0 +1,4 @@ +// This is a source file for WDK build of StormLib +// It is copied to the root folder during the build process + +#include ".\libtomcrypt\src\math\ltm_desc.c" diff --git a/src/wdk/sources-wdk-tommath.c b/src/wdk/sources-wdk-tommath.c index 78e86a2..b394d27 100644 --- a/src/wdk/sources-wdk-tommath.c +++ b/src/wdk/sources-wdk-tommath.c @@ -121,4 +121,3 @@ #include "src\libtommath\bn_s_mp_sqr.c" #include "src\libtommath\bn_s_mp_sub.c" #include "src\libtommath\bncore.c" - -- cgit v1.2.3 From 5e4f60a582fe3663a1ceefa429283d04a89c6716 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 2 Feb 2023 08:56:27 +0100 Subject: Linux build paths --- src/LibTomCrypt.c | 154 ++++++++++++++++----------------- src/LibTomMath.c | 236 +++++++++++++++++++++++++-------------------------- src/LibTomMathDesc.c | 2 +- 3 files changed, 196 insertions(+), 196 deletions(-) diff --git a/src/LibTomCrypt.c b/src/LibTomCrypt.c index ba8923e..792e1ec 100644 --- a/src/LibTomCrypt.c +++ b/src/LibTomCrypt.c @@ -5,80 +5,80 @@ #pragma warning(disable:4242) // der_decode_ia5_string.c(84) : warning C4242: '=' : conversion from 'int' to 'unsigned char', possible loss of data -#include ".\libtomcrypt\src\hashes\hash_memory.c" -#include ".\libtomcrypt\src\hashes\md5.c" -#include ".\libtomcrypt\src\hashes\sha1.c" -#include ".\libtomcrypt\src\math\multi.c" -#include ".\libtomcrypt\src\math\rand_prime.c" -#include ".\libtomcrypt\src\misc\base64_decode.c" -#include ".\libtomcrypt\src\misc\crypt_argchk.c" -#include ".\libtomcrypt\src\misc\crypt_find_hash.c" -#include ".\libtomcrypt\src\misc\crypt_find_prng.c" -#include ".\libtomcrypt\src\misc\crypt_hash_descriptor.c" -#include ".\libtomcrypt\src\misc\crypt_hash_is_valid.c" -#include ".\libtomcrypt\src\misc\crypt_libc.c" -#include ".\libtomcrypt\src\misc\crypt_ltc_mp_descriptor.c" -#include ".\libtomcrypt\src\misc\crypt_prng_descriptor.c" -#include ".\libtomcrypt\src\misc\crypt_prng_is_valid.c" -#include ".\libtomcrypt\src\misc\crypt_register_hash.c" -#include ".\libtomcrypt\src\misc\crypt_register_prng.c" -#include ".\libtomcrypt\src\misc\zeromem.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_bit_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_boolean.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_choice.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_ia5_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_integer.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_object_identifier.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_octet_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_printable_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_sequence_ex.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_sequence_flexi.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_sequence_multi.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_short_integer.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_utctime.c" -#include ".\libtomcrypt\src\pk\asn1\der_decode_utf8_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_bit_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_boolean.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_ia5_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_integer.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_object_identifier.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_octet_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_printable_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_sequence_ex.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_sequence_multi.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_set.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_setof.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_short_integer.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_utctime.c" -#include ".\libtomcrypt\src\pk\asn1\der_encode_utf8_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_bit_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_boolean.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_ia5_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_integer.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_object_identifier.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_octet_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_printable_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_sequence.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_short_integer.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_utctime.c" -#include ".\libtomcrypt\src\pk\asn1\der_length_utf8_string.c" -#include ".\libtomcrypt\src\pk\asn1\der_sequence_free.c" -#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_map.c" -#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_mul2add.c" -#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_mulmod.c" -#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_points.c" -#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_projective_add_point.c" -#include ".\libtomcrypt\src\pk\ecc\ltc_ecc_projective_dbl_point.c" -#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_mgf1.c" -#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_oaep_decode.c" -#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_pss_decode.c" -#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_pss_encode.c" -#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_v1_5_decode.c" -#include ".\libtomcrypt\src\pk\pkcs1\pkcs_1_v1_5_encode.c" -#include ".\libtomcrypt\src\pk\rsa\rsa_exptmod.c" -#include ".\libtomcrypt\src\pk\rsa\rsa_free.c" -#include ".\libtomcrypt\src\pk\rsa\rsa_import.c" -#include ".\libtomcrypt\src\pk\rsa\rsa_make_key.c" -#include ".\libtomcrypt\src\pk\rsa\rsa_sign_hash.c" -#include ".\libtomcrypt\src\pk\rsa\rsa_verify_hash.c" -#include ".\libtomcrypt\src\pk\rsa\rsa_verify_simple.c" +#include "./libtomcrypt/src/hashes/hash_memory.c" +#include "./libtomcrypt/src/hashes/md5.c" +#include "./libtomcrypt/src/hashes/sha1.c" +#include "./libtomcrypt/src/math/multi.c" +#include "./libtomcrypt/src/math/rand_prime.c" +#include "./libtomcrypt/src/misc/base64_decode.c" +#include "./libtomcrypt/src/misc/crypt_argchk.c" +#include "./libtomcrypt/src/misc/crypt_find_hash.c" +#include "./libtomcrypt/src/misc/crypt_find_prng.c" +#include "./libtomcrypt/src/misc/crypt_hash_descriptor.c" +#include "./libtomcrypt/src/misc/crypt_hash_is_valid.c" +#include "./libtomcrypt/src/misc/crypt_libc.c" +#include "./libtomcrypt/src/misc/crypt_ltc_mp_descriptor.c" +#include "./libtomcrypt/src/misc/crypt_prng_descriptor.c" +#include "./libtomcrypt/src/misc/crypt_prng_is_valid.c" +#include "./libtomcrypt/src/misc/crypt_register_hash.c" +#include "./libtomcrypt/src/misc/crypt_register_prng.c" +#include "./libtomcrypt/src/misc/zeromem.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_bit_string.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_boolean.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_choice.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_ia5_string.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_integer.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_object_identifier.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_octet_string.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_printable_string.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_sequence_ex.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_sequence_flexi.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_sequence_multi.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_short_integer.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_utctime.c" +#include "./libtomcrypt/src/pk/asn1/der_decode_utf8_string.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_bit_string.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_boolean.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_ia5_string.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_integer.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_object_identifier.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_octet_string.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_printable_string.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_sequence_ex.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_sequence_multi.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_set.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_setof.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_short_integer.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_utctime.c" +#include "./libtomcrypt/src/pk/asn1/der_encode_utf8_string.c" +#include "./libtomcrypt/src/pk/asn1/der_length_bit_string.c" +#include "./libtomcrypt/src/pk/asn1/der_length_boolean.c" +#include "./libtomcrypt/src/pk/asn1/der_length_ia5_string.c" +#include "./libtomcrypt/src/pk/asn1/der_length_integer.c" +#include "./libtomcrypt/src/pk/asn1/der_length_object_identifier.c" +#include "./libtomcrypt/src/pk/asn1/der_length_octet_string.c" +#include "./libtomcrypt/src/pk/asn1/der_length_printable_string.c" +#include "./libtomcrypt/src/pk/asn1/der_length_sequence.c" +#include "./libtomcrypt/src/pk/asn1/der_length_short_integer.c" +#include "./libtomcrypt/src/pk/asn1/der_length_utctime.c" +#include "./libtomcrypt/src/pk/asn1/der_length_utf8_string.c" +#include "./libtomcrypt/src/pk/asn1/der_sequence_free.c" +#include "./libtomcrypt/src/pk/ecc/ltc_ecc_map.c" +#include "./libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c" +#include "./libtomcrypt/src/pk/ecc/ltc_ecc_mulmod.c" +#include "./libtomcrypt/src/pk/ecc/ltc_ecc_points.c" +#include "./libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c" +#include "./libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c" +#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_mgf1.c" +#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_oaep_decode.c" +#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_pss_decode.c" +#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_pss_encode.c" +#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_decode.c" +#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_encode.c" +#include "./libtomcrypt/src/pk/rsa/rsa_exptmod.c" +#include "./libtomcrypt/src/pk/rsa/rsa_free.c" +#include "./libtomcrypt/src/pk/rsa/rsa_import.c" +#include "./libtomcrypt/src/pk/rsa/rsa_make_key.c" +#include "./libtomcrypt/src/pk/rsa/rsa_sign_hash.c" +#include "./libtomcrypt/src/pk/rsa/rsa_verify_hash.c" +#include "./libtomcrypt/src/pk/rsa/rsa_verify_simple.c" diff --git a/src/LibTomMath.c b/src/LibTomMath.c index 20582d0..36454f0 100644 --- a/src/LibTomMath.c +++ b/src/LibTomMath.c @@ -5,121 +5,121 @@ #pragma warning(disable:4334) // warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) -#include ".\libtommath\bn_fast_mp_invmod.c" -#include ".\libtommath\bn_fast_mp_montgomery_reduce.c" -#include ".\libtommath\bn_fast_s_mp_mul_digs.c" -#include ".\libtommath\bn_fast_s_mp_mul_high_digs.c" -#include ".\libtommath\bn_fast_s_mp_sqr.c" -#include ".\libtommath\bn_mp_2expt.c" -#include ".\libtommath\bn_mp_abs.c" -#include ".\libtommath\bn_mp_add.c" -#include ".\libtommath\bn_mp_add_d.c" -#include ".\libtommath\bn_mp_addmod.c" -#include ".\libtommath\bn_mp_and.c" -#include ".\libtommath\bn_mp_clamp.c" -#include ".\libtommath\bn_mp_clear.c" -#include ".\libtommath\bn_mp_clear_multi.c" -#include ".\libtommath\bn_mp_cmp.c" -#include ".\libtommath\bn_mp_cmp_d.c" -#include ".\libtommath\bn_mp_cmp_mag.c" -#include ".\libtommath\bn_mp_cnt_lsb.c" -#include ".\libtommath\bn_mp_copy.c" -#include ".\libtommath\bn_mp_count_bits.c" -#include ".\libtommath\bn_mp_div.c" -#include ".\libtommath\bn_mp_div_2.c" -#include ".\libtommath\bn_mp_div_2d.c" -#include ".\libtommath\bn_mp_div_3.c" -#include ".\libtommath\bn_mp_div_d.c" -#include ".\libtommath\bn_mp_dr_is_modulus.c" -#include ".\libtommath\bn_mp_dr_reduce.c" -#include ".\libtommath\bn_mp_dr_setup.c" -#include ".\libtommath\bn_mp_exch.c" -#include ".\libtommath\bn_mp_expt_d.c" -#include ".\libtommath\bn_mp_exptmod.c" -#include ".\libtommath\bn_mp_exptmod_fast.c" -#include ".\libtommath\bn_mp_exteuclid.c" -#include ".\libtommath\bn_mp_fread.c" -#include ".\libtommath\bn_mp_fwrite.c" -#include ".\libtommath\bn_mp_gcd.c" -#include ".\libtommath\bn_mp_get_int.c" -#include ".\libtommath\bn_mp_grow.c" -#include ".\libtommath\bn_mp_init.c" -#include ".\libtommath\bn_mp_init_copy.c" -#include ".\libtommath\bn_mp_init_multi.c" -#include ".\libtommath\bn_mp_init_set.c" -#include ".\libtommath\bn_mp_init_set_int.c" -#include ".\libtommath\bn_mp_init_size.c" -#include ".\libtommath\bn_mp_invmod.c" -#include ".\libtommath\bn_mp_invmod_slow.c" -#include ".\libtommath\bn_mp_is_square.c" -#include ".\libtommath\bn_mp_jacobi.c" -#include ".\libtommath\bn_mp_karatsuba_mul.c" -#include ".\libtommath\bn_mp_karatsuba_sqr.c" -#include ".\libtommath\bn_mp_lcm.c" -#include ".\libtommath\bn_mp_lshd.c" -#include ".\libtommath\bn_mp_mod.c" -#include ".\libtommath\bn_mp_mod_2d.c" -#include ".\libtommath\bn_mp_mod_d.c" -#include ".\libtommath\bn_mp_montgomery_calc_normalization.c" -#include ".\libtommath\bn_mp_montgomery_reduce.c" -#include ".\libtommath\bn_mp_montgomery_setup.c" -#include ".\libtommath\bn_mp_mul.c" -#include ".\libtommath\bn_mp_mul_2.c" -#include ".\libtommath\bn_mp_mul_2d.c" -#include ".\libtommath\bn_mp_mul_d.c" -#include ".\libtommath\bn_mp_mulmod.c" -#include ".\libtommath\bn_mp_n_root.c" -#include ".\libtommath\bn_mp_neg.c" -#include ".\libtommath\bn_mp_or.c" -#include ".\libtommath\bn_mp_prime_fermat.c" -#include ".\libtommath\bn_mp_prime_is_divisible.c" -#include ".\libtommath\bn_mp_prime_is_prime.c" -#include ".\libtommath\bn_mp_prime_miller_rabin.c" -#include ".\libtommath\bn_mp_prime_next_prime.c" -#include ".\libtommath\bn_mp_prime_rabin_miller_trials.c" -#include ".\libtommath\bn_mp_prime_random_ex.c" -#include ".\libtommath\bn_mp_radix_size.c" -#include ".\libtommath\bn_mp_radix_smap.c" -#include ".\libtommath\bn_mp_rand.c" -#include ".\libtommath\bn_mp_read_radix.c" -#include ".\libtommath\bn_mp_read_signed_bin.c" -#include ".\libtommath\bn_mp_read_unsigned_bin.c" -#include ".\libtommath\bn_mp_reduce.c" -#include ".\libtommath\bn_mp_reduce_2k.c" -#include ".\libtommath\bn_mp_reduce_2k_l.c" -#include ".\libtommath\bn_mp_reduce_2k_setup.c" -#include ".\libtommath\bn_mp_reduce_2k_setup_l.c" -#include ".\libtommath\bn_mp_reduce_is_2k.c" -#include ".\libtommath\bn_mp_reduce_is_2k_l.c" -#include ".\libtommath\bn_mp_reduce_setup.c" -#include ".\libtommath\bn_mp_rshd.c" -#include ".\libtommath\bn_mp_set.c" -#include ".\libtommath\bn_mp_set_int.c" -#include ".\libtommath\bn_mp_shrink.c" -#include ".\libtommath\bn_mp_signed_bin_size.c" -#include ".\libtommath\bn_mp_sqr.c" -#include ".\libtommath\bn_mp_sqrmod.c" -#include ".\libtommath\bn_mp_sqrt.c" -#include ".\libtommath\bn_mp_sub.c" -#include ".\libtommath\bn_mp_sub_d.c" -#include ".\libtommath\bn_mp_submod.c" -#include ".\libtommath\bn_mp_to_signed_bin.c" -#include ".\libtommath\bn_mp_to_signed_bin_n.c" -#include ".\libtommath\bn_mp_to_unsigned_bin.c" -#include ".\libtommath\bn_mp_to_unsigned_bin_n.c" -#include ".\libtommath\bn_mp_toom_mul.c" -#include ".\libtommath\bn_mp_toom_sqr.c" -#include ".\libtommath\bn_mp_toradix.c" -#include ".\libtommath\bn_mp_toradix_n.c" -#include ".\libtommath\bn_mp_unsigned_bin_size.c" -#include ".\libtommath\bn_mp_xor.c" -#include ".\libtommath\bn_mp_zero.c" -#include ".\libtommath\bn_prime_tab.c" -#include ".\libtommath\bn_reverse.c" -#include ".\libtommath\bn_s_mp_add.c" -#include ".\libtommath\bn_s_mp_exptmod.c" -#include ".\libtommath\bn_s_mp_mul_digs.c" -#include ".\libtommath\bn_s_mp_mul_high_digs.c" -#include ".\libtommath\bn_s_mp_sqr.c" -#include ".\libtommath\bn_s_mp_sub.c" -#include ".\libtommath\bncore.c" +#include "./libtommath/bn_fast_mp_invmod.c" +#include "./libtommath/bn_fast_mp_montgomery_reduce.c" +#include "./libtommath/bn_fast_s_mp_mul_digs.c" +#include "./libtommath/bn_fast_s_mp_mul_high_digs.c" +#include "./libtommath/bn_fast_s_mp_sqr.c" +#include "./libtommath/bn_mp_2expt.c" +#include "./libtommath/bn_mp_abs.c" +#include "./libtommath/bn_mp_add.c" +#include "./libtommath/bn_mp_add_d.c" +#include "./libtommath/bn_mp_addmod.c" +#include "./libtommath/bn_mp_and.c" +#include "./libtommath/bn_mp_clamp.c" +#include "./libtommath/bn_mp_clear.c" +#include "./libtommath/bn_mp_clear_multi.c" +#include "./libtommath/bn_mp_cmp.c" +#include "./libtommath/bn_mp_cmp_d.c" +#include "./libtommath/bn_mp_cmp_mag.c" +#include "./libtommath/bn_mp_cnt_lsb.c" +#include "./libtommath/bn_mp_copy.c" +#include "./libtommath/bn_mp_count_bits.c" +#include "./libtommath/bn_mp_div.c" +#include "./libtommath/bn_mp_div_2.c" +#include "./libtommath/bn_mp_div_2d.c" +#include "./libtommath/bn_mp_div_3.c" +#include "./libtommath/bn_mp_div_d.c" +#include "./libtommath/bn_mp_dr_is_modulus.c" +#include "./libtommath/bn_mp_dr_reduce.c" +#include "./libtommath/bn_mp_dr_setup.c" +#include "./libtommath/bn_mp_exch.c" +#include "./libtommath/bn_mp_expt_d.c" +#include "./libtommath/bn_mp_exptmod.c" +#include "./libtommath/bn_mp_exptmod_fast.c" +#include "./libtommath/bn_mp_exteuclid.c" +#include "./libtommath/bn_mp_fread.c" +#include "./libtommath/bn_mp_fwrite.c" +#include "./libtommath/bn_mp_gcd.c" +#include "./libtommath/bn_mp_get_int.c" +#include "./libtommath/bn_mp_grow.c" +#include "./libtommath/bn_mp_init.c" +#include "./libtommath/bn_mp_init_copy.c" +#include "./libtommath/bn_mp_init_multi.c" +#include "./libtommath/bn_mp_init_set.c" +#include "./libtommath/bn_mp_init_set_int.c" +#include "./libtommath/bn_mp_init_size.c" +#include "./libtommath/bn_mp_invmod.c" +#include "./libtommath/bn_mp_invmod_slow.c" +#include "./libtommath/bn_mp_is_square.c" +#include "./libtommath/bn_mp_jacobi.c" +#include "./libtommath/bn_mp_karatsuba_mul.c" +#include "./libtommath/bn_mp_karatsuba_sqr.c" +#include "./libtommath/bn_mp_lcm.c" +#include "./libtommath/bn_mp_lshd.c" +#include "./libtommath/bn_mp_mod.c" +#include "./libtommath/bn_mp_mod_2d.c" +#include "./libtommath/bn_mp_mod_d.c" +#include "./libtommath/bn_mp_montgomery_calc_normalization.c" +#include "./libtommath/bn_mp_montgomery_reduce.c" +#include "./libtommath/bn_mp_montgomery_setup.c" +#include "./libtommath/bn_mp_mul.c" +#include "./libtommath/bn_mp_mul_2.c" +#include "./libtommath/bn_mp_mul_2d.c" +#include "./libtommath/bn_mp_mul_d.c" +#include "./libtommath/bn_mp_mulmod.c" +#include "./libtommath/bn_mp_n_root.c" +#include "./libtommath/bn_mp_neg.c" +#include "./libtommath/bn_mp_or.c" +#include "./libtommath/bn_mp_prime_fermat.c" +#include "./libtommath/bn_mp_prime_is_divisible.c" +#include "./libtommath/bn_mp_prime_is_prime.c" +#include "./libtommath/bn_mp_prime_miller_rabin.c" +#include "./libtommath/bn_mp_prime_next_prime.c" +#include "./libtommath/bn_mp_prime_rabin_miller_trials.c" +#include "./libtommath/bn_mp_prime_random_ex.c" +#include "./libtommath/bn_mp_radix_size.c" +#include "./libtommath/bn_mp_radix_smap.c" +#include "./libtommath/bn_mp_rand.c" +#include "./libtommath/bn_mp_read_radix.c" +#include "./libtommath/bn_mp_read_signed_bin.c" +#include "./libtommath/bn_mp_read_unsigned_bin.c" +#include "./libtommath/bn_mp_reduce.c" +#include "./libtommath/bn_mp_reduce_2k.c" +#include "./libtommath/bn_mp_reduce_2k_l.c" +#include "./libtommath/bn_mp_reduce_2k_setup.c" +#include "./libtommath/bn_mp_reduce_2k_setup_l.c" +#include "./libtommath/bn_mp_reduce_is_2k.c" +#include "./libtommath/bn_mp_reduce_is_2k_l.c" +#include "./libtommath/bn_mp_reduce_setup.c" +#include "./libtommath/bn_mp_rshd.c" +#include "./libtommath/bn_mp_set.c" +#include "./libtommath/bn_mp_set_int.c" +#include "./libtommath/bn_mp_shrink.c" +#include "./libtommath/bn_mp_signed_bin_size.c" +#include "./libtommath/bn_mp_sqr.c" +#include "./libtommath/bn_mp_sqrmod.c" +#include "./libtommath/bn_mp_sqrt.c" +#include "./libtommath/bn_mp_sub.c" +#include "./libtommath/bn_mp_sub_d.c" +#include "./libtommath/bn_mp_submod.c" +#include "./libtommath/bn_mp_to_signed_bin.c" +#include "./libtommath/bn_mp_to_signed_bin_n.c" +#include "./libtommath/bn_mp_to_unsigned_bin.c" +#include "./libtommath/bn_mp_to_unsigned_bin_n.c" +#include "./libtommath/bn_mp_toom_mul.c" +#include "./libtommath/bn_mp_toom_sqr.c" +#include "./libtommath/bn_mp_toradix.c" +#include "./libtommath/bn_mp_toradix_n.c" +#include "./libtommath/bn_mp_unsigned_bin_size.c" +#include "./libtommath/bn_mp_xor.c" +#include "./libtommath/bn_mp_zero.c" +#include "./libtommath/bn_prime_tab.c" +#include "./libtommath/bn_reverse.c" +#include "./libtommath/bn_s_mp_add.c" +#include "./libtommath/bn_s_mp_exptmod.c" +#include "./libtommath/bn_s_mp_mul_digs.c" +#include "./libtommath/bn_s_mp_mul_high_digs.c" +#include "./libtommath/bn_s_mp_sqr.c" +#include "./libtommath/bn_s_mp_sub.c" +#include "./libtommath/bncore.c" diff --git a/src/LibTomMathDesc.c b/src/LibTomMathDesc.c index 574cdfb..f05b8b8 100644 --- a/src/LibTomMathDesc.c +++ b/src/LibTomMathDesc.c @@ -1,4 +1,4 @@ // This is a source file for WDK build of StormLib // It is copied to the root folder during the build process -#include ".\libtomcrypt\src\math\ltm_desc.c" +#include "./libtomcrypt/src/math/ltm_desc.c" -- cgit v1.2.3 From ba43f1356c7910cc71eae7415e576ed8f26491fa Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 2 Feb 2023 08:58:35 +0100 Subject: Linux build errors --- test/StormTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/StormTest.cpp b/test/StormTest.cpp index ca409f1..5bdb47b 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -4209,7 +4209,7 @@ int _tmain(int argc, TCHAR * argv[]) break; } } -#endif TEST_STREAM_OPERATIONS +#endif // TEST_STREAM_OPERATIONS #ifdef TEST_MASTER_MIRROR // Test master-mirror reading operations if(dwErrCode == ERROR_SUCCESS) -- cgit v1.2.3 From d0bbc57516e04d68456f3766844f8cef23127d05 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 2 Feb 2023 09:00:07 +0100 Subject: Linux build errors --- test/StormTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 5bdb47b..6ff91c3 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -2242,7 +2242,7 @@ static DWORD TestArchive_LoadFiles(TLogHelper * pLogger, HANDLE hMpq, DWORD bIgn if(SFileHasFile(hMpq, szFileName)) { dwErrCode = LoadMpqFile(*pLogger, hMpq, szFileName, 0, dwSearchFlags, &pFileData); - if(dwErrCode != ERROR_SUCCESS && bIgnoreOpenErrors == FALSE) + if(dwErrCode != ERROR_SUCCESS && bIgnoreOpenErrors == 0) { pLogger->PrintError("Error loading the file %s", szFileName); break; @@ -2760,7 +2760,7 @@ static DWORD TestOpenArchive_SignatureTest(LPCTSTR szPlainName, LPCTSTR szOrigin return dwErrCode; } -static DWORD TestOpenArchive_CompactArchive(LPCTSTR szPlainName, LPCTSTR szCopyName, BOOL bAddUserData) +static DWORD TestOpenArchive_CompactArchive(LPCTSTR szPlainName, LPCTSTR szCopyName, DWORD bAddUserData) { TLogHelper Logger("CompactMpqTest", szPlainName); ULONGLONG PreMpqDataSize = (bAddUserData) ? 0x400 : 0; -- cgit v1.2.3 From 4fb49e6aa0a017768c58a2261a8da8dd59639557 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 2 Feb 2023 09:03:11 +0100 Subject: Linux build errors --- test/StormTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/StormTest.cpp b/test/StormTest.cpp index 6ff91c3..e8a52dc 100644 --- a/test/StormTest.cpp +++ b/test/StormTest.cpp @@ -36,6 +36,8 @@ //------------------------------------------------------------------------------ // Local structures +#define ID_XHSC 0x58485343 // 'XHSC' + // Artificial error code for situations where we don't know the result #define ERROR_UNDETERMINED_RESULT 0xC000FFFF @@ -230,8 +232,8 @@ static const wchar_t szUnicodeName6[] = { // Arabic static SFILE_MARKERS MpqMarkers[] = { - {sizeof(SFILE_MARKERS), ID_MPQ, "(hash table)", "(block table)"}, - {sizeof(SFILE_MARKERS), 'XHSC', "(cash table)", "(clock table)"} + {sizeof(SFILE_MARKERS), ID_MPQ, "(hash table)", "(block table)"}, + {sizeof(SFILE_MARKERS), ID_XHSC, "(cash table)", "(clock table)"} }; //----------------------------------------------------------------------------- -- cgit v1.2.3 From bd8100dd50dc276a8093cada4cb53d4cf721014c Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 2 Feb 2023 09:07:20 +0100 Subject: Linux build errors --- test/TLogHelper.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/TLogHelper.cpp b/test/TLogHelper.cpp index 0570c65..84dc0aa 100644 --- a/test/TLogHelper.cpp +++ b/test/TLogHelper.cpp @@ -108,6 +108,7 @@ void TestStrCopy(wchar_t * szTarget, size_t cchTarget, const char * szSource, si } } +#ifdef STORMLIB_WINDOWS wchar_t * CopyFormatCharacter(wchar_t * szBuffer, const wchar_t *& szFormat) { static const wchar_t * szStringFormat = _T("%s"); @@ -136,6 +137,7 @@ wchar_t * CopyFormatCharacter(wchar_t * szBuffer, const wchar_t *& szFormat) *szBuffer++ = *szFormat++; return szBuffer; } +#endif // STORMLIB_WINDOWS char * CopyFormatCharacter(char * szBuffer, const char *& szFormat) { -- cgit v1.2.3 From 68348b8842795b2b5c7fa85871f85882711d6d20 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 2 Feb 2023 09:09:55 +0100 Subject: Linux build errors --- src/LibTomCrypt.c | 154 ++++++++++++++++----------------- src/LibTomMath.c | 236 +++++++++++++++++++++++++-------------------------- src/LibTomMathDesc.c | 2 +- 3 files changed, 196 insertions(+), 196 deletions(-) diff --git a/src/LibTomCrypt.c b/src/LibTomCrypt.c index 792e1ec..012f5e0 100644 --- a/src/LibTomCrypt.c +++ b/src/LibTomCrypt.c @@ -5,80 +5,80 @@ #pragma warning(disable:4242) // der_decode_ia5_string.c(84) : warning C4242: '=' : conversion from 'int' to 'unsigned char', possible loss of data -#include "./libtomcrypt/src/hashes/hash_memory.c" -#include "./libtomcrypt/src/hashes/md5.c" -#include "./libtomcrypt/src/hashes/sha1.c" -#include "./libtomcrypt/src/math/multi.c" -#include "./libtomcrypt/src/math/rand_prime.c" -#include "./libtomcrypt/src/misc/base64_decode.c" -#include "./libtomcrypt/src/misc/crypt_argchk.c" -#include "./libtomcrypt/src/misc/crypt_find_hash.c" -#include "./libtomcrypt/src/misc/crypt_find_prng.c" -#include "./libtomcrypt/src/misc/crypt_hash_descriptor.c" -#include "./libtomcrypt/src/misc/crypt_hash_is_valid.c" -#include "./libtomcrypt/src/misc/crypt_libc.c" -#include "./libtomcrypt/src/misc/crypt_ltc_mp_descriptor.c" -#include "./libtomcrypt/src/misc/crypt_prng_descriptor.c" -#include "./libtomcrypt/src/misc/crypt_prng_is_valid.c" -#include "./libtomcrypt/src/misc/crypt_register_hash.c" -#include "./libtomcrypt/src/misc/crypt_register_prng.c" -#include "./libtomcrypt/src/misc/zeromem.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_bit_string.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_boolean.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_choice.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_ia5_string.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_integer.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_object_identifier.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_octet_string.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_printable_string.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_sequence_ex.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_sequence_flexi.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_sequence_multi.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_short_integer.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_utctime.c" -#include "./libtomcrypt/src/pk/asn1/der_decode_utf8_string.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_bit_string.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_boolean.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_ia5_string.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_integer.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_object_identifier.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_octet_string.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_printable_string.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_sequence_ex.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_sequence_multi.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_set.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_setof.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_short_integer.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_utctime.c" -#include "./libtomcrypt/src/pk/asn1/der_encode_utf8_string.c" -#include "./libtomcrypt/src/pk/asn1/der_length_bit_string.c" -#include "./libtomcrypt/src/pk/asn1/der_length_boolean.c" -#include "./libtomcrypt/src/pk/asn1/der_length_ia5_string.c" -#include "./libtomcrypt/src/pk/asn1/der_length_integer.c" -#include "./libtomcrypt/src/pk/asn1/der_length_object_identifier.c" -#include "./libtomcrypt/src/pk/asn1/der_length_octet_string.c" -#include "./libtomcrypt/src/pk/asn1/der_length_printable_string.c" -#include "./libtomcrypt/src/pk/asn1/der_length_sequence.c" -#include "./libtomcrypt/src/pk/asn1/der_length_short_integer.c" -#include "./libtomcrypt/src/pk/asn1/der_length_utctime.c" -#include "./libtomcrypt/src/pk/asn1/der_length_utf8_string.c" -#include "./libtomcrypt/src/pk/asn1/der_sequence_free.c" -#include "./libtomcrypt/src/pk/ecc/ltc_ecc_map.c" -#include "./libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c" -#include "./libtomcrypt/src/pk/ecc/ltc_ecc_mulmod.c" -#include "./libtomcrypt/src/pk/ecc/ltc_ecc_points.c" -#include "./libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c" -#include "./libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c" -#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_mgf1.c" -#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_oaep_decode.c" -#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_pss_decode.c" -#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_pss_encode.c" -#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_decode.c" -#include "./libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_encode.c" -#include "./libtomcrypt/src/pk/rsa/rsa_exptmod.c" -#include "./libtomcrypt/src/pk/rsa/rsa_free.c" -#include "./libtomcrypt/src/pk/rsa/rsa_import.c" -#include "./libtomcrypt/src/pk/rsa/rsa_make_key.c" -#include "./libtomcrypt/src/pk/rsa/rsa_sign_hash.c" -#include "./libtomcrypt/src/pk/rsa/rsa_verify_hash.c" -#include "./libtomcrypt/src/pk/rsa/rsa_verify_simple.c" +#include "libtomcrypt/src/hashes/hash_memory.c" +#include "libtomcrypt/src/hashes/md5.c" +#include "libtomcrypt/src/hashes/sha1.c" +#include "libtomcrypt/src/math/multi.c" +#include "libtomcrypt/src/math/rand_prime.c" +#include "libtomcrypt/src/misc/base64_decode.c" +#include "libtomcrypt/src/misc/crypt_argchk.c" +#include "libtomcrypt/src/misc/crypt_find_hash.c" +#include "libtomcrypt/src/misc/crypt_find_prng.c" +#include "libtomcrypt/src/misc/crypt_hash_descriptor.c" +#include "libtomcrypt/src/misc/crypt_hash_is_valid.c" +#include "libtomcrypt/src/misc/crypt_libc.c" +#include "libtomcrypt/src/misc/crypt_ltc_mp_descriptor.c" +#include "libtomcrypt/src/misc/crypt_prng_descriptor.c" +#include "libtomcrypt/src/misc/crypt_prng_is_valid.c" +#include "libtomcrypt/src/misc/crypt_register_hash.c" +#include "libtomcrypt/src/misc/crypt_register_prng.c" +#include "libtomcrypt/src/misc/zeromem.c" +#include "libtomcrypt/src/pk/asn1/der_decode_bit_string.c" +#include "libtomcrypt/src/pk/asn1/der_decode_boolean.c" +#include "libtomcrypt/src/pk/asn1/der_decode_choice.c" +#include "libtomcrypt/src/pk/asn1/der_decode_ia5_string.c" +#include "libtomcrypt/src/pk/asn1/der_decode_integer.c" +#include "libtomcrypt/src/pk/asn1/der_decode_object_identifier.c" +#include "libtomcrypt/src/pk/asn1/der_decode_octet_string.c" +#include "libtomcrypt/src/pk/asn1/der_decode_printable_string.c" +#include "libtomcrypt/src/pk/asn1/der_decode_sequence_ex.c" +#include "libtomcrypt/src/pk/asn1/der_decode_sequence_flexi.c" +#include "libtomcrypt/src/pk/asn1/der_decode_sequence_multi.c" +#include "libtomcrypt/src/pk/asn1/der_decode_short_integer.c" +#include "libtomcrypt/src/pk/asn1/der_decode_utctime.c" +#include "libtomcrypt/src/pk/asn1/der_decode_utf8_string.c" +#include "libtomcrypt/src/pk/asn1/der_encode_bit_string.c" +#include "libtomcrypt/src/pk/asn1/der_encode_boolean.c" +#include "libtomcrypt/src/pk/asn1/der_encode_ia5_string.c" +#include "libtomcrypt/src/pk/asn1/der_encode_integer.c" +#include "libtomcrypt/src/pk/asn1/der_encode_object_identifier.c" +#include "libtomcrypt/src/pk/asn1/der_encode_octet_string.c" +#include "libtomcrypt/src/pk/asn1/der_encode_printable_string.c" +#include "libtomcrypt/src/pk/asn1/der_encode_sequence_ex.c" +#include "libtomcrypt/src/pk/asn1/der_encode_sequence_multi.c" +#include "libtomcrypt/src/pk/asn1/der_encode_set.c" +#include "libtomcrypt/src/pk/asn1/der_encode_setof.c" +#include "libtomcrypt/src/pk/asn1/der_encode_short_integer.c" +#include "libtomcrypt/src/pk/asn1/der_encode_utctime.c" +#include "libtomcrypt/src/pk/asn1/der_encode_utf8_string.c" +#include "libtomcrypt/src/pk/asn1/der_length_bit_string.c" +#include "libtomcrypt/src/pk/asn1/der_length_boolean.c" +#include "libtomcrypt/src/pk/asn1/der_length_ia5_string.c" +#include "libtomcrypt/src/pk/asn1/der_length_integer.c" +#include "libtomcrypt/src/pk/asn1/der_length_object_identifier.c" +#include "libtomcrypt/src/pk/asn1/der_length_octet_string.c" +#include "libtomcrypt/src/pk/asn1/der_length_printable_string.c" +#include "libtomcrypt/src/pk/asn1/der_length_sequence.c" +#include "libtomcrypt/src/pk/asn1/der_length_short_integer.c" +#include "libtomcrypt/src/pk/asn1/der_length_utctime.c" +#include "libtomcrypt/src/pk/asn1/der_length_utf8_string.c" +#include "libtomcrypt/src/pk/asn1/der_sequence_free.c" +#include "libtomcrypt/src/pk/ecc/ltc_ecc_map.c" +#include "libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c" +#include "libtomcrypt/src/pk/ecc/ltc_ecc_mulmod.c" +#include "libtomcrypt/src/pk/ecc/ltc_ecc_points.c" +#include "libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c" +#include "libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c" +#include "libtomcrypt/src/pk/pkcs1/pkcs_1_mgf1.c" +#include "libtomcrypt/src/pk/pkcs1/pkcs_1_oaep_decode.c" +#include "libtomcrypt/src/pk/pkcs1/pkcs_1_pss_decode.c" +#include "libtomcrypt/src/pk/pkcs1/pkcs_1_pss_encode.c" +#include "libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_decode.c" +#include "libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_encode.c" +#include "libtomcrypt/src/pk/rsa/rsa_exptmod.c" +#include "libtomcrypt/src/pk/rsa/rsa_free.c" +#include "libtomcrypt/src/pk/rsa/rsa_import.c" +#include "libtomcrypt/src/pk/rsa/rsa_make_key.c" +#include "libtomcrypt/src/pk/rsa/rsa_sign_hash.c" +#include "libtomcrypt/src/pk/rsa/rsa_verify_hash.c" +#include "libtomcrypt/src/pk/rsa/rsa_verify_simple.c" diff --git a/src/LibTomMath.c b/src/LibTomMath.c index 36454f0..5f6639f 100644 --- a/src/LibTomMath.c +++ b/src/LibTomMath.c @@ -5,121 +5,121 @@ #pragma warning(disable:4334) // warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) -#include "./libtommath/bn_fast_mp_invmod.c" -#include "./libtommath/bn_fast_mp_montgomery_reduce.c" -#include "./libtommath/bn_fast_s_mp_mul_digs.c" -#include "./libtommath/bn_fast_s_mp_mul_high_digs.c" -#include "./libtommath/bn_fast_s_mp_sqr.c" -#include "./libtommath/bn_mp_2expt.c" -#include "./libtommath/bn_mp_abs.c" -#include "./libtommath/bn_mp_add.c" -#include "./libtommath/bn_mp_add_d.c" -#include "./libtommath/bn_mp_addmod.c" -#include "./libtommath/bn_mp_and.c" -#include "./libtommath/bn_mp_clamp.c" -#include "./libtommath/bn_mp_clear.c" -#include "./libtommath/bn_mp_clear_multi.c" -#include "./libtommath/bn_mp_cmp.c" -#include "./libtommath/bn_mp_cmp_d.c" -#include "./libtommath/bn_mp_cmp_mag.c" -#include "./libtommath/bn_mp_cnt_lsb.c" -#include "./libtommath/bn_mp_copy.c" -#include "./libtommath/bn_mp_count_bits.c" -#include "./libtommath/bn_mp_div.c" -#include "./libtommath/bn_mp_div_2.c" -#include "./libtommath/bn_mp_div_2d.c" -#include "./libtommath/bn_mp_div_3.c" -#include "./libtommath/bn_mp_div_d.c" -#include "./libtommath/bn_mp_dr_is_modulus.c" -#include "./libtommath/bn_mp_dr_reduce.c" -#include "./libtommath/bn_mp_dr_setup.c" -#include "./libtommath/bn_mp_exch.c" -#include "./libtommath/bn_mp_expt_d.c" -#include "./libtommath/bn_mp_exptmod.c" -#include "./libtommath/bn_mp_exptmod_fast.c" -#include "./libtommath/bn_mp_exteuclid.c" -#include "./libtommath/bn_mp_fread.c" -#include "./libtommath/bn_mp_fwrite.c" -#include "./libtommath/bn_mp_gcd.c" -#include "./libtommath/bn_mp_get_int.c" -#include "./libtommath/bn_mp_grow.c" -#include "./libtommath/bn_mp_init.c" -#include "./libtommath/bn_mp_init_copy.c" -#include "./libtommath/bn_mp_init_multi.c" -#include "./libtommath/bn_mp_init_set.c" -#include "./libtommath/bn_mp_init_set_int.c" -#include "./libtommath/bn_mp_init_size.c" -#include "./libtommath/bn_mp_invmod.c" -#include "./libtommath/bn_mp_invmod_slow.c" -#include "./libtommath/bn_mp_is_square.c" -#include "./libtommath/bn_mp_jacobi.c" -#include "./libtommath/bn_mp_karatsuba_mul.c" -#include "./libtommath/bn_mp_karatsuba_sqr.c" -#include "./libtommath/bn_mp_lcm.c" -#include "./libtommath/bn_mp_lshd.c" -#include "./libtommath/bn_mp_mod.c" -#include "./libtommath/bn_mp_mod_2d.c" -#include "./libtommath/bn_mp_mod_d.c" -#include "./libtommath/bn_mp_montgomery_calc_normalization.c" -#include "./libtommath/bn_mp_montgomery_reduce.c" -#include "./libtommath/bn_mp_montgomery_setup.c" -#include "./libtommath/bn_mp_mul.c" -#include "./libtommath/bn_mp_mul_2.c" -#include "./libtommath/bn_mp_mul_2d.c" -#include "./libtommath/bn_mp_mul_d.c" -#include "./libtommath/bn_mp_mulmod.c" -#include "./libtommath/bn_mp_n_root.c" -#include "./libtommath/bn_mp_neg.c" -#include "./libtommath/bn_mp_or.c" -#include "./libtommath/bn_mp_prime_fermat.c" -#include "./libtommath/bn_mp_prime_is_divisible.c" -#include "./libtommath/bn_mp_prime_is_prime.c" -#include "./libtommath/bn_mp_prime_miller_rabin.c" -#include "./libtommath/bn_mp_prime_next_prime.c" -#include "./libtommath/bn_mp_prime_rabin_miller_trials.c" -#include "./libtommath/bn_mp_prime_random_ex.c" -#include "./libtommath/bn_mp_radix_size.c" -#include "./libtommath/bn_mp_radix_smap.c" -#include "./libtommath/bn_mp_rand.c" -#include "./libtommath/bn_mp_read_radix.c" -#include "./libtommath/bn_mp_read_signed_bin.c" -#include "./libtommath/bn_mp_read_unsigned_bin.c" -#include "./libtommath/bn_mp_reduce.c" -#include "./libtommath/bn_mp_reduce_2k.c" -#include "./libtommath/bn_mp_reduce_2k_l.c" -#include "./libtommath/bn_mp_reduce_2k_setup.c" -#include "./libtommath/bn_mp_reduce_2k_setup_l.c" -#include "./libtommath/bn_mp_reduce_is_2k.c" -#include "./libtommath/bn_mp_reduce_is_2k_l.c" -#include "./libtommath/bn_mp_reduce_setup.c" -#include "./libtommath/bn_mp_rshd.c" -#include "./libtommath/bn_mp_set.c" -#include "./libtommath/bn_mp_set_int.c" -#include "./libtommath/bn_mp_shrink.c" -#include "./libtommath/bn_mp_signed_bin_size.c" -#include "./libtommath/bn_mp_sqr.c" -#include "./libtommath/bn_mp_sqrmod.c" -#include "./libtommath/bn_mp_sqrt.c" -#include "./libtommath/bn_mp_sub.c" -#include "./libtommath/bn_mp_sub_d.c" -#include "./libtommath/bn_mp_submod.c" -#include "./libtommath/bn_mp_to_signed_bin.c" -#include "./libtommath/bn_mp_to_signed_bin_n.c" -#include "./libtommath/bn_mp_to_unsigned_bin.c" -#include "./libtommath/bn_mp_to_unsigned_bin_n.c" -#include "./libtommath/bn_mp_toom_mul.c" -#include "./libtommath/bn_mp_toom_sqr.c" -#include "./libtommath/bn_mp_toradix.c" -#include "./libtommath/bn_mp_toradix_n.c" -#include "./libtommath/bn_mp_unsigned_bin_size.c" -#include "./libtommath/bn_mp_xor.c" -#include "./libtommath/bn_mp_zero.c" -#include "./libtommath/bn_prime_tab.c" -#include "./libtommath/bn_reverse.c" -#include "./libtommath/bn_s_mp_add.c" -#include "./libtommath/bn_s_mp_exptmod.c" -#include "./libtommath/bn_s_mp_mul_digs.c" -#include "./libtommath/bn_s_mp_mul_high_digs.c" -#include "./libtommath/bn_s_mp_sqr.c" -#include "./libtommath/bn_s_mp_sub.c" -#include "./libtommath/bncore.c" +#include "libtommath/bn_fast_mp_invmod.c" +#include "libtommath/bn_fast_mp_montgomery_reduce.c" +#include "libtommath/bn_fast_s_mp_mul_digs.c" +#include "libtommath/bn_fast_s_mp_mul_high_digs.c" +#include "libtommath/bn_fast_s_mp_sqr.c" +#include "libtommath/bn_mp_2expt.c" +#include "libtommath/bn_mp_abs.c" +#include "libtommath/bn_mp_add.c" +#include "libtommath/bn_mp_add_d.c" +#include "libtommath/bn_mp_addmod.c" +#include "libtommath/bn_mp_and.c" +#include "libtommath/bn_mp_clamp.c" +#include "libtommath/bn_mp_clear.c" +#include "libtommath/bn_mp_clear_multi.c" +#include "libtommath/bn_mp_cmp.c" +#include "libtommath/bn_mp_cmp_d.c" +#include "libtommath/bn_mp_cmp_mag.c" +#include "libtommath/bn_mp_cnt_lsb.c" +#include "libtommath/bn_mp_copy.c" +#include "libtommath/bn_mp_count_bits.c" +#include "libtommath/bn_mp_div.c" +#include "libtommath/bn_mp_div_2.c" +#include "libtommath/bn_mp_div_2d.c" +#include "libtommath/bn_mp_div_3.c" +#include "libtommath/bn_mp_div_d.c" +#include "libtommath/bn_mp_dr_is_modulus.c" +#include "libtommath/bn_mp_dr_reduce.c" +#include "libtommath/bn_mp_dr_setup.c" +#include "libtommath/bn_mp_exch.c" +#include "libtommath/bn_mp_expt_d.c" +#include "libtommath/bn_mp_exptmod.c" +#include "libtommath/bn_mp_exptmod_fast.c" +#include "libtommath/bn_mp_exteuclid.c" +#include "libtommath/bn_mp_fread.c" +#include "libtommath/bn_mp_fwrite.c" +#include "libtommath/bn_mp_gcd.c" +#include "libtommath/bn_mp_get_int.c" +#include "libtommath/bn_mp_grow.c" +#include "libtommath/bn_mp_init.c" +#include "libtommath/bn_mp_init_copy.c" +#include "libtommath/bn_mp_init_multi.c" +#include "libtommath/bn_mp_init_set.c" +#include "libtommath/bn_mp_init_set_int.c" +#include "libtommath/bn_mp_init_size.c" +#include "libtommath/bn_mp_invmod.c" +#include "libtommath/bn_mp_invmod_slow.c" +#include "libtommath/bn_mp_is_square.c" +#include "libtommath/bn_mp_jacobi.c" +#include "libtommath/bn_mp_karatsuba_mul.c" +#include "libtommath/bn_mp_karatsuba_sqr.c" +#include "libtommath/bn_mp_lcm.c" +#include "libtommath/bn_mp_lshd.c" +#include "libtommath/bn_mp_mod.c" +#include "libtommath/bn_mp_mod_2d.c" +#include "libtommath/bn_mp_mod_d.c" +#include "libtommath/bn_mp_montgomery_calc_normalization.c" +#include "libtommath/bn_mp_montgomery_reduce.c" +#include "libtommath/bn_mp_montgomery_setup.c" +#include "libtommath/bn_mp_mul.c" +#include "libtommath/bn_mp_mul_2.c" +#include "libtommath/bn_mp_mul_2d.c" +#include "libtommath/bn_mp_mul_d.c" +#include "libtommath/bn_mp_mulmod.c" +#include "libtommath/bn_mp_n_root.c" +#include "libtommath/bn_mp_neg.c" +#include "libtommath/bn_mp_or.c" +#include "libtommath/bn_mp_prime_fermat.c" +#include "libtommath/bn_mp_prime_is_divisible.c" +#include "libtommath/bn_mp_prime_is_prime.c" +#include "libtommath/bn_mp_prime_miller_rabin.c" +#include "libtommath/bn_mp_prime_next_prime.c" +#include "libtommath/bn_mp_prime_rabin_miller_trials.c" +#include "libtommath/bn_mp_prime_random_ex.c" +#include "libtommath/bn_mp_radix_size.c" +#include "libtommath/bn_mp_radix_smap.c" +#include "libtommath/bn_mp_rand.c" +#include "libtommath/bn_mp_read_radix.c" +#include "libtommath/bn_mp_read_signed_bin.c" +#include "libtommath/bn_mp_read_unsigned_bin.c" +#include "libtommath/bn_mp_reduce.c" +#include "libtommath/bn_mp_reduce_2k.c" +#include "libtommath/bn_mp_reduce_2k_l.c" +#include "libtommath/bn_mp_reduce_2k_setup.c" +#include "libtommath/bn_mp_reduce_2k_setup_l.c" +#include "libtommath/bn_mp_reduce_is_2k.c" +#include "libtommath/bn_mp_reduce_is_2k_l.c" +#include "libtommath/bn_mp_reduce_setup.c" +#include "libtommath/bn_mp_rshd.c" +#include "libtommath/bn_mp_set.c" +#include "libtommath/bn_mp_set_int.c" +#include "libtommath/bn_mp_shrink.c" +#include "libtommath/bn_mp_signed_bin_size.c" +#include "libtommath/bn_mp_sqr.c" +#include "libtommath/bn_mp_sqrmod.c" +#include "libtommath/bn_mp_sqrt.c" +#include "libtommath/bn_mp_sub.c" +#include "libtommath/bn_mp_sub_d.c" +#include "libtommath/bn_mp_submod.c" +#include "libtommath/bn_mp_to_signed_bin.c" +#include "libtommath/bn_mp_to_signed_bin_n.c" +#include "libtommath/bn_mp_to_unsigned_bin.c" +#include "libtommath/bn_mp_to_unsigned_bin_n.c" +#include "libtommath/bn_mp_toom_mul.c" +#include "libtommath/bn_mp_toom_sqr.c" +#include "libtommath/bn_mp_toradix.c" +#include "libtommath/bn_mp_toradix_n.c" +#include "libtommath/bn_mp_unsigned_bin_size.c" +#include "libtommath/bn_mp_xor.c" +#include "libtommath/bn_mp_zero.c" +#include "libtommath/bn_prime_tab.c" +#include "libtommath/bn_reverse.c" +#include "libtommath/bn_s_mp_add.c" +#include "libtommath/bn_s_mp_exptmod.c" +#include "libtommath/bn_s_mp_mul_digs.c" +#include "libtommath/bn_s_mp_mul_high_digs.c" +#include "libtommath/bn_s_mp_sqr.c" +#include "libtommath/bn_s_mp_sub.c" +#include "libtommath/bncore.c" diff --git a/src/LibTomMathDesc.c b/src/LibTomMathDesc.c index f05b8b8..0d2fb3a 100644 --- a/src/LibTomMathDesc.c +++ b/src/LibTomMathDesc.c @@ -1,4 +1,4 @@ // This is a source file for WDK build of StormLib // It is copied to the root folder during the build process -#include "./libtomcrypt/src/math/ltm_desc.c" +#include "libtomcrypt/src/math/ltm_desc.c" -- cgit v1.2.3 From 42b4a8f73d24ec0e73b1d886da11b4f4634b6ab6 Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 2 Feb 2023 09:14:23 +0100 Subject: Linux build errors --- CMakeLists.txt | 197 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 194 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 009df62..c480d40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,12 +61,203 @@ if(MSVC) endif() set(TOMCRYPT_FILES - src/LibTomCrypt.c + src/libtomcrypt/src/hashes/hash_memory.c + src/libtomcrypt/src/hashes/md5.c + src/libtomcrypt/src/hashes/sha1.c + src/libtomcrypt/src/math/ltm_desc.c + src/libtomcrypt/src/math/multi.c + src/libtomcrypt/src/math/rand_prime.c + src/libtomcrypt/src/misc/base64_decode.c + src/libtomcrypt/src/misc/crypt_argchk.c + src/libtomcrypt/src/misc/crypt_find_hash.c + src/libtomcrypt/src/misc/crypt_find_prng.c + src/libtomcrypt/src/misc/crypt_hash_descriptor.c + src/libtomcrypt/src/misc/crypt_hash_is_valid.c + src/libtomcrypt/src/misc/crypt_ltc_mp_descriptor.c + src/libtomcrypt/src/misc/crypt_prng_descriptor.c + src/libtomcrypt/src/misc/crypt_prng_is_valid.c + src/libtomcrypt/src/misc/crypt_register_hash.c + src/libtomcrypt/src/misc/crypt_register_prng.c + src/libtomcrypt/src/misc/zeromem.c + src/libtomcrypt/src/pk/asn1/der_decode_bit_string.c + src/libtomcrypt/src/pk/asn1/der_decode_boolean.c + src/libtomcrypt/src/pk/asn1/der_decode_choice.c + src/libtomcrypt/src/pk/asn1/der_decode_ia5_string.c + src/libtomcrypt/src/pk/asn1/der_decode_integer.c + src/libtomcrypt/src/pk/asn1/der_decode_object_identifier.c + src/libtomcrypt/src/pk/asn1/der_decode_octet_string.c + src/libtomcrypt/src/pk/asn1/der_decode_printable_string.c + src/libtomcrypt/src/pk/asn1/der_decode_sequence_ex.c + src/libtomcrypt/src/pk/asn1/der_decode_sequence_flexi.c + src/libtomcrypt/src/pk/asn1/der_decode_sequence_multi.c + src/libtomcrypt/src/pk/asn1/der_decode_short_integer.c + src/libtomcrypt/src/pk/asn1/der_decode_utctime.c + src/libtomcrypt/src/pk/asn1/der_decode_utf8_string.c + src/libtomcrypt/src/pk/asn1/der_encode_bit_string.c + src/libtomcrypt/src/pk/asn1/der_encode_boolean.c + src/libtomcrypt/src/pk/asn1/der_encode_ia5_string.c + src/libtomcrypt/src/pk/asn1/der_encode_integer.c + src/libtomcrypt/src/pk/asn1/der_encode_object_identifier.c + src/libtomcrypt/src/pk/asn1/der_encode_octet_string.c + src/libtomcrypt/src/pk/asn1/der_encode_printable_string.c + src/libtomcrypt/src/pk/asn1/der_encode_sequence_ex.c + src/libtomcrypt/src/pk/asn1/der_encode_sequence_multi.c + src/libtomcrypt/src/pk/asn1/der_encode_set.c + src/libtomcrypt/src/pk/asn1/der_encode_setof.c + src/libtomcrypt/src/pk/asn1/der_encode_short_integer.c + src/libtomcrypt/src/pk/asn1/der_encode_utctime.c + src/libtomcrypt/src/pk/asn1/der_encode_utf8_string.c + src/libtomcrypt/src/pk/asn1/der_length_bit_string.c + src/libtomcrypt/src/pk/asn1/der_length_boolean.c + src/libtomcrypt/src/pk/asn1/der_length_ia5_string.c + src/libtomcrypt/src/pk/asn1/der_length_integer.c + src/libtomcrypt/src/pk/asn1/der_length_object_identifier.c + src/libtomcrypt/src/pk/asn1/der_length_octet_string.c + src/libtomcrypt/src/pk/asn1/der_length_printable_string.c + src/libtomcrypt/src/pk/asn1/der_length_sequence.c + src/libtomcrypt/src/pk/asn1/der_length_utctime.c + src/libtomcrypt/src/pk/asn1/der_sequence_free.c + src/libtomcrypt/src/pk/asn1/der_length_utf8_string.c + src/libtomcrypt/src/pk/asn1/der_length_short_integer.c + src/libtomcrypt/src/pk/ecc/ltc_ecc_map.c + src/libtomcrypt/src/pk/ecc/ltc_ecc_mul2add.c + src/libtomcrypt/src/pk/ecc/ltc_ecc_mulmod.c + src/libtomcrypt/src/pk/ecc/ltc_ecc_points.c + src/libtomcrypt/src/pk/ecc/ltc_ecc_projective_add_point.c + src/libtomcrypt/src/pk/ecc/ltc_ecc_projective_dbl_point.c + src/libtomcrypt/src/pk/pkcs1/pkcs_1_mgf1.c + src/libtomcrypt/src/pk/pkcs1/pkcs_1_oaep_decode.c + src/libtomcrypt/src/pk/pkcs1/pkcs_1_pss_decode.c + src/libtomcrypt/src/pk/pkcs1/pkcs_1_pss_encode.c + src/libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_decode.c + src/libtomcrypt/src/pk/pkcs1/pkcs_1_v1_5_encode.c + src/libtomcrypt/src/pk/rsa/rsa_exptmod.c + src/libtomcrypt/src/pk/rsa/rsa_free.c + src/libtomcrypt/src/pk/rsa/rsa_import.c + src/libtomcrypt/src/pk/rsa/rsa_make_key.c + src/libtomcrypt/src/pk/rsa/rsa_sign_hash.c + src/libtomcrypt/src/pk/rsa/rsa_verify_hash.c ) set(TOMMATH_FILES - src/LibTomMath.c - src/LibTomMathDesc.c + src/libtommath/bncore.c + src/libtommath/bn_fast_mp_invmod.c + src/libtommath/bn_fast_mp_montgomery_reduce.c + src/libtommath/bn_fast_s_mp_mul_digs.c + src/libtommath/bn_fast_s_mp_mul_high_digs.c + src/libtommath/bn_fast_s_mp_sqr.c + src/libtommath/bn_mp_2expt.c + src/libtommath/bn_mp_abs.c + src/libtommath/bn_mp_add.c + src/libtommath/bn_mp_addmod.c + src/libtommath/bn_mp_add_d.c + src/libtommath/bn_mp_and.c + src/libtommath/bn_mp_clamp.c + src/libtommath/bn_mp_clear.c + src/libtommath/bn_mp_clear_multi.c + src/libtommath/bn_mp_cmp.c + src/libtommath/bn_mp_cmp_d.c + src/libtommath/bn_mp_cmp_mag.c + src/libtommath/bn_mp_cnt_lsb.c + src/libtommath/bn_mp_copy.c + src/libtommath/bn_mp_count_bits.c + src/libtommath/bn_mp_div.c + src/libtommath/bn_mp_div_2.c + src/libtommath/bn_mp_div_2d.c + src/libtommath/bn_mp_div_3.c + src/libtommath/bn_mp_div_d.c + src/libtommath/bn_mp_dr_is_modulus.c + src/libtommath/bn_mp_dr_reduce.c + src/libtommath/bn_mp_dr_setup.c + src/libtommath/bn_mp_exch.c + src/libtommath/bn_mp_exptmod.c + src/libtommath/bn_mp_exptmod_fast.c + src/libtommath/bn_mp_expt_d.c + src/libtommath/bn_mp_exteuclid.c + src/libtommath/bn_mp_fread.c + src/libtommath/bn_mp_fwrite.c + src/libtommath/bn_mp_gcd.c + src/libtommath/bn_mp_get_int.c + src/libtommath/bn_mp_grow.c + src/libtommath/bn_mp_init.c + src/libtommath/bn_mp_init_copy.c + src/libtommath/bn_mp_init_multi.c + src/libtommath/bn_mp_init_set.c + src/libtommath/bn_mp_init_set_int.c + src/libtommath/bn_mp_init_size.c + src/libtommath/bn_mp_invmod.c + src/libtommath/bn_mp_invmod_slow.c + src/libtommath/bn_mp_is_square.c + src/libtommath/bn_mp_jacobi.c + src/libtommath/bn_mp_karatsuba_mul.c + src/libtommath/bn_mp_karatsuba_sqr.c + src/libtommath/bn_mp_lcm.c + src/libtommath/bn_mp_lshd.c + src/libtommath/bn_mp_mod.c + src/libtommath/bn_mp_mod_2d.c + src/libtommath/bn_mp_mod_d.c + src/libtommath/bn_mp_montgomery_calc_normalization.c + src/libtommath/bn_mp_montgomery_reduce.c + src/libtommath/bn_mp_montgomery_setup.c + src/libtommath/bn_mp_mul.c + src/libtommath/bn_mp_mulmod.c + src/libtommath/bn_mp_mul_2.c + src/libtommath/bn_mp_mul_2d.c + src/libtommath/bn_mp_mul_d.c + src/libtommath/bn_mp_neg.c + src/libtommath/bn_mp_n_root.c + src/libtommath/bn_mp_or.c + src/libtommath/bn_mp_prime_fermat.c + src/libtommath/bn_mp_prime_is_divisible.c + src/libtommath/bn_mp_prime_is_prime.c + src/libtommath/bn_mp_prime_miller_rabin.c + src/libtommath/bn_mp_prime_next_prime.c + src/libtommath/bn_mp_prime_rabin_miller_trials.c + src/libtommath/bn_mp_prime_random_ex.c + src/libtommath/bn_mp_radix_size.c + src/libtommath/bn_mp_radix_smap.c + src/libtommath/bn_mp_rand.c + src/libtommath/bn_mp_read_radix.c + src/libtommath/bn_mp_read_signed_bin.c + src/libtommath/bn_mp_read_unsigned_bin.c + src/libtommath/bn_mp_reduce.c + src/libtommath/bn_mp_reduce_2k.c + src/libtommath/bn_mp_reduce_2k_l.c + src/libtommath/bn_mp_reduce_2k_setup.c + src/libtommath/bn_mp_reduce_2k_setup_l.c + src/libtommath/bn_mp_reduce_is_2k.c + src/libtommath/bn_mp_reduce_is_2k_l.c + src/libtommath/bn_mp_reduce_setup.c + src/libtommath/bn_mp_rshd.c + src/libtommath/bn_mp_set.c + src/libtommath/bn_mp_set_int.c + src/libtommath/bn_mp_shrink.c + src/libtommath/bn_mp_signed_bin_size.c + src/libtommath/bn_mp_sqr.c + src/libtommath/bn_mp_sqrmod.c + src/libtommath/bn_mp_sqrt.c + src/libtommath/bn_mp_sub.c + src/libtommath/bn_mp_submod.c + src/libtommath/bn_mp_sub_d.c + src/libtommath/bn_mp_toom_mul.c + src/libtommath/bn_mp_toom_sqr.c + src/libtommath/bn_mp_toradix.c + src/libtommath/bn_mp_toradix_n.c + src/libtommath/bn_mp_to_signed_bin.c + src/libtommath/bn_mp_to_signed_bin_n.c + src/libtommath/bn_mp_to_unsigned_bin.c + src/libtommath/bn_mp_to_unsigned_bin_n.c + src/libtommath/bn_mp_unsigned_bin_size.c + src/libtommath/bn_mp_xor.c + src/libtommath/bn_mp_zero.c + src/libtommath/bn_prime_tab.c + src/libtommath/bn_reverse.c + src/libtommath/bn_s_mp_add.c + src/libtommath/bn_s_mp_exptmod.c + src/libtommath/bn_s_mp_mul_digs.c + src/libtommath/bn_s_mp_mul_high_digs.c + src/libtommath/bn_s_mp_sqr.c + src/libtommath/bn_s_mp_sub.c ) set(BZIP2_FILES -- cgit v1.2.3