Commit Graph

1118 Commits

Author SHA1 Message Date
Steffen Jaeckel
4d6a9682e5 fix 'coverage' & add 'check' make-target 2019-10-19 16:02:23 +02:00
Steffen Jaeckel
e66be11c36
Merge pull request #366 from czurnieden/radix_size_with_log
Use of mp_ilogb in mp_radix_size
2019-10-19 16:02:12 +02:00
czurnieden
80f5818e0f
Addition of BN_MP_LOG_U32 to tommath_superclass.h 2019-10-19 15:35:04 +02:00
czurnieden
de606c034f
adaption of mp_radeix_size to new mp_log_u32 2019-10-19 15:35:04 +02:00
czurnieden
d4f6b43fa8
use of mp_ilogb in mp_radix_size 2019-10-19 15:35:04 +02:00
Steffen Jaeckel
0a3fa328c7
Merge pull request #379 from libtom/private-symbols
enable MP_PRIVATE (visibility=hidden)
2019-10-19 15:34:13 +02:00
nijtmans
3eaa268e21
Adapt mingw-build of libtommath.dll to respect internal symbols too 2019-10-19 15:01:33 +02:00
Daniel Mendler
42ebcbfee4
enable MP_PRIVATE (visibility=hidden) 2019-10-19 15:00:47 +02:00
Steffen Jaeckel
b07141387a
Merge pull request #378 from libtom/remove-deprecated
Remove deprecated functions
2019-10-19 12:24:01 +02:00
nijtmans
700a79ea66 remove deprecated functions from tommath.def too 2019-10-18 09:28:11 +02:00
Daniel Mendler
20dcc923f6
rename internal constant radix arrays 2019-10-17 17:07:02 +02:00
Daniel Mendler
55acc6ab5b
update docs 2019-10-17 16:56:30 +02:00
Daniel Mendler
b4099e1ed2
remove empty bn_deprecated.c file 2019-10-17 16:56:30 +02:00
Daniel Mendler
45a3bf7694
remove deprecated functions 2019-10-17 16:56:27 +02:00
Daniel Mendler
fce429d08b
tommath.h: do not expose limits.h 2019-10-16 14:42:21 +02:00
Steffen Jaeckel
7e1c622956
Merge pull request #377 from libtom/use-enums
tommath.h: use enums
2019-10-16 14:27:46 +02:00
Daniel Mendler
554310847a
tommath.h: use enums 2019-10-16 09:32:37 +02:00
Steffen Jaeckel
f8f240a7ba
Merge pull request #375 from libtom/fix-62
fix s_mp_montgomery_reduce_fast
2019-10-15 20:47:33 +02:00
Steffen Jaeckel
65237bc2bb fix s_mp_montgomery_reduce_fast
as proposed by @dmitry-lipetsk

This fixes #62
2019-10-15 20:47:09 +02:00
Steffen Jaeckel
69a7ca78aa
Merge pull request #376 from fperrad/20191015_lint
some linting
2019-10-15 19:20:34 +02:00
Francois Perrad
fd7a0a3abb explicit condition 2019-10-15 18:33:21 +02:00
Francois Perrad
fd5c835c99 explicit operator precedence 2019-10-15 18:33:19 +02:00
Francois Perrad
28ea368cc5 add missing include 2019-10-15 18:33:16 +02:00
Steffen Jaeckel
8b5fc198a7
Merge pull request #372 from libtom/rename-and-fixups
Rename and fixups
2019-10-15 14:48:10 +02:00
Daniel Mendler
cb1b2dc879
mp_log_u32: return uint32_t 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
4bbe2cde9c
fix build of demos 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
8825ab6064
improve clean make-target 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
c9d41fba73
rename mp_ilogb() to mp_log_u32() 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
1cc02f2d88
fix build of timing.c 2019-10-15 14:47:43 +02:00
Steffen Jaeckel
8365614f59
Merge pull request #373 from libtom/missing-symbols
add back missing symbols
2019-10-15 14:46:40 +02:00
Steffen Jaeckel
2fefcaa010 copy implementation of mp_to_unsigned_bin_n() to mp_to_signed_bin_n() 2019-10-15 14:21:30 +02:00
Daniel Mendler
049e2e85e2
add back missing symbols 2019-10-15 14:02:44 +02:00
Steffen Jaeckel
4a373ffa64
Merge pull request #367 from czurnieden/ilogb_shortcuts
ilog: added shortcuts for bases that are powers of two
2019-10-15 10:32:53 +02:00
czurnieden
f0a9d3c355 added shortcuts for bases that are powers of two 2019-10-15 10:31:40 +02:00
Steffen Jaeckel
9bf8ce0322
Merge pull request #364 from czurnieden/miller_rabin_rounds_update
Update to list of number of Miller-Rabin trials
2019-10-15 10:28:05 +02:00
czurnieden
3dd542f2fe Changed macro 'LTM_USE_FIPS_ONLY' to 'LTM_USE_ONLY_MR' 2019-10-14 23:05:56 +02:00
czurnieden
cf08afa498 Update to list of number of Miller-Rabin trials 2019-10-14 20:50:48 +02:00
Steffen Jaeckel
7ed752222a
Merge pull request #365 from fperrad/20191010_lint
some linting
2019-10-14 14:18:37 +02:00
Francois Perrad
5a4e81c1ea literal suffix 2019-10-10 20:33:01 +02:00
Francois Perrad
e3eb13e4b6 use same parameter name as in the prototype 2019-10-10 20:32:57 +02:00
Francois Perrad
b19750633c use literal char 2019-10-10 20:32:53 +02:00
Steffen Jaeckel
67c099ee8c
Merge pull request #361 from libtom/pack_unpack_buf
add mp_pack/unpack and MP_BUF error
2019-10-10 18:44:00 +02:00
Daniel Mendler
b4f7d8d4c8
test: use malloc/free
tests are library consumers, MP_MALLOC is an internal macro
2019-10-09 20:46:44 +02:00
Daniel Mendler
fe2f91a1b8
to_sbin/to_ubin/pack: don't write anything in case of buffer overflow 2019-10-09 20:46:41 +02:00
Daniel Mendler
6e3dae5625
add MP_BUF error 2019-10-08 22:30:29 +02:00
czurnieden
b6813a4122
replace mp_export/import by mp_pack/unpack 2019-10-08 22:30:25 +02:00
Steffen Jaeckel
c5b901b917
Merge pull request #360 from fperrad/20191007_lint
some linting
2019-10-07 20:20:09 +02:00
Francois Perrad
b2d29b4334 explicit operator precedence 2019-10-07 19:23:38 +02:00
Steffen Jaeckel
ce98f3675d
Merge pull request #348 from czurnieden/to_radix_returns_length_converted
make mp_to_radix return the count of characters of the converted number
2019-10-07 16:09:37 +02:00
czurnieden
71d1b7b9d8 make mp_to_radix return the count of characters of the converted number 2019-10-06 21:26:49 +02:00