diff options
author | Ladislav Zezula <ladislav.zezula@avast.com> | 2023-02-02 08:40:07 +0100 |
---|---|---|
committer | Ladislav Zezula <ladislav.zezula@avast.com> | 2023-02-02 08:40:07 +0100 |
commit | 499af55179261b7da6fb01f6947bb1d29bb02074 (patch) | |
tree | 6526ce4d24e554ae97b12c7a38cb5b4c2e88a007 /src | |
parent | 999ee276cfd7420abaf7566932b591677aff184f (diff) |
Progress
Diffstat (limited to 'src')
-rw-r--r-- | src/LibTomCrypt.c | 84 | ||||
-rw-r--r-- | src/LibTomMath.c | 125 | ||||
-rw-r--r-- | src/LibTomMathDesc.c | 4 | ||||
-rw-r--r-- | src/wdk/sources-wdk-tommath.c | 1 |
4 files changed, 213 insertions, 1 deletions
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" - |