Daniel Mendler
55acc6ab5b
update docs
2019-10-17 16:56:30 +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
czurnieden
b6813a4122
replace mp_export/import by mp_pack/unpack
2019-10-08 22:30:25 +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
czurnieden
abdb033402
Refactored functions to read and write binaries and added "maxlen"
2019-10-06 03:38:16 +02:00
Steffen Jaeckel
0664a557df
improve doc
...
[skip ci]
2019-09-03 14:53:47 +02:00
Steffen Jaeckel
72f9251939
fix last occurrences of mp_toradix()
2019-09-03 11:08:56 +02:00
nijtmans
0db64fc83c
Rename bn_get_magxx -> bn_get_mag_uxx. Documentation updated too
2019-07-03 14:45:14 +02:00
nijtmans
58ae5c20c7
More doc fixes, texts which no longer were correct due to depreciations
2019-07-03 12:49:19 +02:00
nijtmans
9861a37ef5
Update documentation
2019-07-03 12:49:19 +02:00
nijtmans
c7cedcbadf
Documentation fixes, handling i32 type correctly
2019-07-03 12:49:19 +02:00
nijtmans
db4afb3d5e
Provide explicit symbols for bn_xxx_l and bn_xxx_ll functions.
2019-07-03 12:49:19 +02:00
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
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
Christoph Zurnieden
47af7bf2a9
remove no-deterministic M-R-only tests
2019-05-24 11:29:24 +02:00
Daniel Mendler
0a9f5e9bc1
use u32 i64 suffix
2019-05-24 10:21:54 +02:00
Daniel Mendler
d7e1cb4a09
another proposal: use _ul and _l for the long macros
2019-05-24 00:15:57 +02:00
Daniel Mendler
b58c996686
use int32 and uint32 instead of sint and uint
2019-05-24 00:15:57 +02:00
Daniel Mendler
3289c9590b
introduce various mp_set_sint/mp_set_uint functions with precise types
2019-05-24 00:15:57 +02:00
Daniel Mendler
1af0de1f91
deprecate mp_tc_(and|or|xor) in favor of mp_(and|or|xor)
...
* same behavior for positive numbers
* generalisation for negative numbers, treating them as two complement
* improve algorithm, iterate once over the digits, manually perform two complement
* simplify mp_add_d, mp_sub_d
* functions are safe in case of a==c or b==c
* renamed mp_tc_div_2d to mp_signed_rsh (signed right shift)
2019-05-21 18:28:11 +02:00
Daniel Mendler
7365442ace
No grow necessary in mp_set_int* functions
...
* mp_set_int* always return MP_OKAY
* remove return checks for mp_set_int*
* introduce MP_MIN_PREC
2019-05-12 13:04:45 +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
czurnieden
db76bed220
added autotuning functionality for the Toom-Cook cut-offs
2019-05-06 23:29:08 +02:00
Daniel Mendler
fbfcb66184
apply rename
2019-04-12 14:56:29 +02:00
czurnieden
35311aea49
added function mp_ilogb
2019-04-09 21:59:59 +02:00
Daniel Mendler
70a30ae7a7
remove footers
2019-04-07 17:26:31 +02:00
czurnieden
984d3ff679
changed seed to make nth-root usable
2019-04-06 22:51:10 +02:00
czurnieden
769218ccc7
additional functions mp_incr and mp_decr
2019-04-04 07:58:19 +02:00
czurnieden
4e138a0e09
added building with ICC
2019-03-01 13:24:49 +01:00
czurnieden
ca78050c58
added building howto for NetBSD
2019-03-01 02:44:58 +01:00
czurnieden
5557301e30
added building howto for NetBSD
2019-03-01 02:40:54 +01:00
czurnieden
346e86edfc
added building howto for OpenBSD
2019-02-28 21:43:37 +01:00
Steffen Jaeckel
e88693f782
fix index
2019-02-17 13:12:07 +01:00
czurnieden
f262343d3e
corrected documentation of mp_complement
2019-02-17 03:55:36 +01:00
Steffen Jaeckel
f9bb011f22
fix doc/bn.tex ... again
...
(cherry picked from commit cb4edc7f29
)
2019-01-17 11:02:32 +01:00
Steffen Jaeckel
20f2b26c15
fix doc/bn.tex
...
(cherry picked from commit e84c094864
)
2019-01-15 18:26:51 +01:00
Steffen Jaeckel
1c8c534885
Merge pull request #147 from czurnieden/moarvm_workarounds
...
workaround for the MoarVM problem with MP_GEN_RAND et al.
(cherry picked from commit 11d6e03914
)
2019-01-15 18:22:23 +01:00
Steffen Jaeckel
d81c3d5f03
fix doc/bn.tex
2018-12-31 11:54:02 +01:00
Steffen Jaeckel
fb07f33dfc
bump version
2018-12-31 11:54:02 +01:00
czurnieden
b19f529c77
Corrected 128 bit entry in bn_mp_prime_miller_rabin_rials.c and extended it slightly
2018-12-25 15:17:12 +01:00
czurnieden
f4449362c0
fixes for MP_8BIT and mx32, prefinal design
2018-12-25 15:17:12 +01:00
czurnieden
8cb2b5e216
Updated documentation to reflect the sudden disappearance of mp_mul_si()
2018-12-25 15:17:12 +01:00
czurnieden
a218ddce9b
Added Fips 186.4 compliance, an additional strong Lucas-Selfridge (for BPSW) and a Frobenius (Paul UNderwood) test, both optional. With documentation.
2018-12-25 15:17:03 +01:00
czurnieden
48c95f2afd
repaired bn.tex
2018-12-12 00:51:10 +01:00
czurnieden
9505280693
added most of the missing doumentation to doc/bn.tex
2018-12-10 10:47:25 +01:00
Steffen Jaeckel
f51249b6aa
clean-up file headers
2018-02-27 23:30:43 +01:00
Steffen Jaeckel
2bf7d3a432
add function name to index
...
This fixes #98
2017-12-18 23:43:26 +01:00
Steffen Jaeckel
a768850525
improve generated output
2017-12-18 23:37:01 +01:00