Francois Perrad
8b2daf7817
always use varname err with mp_err
2019-05-20 05:36:18 +02:00
Daniel Mendler
885e5e19b4
move mp_rand_digit to bn_deprecated.c
2019-05-18 10:03:46 +02:00
Daniel Mendler
4534056c28
use enums mp_err, mp_ord, mp_bool, mp_sign
...
* MP_USE_ENUMS enables enums
* Wc++-compat catches some implicit conversions if MP_USE_ENUMS is defined
* 100% backwards compatible API/ABI if MP_USE_ENUMS is not defined
2019-05-13 19:15:14 +02:00
Francois Perrad
3c5afa9115
add missing parameter name in prototype
2019-05-13 17:52:56 +02:00
Daniel Mendler
2a2e2716c2
move jenkins prng to bn_s_mp_rand_jenkins.c
2019-05-12 23:45:36 +02:00
Daniel Mendler
c8cc3657e7
mov s_mp_rand_source_platform to separate file
2019-05-12 23:45:36 +02:00
Francois Perrad
67756d7b48
explicit operator precedence
2019-05-11 16:57:04 +02:00
Francois Perrad
493c3c23f8
use same paramater name as in prototype
2019-05-11 16:57:04 +02:00
Francois Perrad
cc703a849b
add missing parameter name in prototype
2019-05-11 16:57:04 +02:00
Daniel Mendler
0669e92e78
deprecate mp_prime_random_ex in favor of mp_prime_rand
...
We can use the internal mp_rand generator now, since it generates
numbers which are safe for crypto purposes.
2019-05-11 00:48:48 +02:00
Daniel Mendler
56fb5e4a9a
mp_rand_source(NULL) sets to platform random source
2019-05-08 15:17:37 +02:00
Daniel Mendler
9e28ef9fa2
mp_rand: use #else after arcrandom
2019-05-08 15:15:45 +02:00
Daniel Mendler
2a0021a447
mp_rand: remove superflous mp_clamp
2019-05-08 14:57:49 +02:00
Daniel Mendler
9ddf1e5838
support custom random data source via mp_rand_source
...
* deprecate MP_PRNG_ENABLE_LTM_RNG
* custom mp_rand_source is used always if set, which should be more aligned with user expectations
* use custom source in tune.c
* don't call random number generator once per digit, which is slow
2019-05-08 11:21:10 +02:00
Daniel Mendler
ff56140462
shorter headers
2019-04-07 17:26:31 +02:00
Daniel Mendler
70a30ae7a7
remove footers
2019-04-07 17:26:31 +02:00
Daniel Mendler
5da4e0ac01
remove unnecessary size_t casts, fix Wconversion/Wsign-conversion issues
...
Wconversion and Wsign-conversion is still not activated by default,
since there are many issues in demo.c.
2019-04-05 10:52:39 +02:00
czurnieden
08eb995d01
implemented Steffen Jaeckels superior suggestion regarding MoarVM's problem
2019-01-15 16:59:57 +01:00
czurnieden
aadb1efa25
changes for the Clang compiler
2019-01-15 16:59:57 +01:00
czurnieden
b7216e89ea
workaround for the MoarVM problem with MP_GEN_RAND et al.
2019-01-15 16:59:57 +01:00
Steffen Jaeckel
18355de625
Update file headers
...
[skip ci]
2018-12-29 17:56:20 +01:00
Steffen Jaeckel
8b9f98baa1
auto-format
...
by executing `make astyle`
2018-09-23 21:37:58 +02:00
czurnieden
9034e712b8
Do not use installed headers for building
2018-05-02 21:43:17 +02:00
Steffen Jaeckel
ef6d85a1a6
don't use rand() in mp_rand()
...
This fixes #103
2018-04-23 22:31:59 +02:00
Steffen Jaeckel
f51249b6aa
clean-up file headers
2018-02-27 23:30:43 +01:00
Steffen Jaeckel
e156e7efcf
fix clang build for MP_{8,16}BIT
2017-10-19 11:47:29 +02:00
Francois Perrad
bdbed00079
literal suffix
2017-10-15 19:57:12 +02:00
Francois Perrad
2344bcea3a
format with astyle (step 6)
2017-08-30 20:23:46 +02:00
Francois Perrad
45771cc91c
format with astyle (step 1)
2017-08-30 20:09:49 +02:00
Francois Perrad
ef6c71f1d2
return type of function on the same line
2017-08-30 20:09:32 +02:00
Francois Perrad
d6a9a58f64
remove space after function name and cast
2017-08-30 20:08:58 +02:00
Steffen Jaeckel
6f21294212
replace SVN tags
2017-08-28 17:00:58 +02:00
Steffen Jaeckel
712b359764
fix mp_rand() for MP_{8,16}BIT
2017-04-10 16:46:18 +02:00
Steffen Jaeckel
bc11ea7585
don't include static function in callgraph
2017-04-09 01:02:41 +02:00
Steffen Jaeckel
d5b0f1e993
loop&shift until enough random data has been read
2016-10-10 00:48:01 +02:00
Steffen Jaeckel
7cf5c050e2
make sure the entire mp_digit is filled with random data
2016-10-10 00:48:01 +02:00
Steffen Jaeckel
4e3f1344a5
provide tommath_private.h
...
tommath.h contains declarations for the public part of the library.
tommath_private.h contains the functions which are private to ltm and
should not be exposed to the public.
2015-11-12 01:49:07 +01:00
Tom St Denis
079b0f65a9
Getting ready for v0.43.0 release
...
Also updated my email address...
Signed-off-by: Tom St Denis <tstdenis82@gmail.com>
2015-10-30 17:55:29 -04:00
Carlin
5d1096b0bd
use arc4random() instead of rand() on *BSD
2014-12-12 01:42:30 +13:00
Tom St Denis
333aebc894
added libtommath-0.41
2010-07-15 17:26:06 +02:00
Tom St Denis
f0b91a572e
added libtommath-0.39
2010-07-15 17:26:01 +02:00
Tom St Denis
9294e79150
added libtommath-0.36
2010-07-15 17:25:56 +02:00
Tom St Denis
fdfa2f4f50
added libtommath-0.35
2010-07-15 17:25:53 +02:00
Tom St Denis
e549ccfec5
added libtommath-0.32
2010-07-15 17:25:47 +02:00
Tom St Denis
c1da6aa2de
added libtommath-0.25
2010-07-15 17:25:33 +02:00
Tom St Denis
82f4858291
added libtommath-0.14
2010-07-15 17:25:17 +02:00
Tom St Denis
b66471f74f
added libtommath-0.13
2010-07-15 17:25:15 +02:00
Tom St Denis
57354e11ac
added libtommath-0.12
2010-07-15 17:25:14 +02:00