From fe6cc64884b2b408b607389f46266d44fd942a79 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 28 Feb 2018 15:40:21 +0100 Subject: [PATCH] Initial commit --- .idea/inspectionProfiles/Project_Default.xml | 6 + .../inspectionProfiles/profiles_settings.xml | 7 + .idea/libtommath.iml | 2 + .idea/misc.xml | 27 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 1061 ++++ CMakeLists.txt | 167 + bn_error.c | 3 +- bn_fast_mp_invmod.c | 3 +- bn_fast_mp_montgomery_reduce.c | 2 +- bn_fast_s_mp_mul_digs.c | 3 +- bn_fast_s_mp_mul_high_digs.c | 3 +- bn_fast_s_mp_sqr.c | 3 +- bn_mp_2expt.c | 3 +- bn_mp_abs.c | 2 +- bn_mp_add.c | 3 +- bn_mp_add_d.c | 2 +- bn_mp_addmod.c | 2 +- bn_mp_and.c | 2 +- bn_mp_clamp.c | 2 +- bn_mp_clear.c | 2 +- bn_mp_clear_multi.c | 2 +- bn_mp_cmp.c | 2 +- bn_mp_cmp_d.c | 2 +- bn_mp_cmp_mag.c | 2 +- bn_mp_cnt_lsb.c | 2 +- bn_mp_copy.c | 2 +- bn_mp_count_bits.c | 2 +- bn_mp_div.c | 2 +- bn_mp_div_2.c | 2 +- bn_mp_div_2d.c | 2 +- bn_mp_div_3.c | 2 +- bn_mp_div_d.c | 2 +- bn_mp_dr_is_modulus.c | 2 +- bn_mp_dr_reduce.c | 2 +- bn_mp_dr_setup.c | 2 +- bn_mp_exch.c | 2 +- bn_mp_export.c | 2 +- bn_mp_expt_d.c | 2 +- bn_mp_expt_d_ex.c | 2 +- bn_mp_exptmod.c | 11 +- bn_mp_exptmod_fast.c | 10 +- bn_mp_exteuclid.c | 2 +- bn_mp_fread.c | 2 +- bn_mp_fwrite.c | 2 +- bn_mp_gcd.c | 2 +- bn_mp_get_int.c | 2 +- bn_mp_get_long.c | 2 +- bn_mp_get_long_long.c | 2 +- bn_mp_grow.c | 2 +- bn_mp_import.c | 2 +- bn_mp_init.c | 3 +- bn_mp_init_copy.c | 3 +- bn_mp_init_multi.c | 2 +- bn_mp_init_set.c | 2 +- bn_mp_init_set_int.c | 2 +- bn_mp_init_size.c | 2 +- bn_mp_invmod.c | 5 +- bn_mp_invmod_slow.c | 2 +- bn_mp_is_square.c | 2 +- bn_mp_jacobi.c | 2 +- bn_mp_karatsuba_mul.c | 2 +- bn_mp_karatsuba_sqr.c | 2 +- bn_mp_lcm.c | 2 +- bn_mp_lshd.c | 2 +- bn_mp_mod.c | 2 +- bn_mp_mod_2d.c | 2 +- bn_mp_mod_d.c | 2 +- bn_mp_montgomery_calc_normalization.c | 2 +- bn_mp_montgomery_reduce.c | 2 +- bn_mp_montgomery_setup.c | 2 +- bn_mp_mul.c | 7 +- bn_mp_mul_2.c | 2 +- bn_mp_mul_2d.c | 2 +- bn_mp_mul_d.c | 2 +- bn_mp_mulmod.c | 2 +- bn_mp_n_root.c | 2 +- bn_mp_n_root_ex.c | 2 +- bn_mp_neg.c | 2 +- bn_mp_or.c | 2 +- bn_mp_prime_fermat.c | 2 +- bn_mp_prime_is_divisible.c | 2 +- bn_mp_prime_is_prime.c | 2 +- bn_mp_prime_miller_rabin.c | 2 +- bn_mp_prime_next_prime.c | 2 +- bn_mp_prime_rabin_miller_trials.c | 2 +- bn_mp_prime_random_ex.c | 2 +- bn_mp_radix_size.c | 2 +- bn_mp_radix_smap.c | 2 +- bn_mp_rand.c | 2 +- bn_mp_read_radix.c | 2 +- bn_mp_read_signed_bin.c | 2 +- bn_mp_read_unsigned_bin.c | 2 +- bn_mp_reduce.c | 2 +- bn_mp_reduce_2k.c | 2 +- bn_mp_reduce_2k_l.c | 2 +- bn_mp_reduce_2k_setup.c | 2 +- bn_mp_reduce_2k_setup_l.c | 2 +- bn_mp_reduce_is_2k.c | 2 +- bn_mp_reduce_is_2k_l.c | 2 +- bn_mp_reduce_setup.c | 2 +- bn_mp_rshd.c | 2 +- bn_mp_set.c | 2 +- bn_mp_set_int.c | 2 +- bn_mp_set_long.c | 2 +- bn_mp_set_long_long.c | 2 +- bn_mp_shrink.c | 2 +- bn_mp_signed_bin_size.c | 2 +- bn_mp_sqr.c | 7 +- bn_mp_sqrmod.c | 2 +- bn_mp_sqrt.c | 2 +- bn_mp_sqrtmod_prime.c | 2 +- bn_mp_sub.c | 2 +- bn_mp_sub_d.c | 2 +- bn_mp_submod.c | 2 +- bn_mp_to_signed_bin.c | 2 +- bn_mp_to_signed_bin_n.c | 2 +- bn_mp_to_unsigned_bin.c | 2 +- bn_mp_to_unsigned_bin_n.c | 2 +- bn_mp_toom_mul.c | 2 +- bn_mp_toom_sqr.c | 2 +- bn_mp_toradix.c | 2 +- bn_mp_toradix_n.c | 2 +- bn_mp_unsigned_bin_size.c | 2 +- bn_mp_xor.c | 2 +- bn_mp_zero.c | 2 +- bn_prime_tab.c | 2 +- bn_reverse.c | 2 +- bn_s_mp_add.c | 2 +- bn_s_mp_exptmod.c | 2 +- bn_s_mp_mul_digs.c | 2 +- bn_s_mp_mul_high_digs.c | 2 +- bn_s_mp_sqr.c | 2 +- bn_s_mp_sub.c | 2 +- bncore.c | 2 +- cmake-build-debug/CMakeCache.txt | 340 ++ .../CMakeFiles/3.8.2/CMakeCCompiler.cmake | 68 + .../CMakeFiles/3.8.2/CMakeCXXCompiler.cmake | 70 + .../3.8.2/CMakeDetermineCompilerABI_C.bin | Bin 0 -> 8640 bytes .../3.8.2/CMakeDetermineCompilerABI_CXX.bin | Bin 0 -> 8656 bytes .../CMakeFiles/3.8.2/CMakeSystem.cmake | 15 + .../3.8.2/CompilerIdC/CMakeCCompilerId.c | 567 +++ .../CompilerIdCXX/CMakeCXXCompilerId.cpp | 539 ++ .../CMakeDirectoryInformation.cmake | 16 + cmake-build-debug/CMakeFiles/Makefile.cmake | 49 + cmake-build-debug/CMakeFiles/Makefile2 | 145 + .../CMakeFiles/TargetDirectories.txt | 8 + .../CMakeFiles/clion-environment.txt | 2 + cmake-build-debug/CMakeFiles/clion-log.txt | 4 + .../CMakeFiles/cmake.check_cache | 1 + .../CMakeFiles/feature_tests.bin | Bin 0 -> 12696 bytes cmake-build-debug/CMakeFiles/feature_tests.c | 34 + .../CMakeFiles/feature_tests.cxx | 405 ++ cmake-build-debug/CMakeFiles/progress.marks | 1 + .../CMakeFiles/tommath.dir/C.includecache | 550 ++ .../CMakeFiles/tommath.dir/DependInfo.cmake | 154 + .../CMakeFiles/tommath.dir/build.make | 3542 +++++++++++++ .../CMakeFiles/tommath.dir/cmake_clean.cmake | 137 + .../CMakeFiles/tommath.dir/depend.internal | 771 +++ .../CMakeFiles/tommath.dir/depend.make | 771 +++ .../CMakeFiles/tommath.dir/flags.make | 10 + .../CMakeFiles/tommath.dir/link.txt | 1 + .../CMakeFiles/tommath.dir/progress.make | 130 + .../tommathShared.dir/C.includecache | 550 ++ .../tommathShared.dir/DependInfo.cmake | 154 + .../CMakeFiles/tommathShared.dir/build.make | 3542 +++++++++++++ .../tommathShared.dir/cmake_clean.cmake | 137 + .../tommathShared.dir/depend.internal | 771 +++ .../CMakeFiles/tommathShared.dir/depend.make | 771 +++ .../CMakeFiles/tommathShared.dir/flags.make | 10 + .../CMakeFiles/tommathShared.dir/link.txt | 1 + .../tommathShared.dir/progress.make | 130 + .../tommathStatic.dir/C.includecache | 550 ++ .../tommathStatic.dir/DependInfo.cmake | 154 + .../CMakeFiles/tommathStatic.dir/build.make | 3543 +++++++++++++ .../tommathStatic.dir/cmake_clean.cmake | 137 + .../cmake_clean_target.cmake | 3 + .../tommathStatic.dir/depend.internal | 771 +++ .../CMakeFiles/tommathStatic.dir/depend.make | 771 +++ .../CMakeFiles/tommathStatic.dir/flags.make | 10 + .../CMakeFiles/tommathStatic.dir/link.txt | 2 + .../tommathStatic.dir/progress.make | 130 + cmake-build-debug/Makefile | 4436 +++++++++++++++++ cmake-build-debug/cmake_install.cmake | 69 + cmake-build-debug/libtommath.cbp | 721 +++ cmake-build-debug/libtommath.so | Bin 0 -> 219320 bytes cmake-build-debug/libtommathShared.so | Bin 0 -> 219320 bytes makefile | 2 +- makefile.shared | 3 +- makefile_include.mk | 6 +- pre_gen/mpi.c | 2 +- tommath.h | 1 + tommath_class.h | 1 + 194 files changed, 27152 insertions(+), 135 deletions(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/libtommath.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 CMakeLists.txt create mode 100644 cmake-build-debug/CMakeCache.txt create mode 100644 cmake-build-debug/CMakeFiles/3.8.2/CMakeCCompiler.cmake create mode 100644 cmake-build-debug/CMakeFiles/3.8.2/CMakeCXXCompiler.cmake create mode 100755 cmake-build-debug/CMakeFiles/3.8.2/CMakeDetermineCompilerABI_C.bin create mode 100755 cmake-build-debug/CMakeFiles/3.8.2/CMakeDetermineCompilerABI_CXX.bin create mode 100644 cmake-build-debug/CMakeFiles/3.8.2/CMakeSystem.cmake create mode 100644 cmake-build-debug/CMakeFiles/3.8.2/CompilerIdC/CMakeCCompilerId.c create mode 100644 cmake-build-debug/CMakeFiles/3.8.2/CompilerIdCXX/CMakeCXXCompilerId.cpp create mode 100644 cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake create mode 100644 cmake-build-debug/CMakeFiles/Makefile.cmake create mode 100644 cmake-build-debug/CMakeFiles/Makefile2 create mode 100644 cmake-build-debug/CMakeFiles/TargetDirectories.txt create mode 100644 cmake-build-debug/CMakeFiles/clion-environment.txt create mode 100644 cmake-build-debug/CMakeFiles/clion-log.txt create mode 100644 cmake-build-debug/CMakeFiles/cmake.check_cache create mode 100755 cmake-build-debug/CMakeFiles/feature_tests.bin create mode 100644 cmake-build-debug/CMakeFiles/feature_tests.c create mode 100644 cmake-build-debug/CMakeFiles/feature_tests.cxx create mode 100644 cmake-build-debug/CMakeFiles/progress.marks create mode 100644 cmake-build-debug/CMakeFiles/tommath.dir/C.includecache create mode 100644 cmake-build-debug/CMakeFiles/tommath.dir/DependInfo.cmake create mode 100644 cmake-build-debug/CMakeFiles/tommath.dir/build.make create mode 100644 cmake-build-debug/CMakeFiles/tommath.dir/cmake_clean.cmake create mode 100644 cmake-build-debug/CMakeFiles/tommath.dir/depend.internal create mode 100644 cmake-build-debug/CMakeFiles/tommath.dir/depend.make create mode 100644 cmake-build-debug/CMakeFiles/tommath.dir/flags.make create mode 100644 cmake-build-debug/CMakeFiles/tommath.dir/link.txt create mode 100644 cmake-build-debug/CMakeFiles/tommath.dir/progress.make create mode 100644 cmake-build-debug/CMakeFiles/tommathShared.dir/C.includecache create mode 100644 cmake-build-debug/CMakeFiles/tommathShared.dir/DependInfo.cmake create mode 100644 cmake-build-debug/CMakeFiles/tommathShared.dir/build.make create mode 100644 cmake-build-debug/CMakeFiles/tommathShared.dir/cmake_clean.cmake create mode 100644 cmake-build-debug/CMakeFiles/tommathShared.dir/depend.internal create mode 100644 cmake-build-debug/CMakeFiles/tommathShared.dir/depend.make create mode 100644 cmake-build-debug/CMakeFiles/tommathShared.dir/flags.make create mode 100644 cmake-build-debug/CMakeFiles/tommathShared.dir/link.txt create mode 100644 cmake-build-debug/CMakeFiles/tommathShared.dir/progress.make create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/C.includecache create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/DependInfo.cmake create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/build.make create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/cmake_clean.cmake create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/cmake_clean_target.cmake create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/depend.internal create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/depend.make create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/flags.make create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/link.txt create mode 100644 cmake-build-debug/CMakeFiles/tommathStatic.dir/progress.make create mode 100644 cmake-build-debug/Makefile create mode 100644 cmake-build-debug/cmake_install.cmake create mode 100644 cmake-build-debug/libtommath.cbp create mode 100755 cmake-build-debug/libtommath.so create mode 100755 cmake-build-debug/libtommathShared.so diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..578add8 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..3b31283 --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/.idea/libtommath.iml b/.idea/libtommath.iml new file mode 100644 index 0000000..f08604b --- /dev/null +++ b/.idea/libtommath.iml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..93cf616 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + CSS + + + General + + + Invalid elementsCSS + + + XPath + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..309cde0 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..73480f7 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,1061 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + + +