Commit Graph

1116 Commits

Author SHA1 Message Date
Steffen Jaeckel
c397cac4a1 fix unescaped _
[skip ci]
2019-06-30 11:38:14 +02:00
nijtmans
8503e7861f Doc fixes: Using %lu/%ld formatter for int32_t is not portable across platforms. 2019-06-30 11:33:02 +02:00
Steffen Jaeckel
df8c7087e7
Merge pull request #324 from libtom/test-simplify-no-unsigned
Simplify test-cases, by using mp_set_l
2019-06-30 11:32:02 +02:00
nijtmans
ea3353b673 Simplify test-cases, by using mp_set_l. Also fix use of types in 2 other files 2019-06-13 15:44:00 +02:00
Steffen Jaeckel
e009d400a1
Merge pull request #316 from libtom/more-msvc-warning-free
Attempt to eliminate more MSVC compiler warnings
2019-06-12 08:22:55 +02:00
nijtmans
8b7c7a36bf Now all 32-bit warnings should be gone 2019-06-12 08:17:07 +02:00
nijtmans
610ff6d26d Make errors as failures, and (hopefully) fix last 32-bit warning 2019-06-12 08:17:07 +02:00
nijtmans
5127596021 Attempt to eliminate more MSVC compiler warnings 2019-06-12 08:17:07 +02:00
Steffen Jaeckel
f562d658cd
Merge pull request #313 from libtom/remove-bn_conversion
#311 with macros
2019-06-12 08:14:36 +02:00
Steffen Jaeckel
d1013c7726
fix generate_def() 2019-06-07 10:24:21 +02:00
Daniel Mendler
f5b2106a63
helper.pl: don't use sed, support CC variable for preprocessing 2019-06-07 08:28:32 +02:00
Daniel Mendler
8cf4363992
MP_SET_SIGNED: add utype parameter 2019-06-07 08:28:32 +02:00
Daniel Mendler
3ef6efd32a
sort tommath_class.h dependencies: this makes it easier to see changes 2019-06-07 08:28:32 +02:00
Daniel Mendler
7eb6f32186
helper.pl - do not use heredocs for single lines 2019-06-07 08:28:32 +02:00
Daniel Mendler
e856b51b5c
remove version_from_tomcrypt 2019-06-07 08:28:32 +02:00
Daniel Mendler
5302b907ff
use MP_SIZEOF_BITS 2019-06-07 08:28:32 +02:00
Steffen Jaeckel
0d06d67ef7
generate tommath_class from pre-processed code 2019-06-07 08:28:32 +02:00
Steffen Jaeckel
30e8fbbc8e
Update makefiles etc 2019-06-07 08:28:32 +02:00
Steffen Jaeckel
a36374578f
change macros to contain types 2019-06-07 08:28:05 +02:00
Steffen Jaeckel
6c39b07bc2
split up again into separate files 2019-06-07 08:28:05 +02:00
Steffen Jaeckel
f1097727f4
Merge pull request #315 from libtom/perl-generate-def
remove generate_def.sh, move code to helper.pl
2019-06-07 08:27:48 +02:00
Daniel Mendler
8a1ae868ab
tommath.def should be 644 2019-06-07 08:27:09 +02:00
Daniel Mendler
f00cc99f8c
replace generate_def.sh with perl function 2019-06-07 08:27:09 +02:00
Steffen Jaeckel
e24af22875
Merge pull request #314 from libtom/msvc-warning-free
MSVC compile:  higher warning-level -Wall, but warning-free
2019-06-07 08:22:33 +02:00
nijtmans
196d88309b A little stricter on 32-bit compiles 2019-06-06 17:00:18 +02:00
nijtmans
dfbb5ecd56 MSVC compile: higher warning-level -Wall, but warning-free 2019-06-06 16:22:54 +02:00
Steffen Jaeckel
380d03bedc
Merge pull request #300 from libtom/interop-mingw-w64-3
Better interoperability between MSVC and mingw-w64, 3
2019-06-06 11:15:41 +02:00
Steffen Jaeckel
28dc77ae0a update tommath.def always when updating the makefiles 2019-06-06 10:36:33 +02:00
nijtmans
a911999db9 Better interoperability between MSVC and mingw-w64, 3 2019-06-06 10:30:00 +02:00
Steffen Jaeckel
6c29fac702
Merge pull request #312 from libtom/msvc-warning-C4028
Fix MSVC warning
2019-06-05 21:27:20 +02:00
nijtmans
ab309de02f Fix MSVC warning: bn_mp_rand.c(9): warning C4028: formal parameter 1 different from declaration 2019-06-05 14:50:12 +02:00
Steffen Jaeckel
d12e1781ba
Merge pull request #308 from libtom/fix-alt-compilers
Fix alt compilers
2019-06-05 10:40:18 +02:00
H.Merijn Brand - Tux
f5b6cd079e Fix building on HP-UX 11.11 / PA-RISC
$ perl -v
This is perl 5, version 28, subversion 2 (v5.28.2) built for PA-RISC2.0-thread-multi-LP64

$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for CryptX
Writing MYMETA.yml and MYMETA.json

$ make
:
:
gcc64 -Iltm -Iltc/headers -DLTC_SOURCE -DLTC_NO_TEST -DLTC_NO_PROTOTYPES -DLTM_DESC -D_POSIX_C_SOURCE=199506L -D_REENTRANT -mpa-risc-2-0 -fPIC -D_HPUX_SOURCE -fwrapv -fno-strict-aliasing -pipe -I/usr/local/pa20_64/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -fPIC -g -O -DARGTYPE=4 -c ltc/math/ltm_desc.c -o ltc/math/ltm_desc.o
In file included from ltc/math/ltm_desc.c:15:0:
ltm/tommath.h:74:1: error: unable to emulate 'TI'
make[1]: *** [ltc/math/ltm_desc.o] Error 1
make[1]: Leaving directory `/data/cpan-build/CryptX-0.063-0/src'
make: *** [src/liballinone.a] Error 2

$ gcc64 --version
gcc64 (GCC) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ perl -V:cppsymbols
cppsymbols='_FILE_OFFSET_BITS=64 _HPUX_SOURCE=1 _LARGEFILE_SOURCE=1 _LFS64_LARGEFILE=1 _LFS_LARGEFILE=1 _LP64=1 _PA_RISC2_0=1 _POSIX_C_SOURCE=199506L _PROTOTYPES= _REENTRANT=1 _XOPEN_SOURCE_EXTENDED=1 _XPG4= _XPG4_EXTENDED= __BYTE_ORDER__=4321 __ELF__=1 __GNUC_MINOR__=6 __GNUC__=4 __LP64__=1 __PIC__=2 __STDC_EXT__=1 __STDC__=1 __hp9000s700=1 __hp9000s700__=1 __hp9000s800=1 __hp9000s800__=1 __hppa=1 __hppa__=1 __hpux=1 __hpux__=1 __pic__=2 __unix=1 __unix__=1';
2019-06-05 09:40:33 +02:00
Steffen Jaeckel
0ebc4f9268 fix MP_DEPRECATED for non-gcc, -clang or -msvc 2019-06-05 09:40:10 +02:00
Steffen Jaeckel
7c2211c87b
Merge pull request #303 from libtom/refactor_mp_div_d
Eliminate unneeded static function
2019-06-03 11:35:24 +02:00
nijtmans
f2d6f52bb9 Eliminate unneeded static function: Since b==0 and b==1 are already checked for earlier, it can be simplified and inlined. 2019-06-03 11:00:09 +02:00
Steffen Jaeckel
34f2ddbc91
Merge pull request #306 from fperrad/20190524_lint
some linting
2019-06-03 10:55:40 +02:00
Francois Perrad
3e15a3ff46 literal suffix 2019-05-31 10:53:30 +02:00
Francois Perrad
b3a4341ad7 explicit operator precedence 2019-05-31 10:53:18 +02:00
Steffen Jaeckel
2b41c95502
Merge pull request #292 from fperrad/20190523_lint
some linting
2019-05-31 10:14:03 +02:00
Francois Perrad
25ff85d2bf move cast inside macro 2019-05-29 08:16:46 +02:00
Francois Perrad
b9de7c09b1 cast 2019-05-29 08:16:46 +02:00
Francois Perrad
e7f34c6969 literal suffix 2019-05-29 08:16:46 +02:00
Steffen Jaeckel
431ea331d7 fix most of the makefiles
[skip ci]
2019-05-28 14:23:38 +02:00
Steffen Jaeckel
b055595bd8
Merge pull request #299 from libtom/fix-appveyor
let's try to fix appveyor.yml
2019-05-28 09:00:59 +02:00
Steffen Jaeckel
7878db6800 use correct version and only build specific branches 2019-05-28 08:28:32 +02:00
Steffen Jaeckel
8dfb04f5db let's try the multi-line cmd again 2019-05-28 08:27:06 +02:00
Steffen Jaeckel
fd26938935
Merge pull request #294 from libtom/deprecate-ex-funs
deprecate mp_n_root_ex and mp_expt_d_ex
2019-05-27 16:53:55 +02:00
Daniel Mendler
c7314fa400
deprecate mp_n_root_ex and mp_expt_d_ex
These functions were introduced to give some timing guarantees.
However the guarantees are too weak to be useful.
The functions seem to be unused essentially by downstream users.
2019-05-27 15:59:40 +02:00
Steffen Jaeckel
c58c7f6ddd
Merge pull request #293 from libtom/simplify-scripts
Simplify scripts
2019-05-27 15:59:23 +02:00