Daniel Mendler
b9977adfb8
use uint8_t instead of unsigned char
2019-10-29 17:40:59 +01:00
Daniel Mendler
2122b51139
manual: don't mention obsolete MP_DIV_SMALL
2019-10-27 21:53:17 +01:00
Steffen Jaeckel
e2f8df3358
fix doc [skip ci]
...
+ ignore bak files generated by latexindent
+ silence latexindent
2019-10-27 21:19:37 +01:00
Daniel Mendler
d27dff92f0
update manual: replace mp_bool/MP_YES/MP_NO references by bool/true/false
2019-10-27 18:41:58 +01:00
Steffen Jaeckel
8862ca830e
fix index
...
added new API functions found by `helper.pl -d`
removed old API functions found via
```sh
awk -F',' '/item/ {print $1}' doc/bn.ind | \
awk '/mp/ {print $2}' | \
sed -e 's/\\//g' | \
xargs -I {} sh -c "grep -q {} tommath.h || echo {}"
```
2019-10-27 16:29:30 +01:00
czurnieden
2efbdd543c
more clean-ups and addition of a latexinden.pl configuration file
2019-10-27 14:57:37 +01:00
czurnieden
3947ffda95
backup
2019-10-27 14:57:37 +01:00
czurnieden
8b31c193bf
Cleanup and update of manual
2019-10-27 14:57:37 +01:00
Steffen Jaeckel
d06e2986ca
v1.2.0
...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Gnu Privacy Tools
iF4EABEIAAYFAl2uz5oACgkQrwyxdiHtrXLIngD/WoeRRt9sYkjNiSmiKYuBvgAi
pF0Sdfe7vAAhY3jpRX0A/2rJdJFGiFiuAB72qWiGJZg0Rr+kbOGwKfvYgE6jROw6
=EL7p
-----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Gnu Privacy Tools
iF4EABEIAAYFAl2u0EEACgkQrwyxdiHtrXIQkQD+I8Z6IYTtVmG0patanpT1EFyA
SZUKP2z50owej4uF3QAA/32m1dmpG6MSYhfu9zu4435PwaI+RgCaUrZ1YaoWroXJ
=agqw
-----END PGP SIGNATURE-----
Merge tag 'v1.2.0' into develop
v1.2.0
2019-10-22 11:47:42 +02:00
Steffen Jaeckel
7a68f12873
Execute move.sh - Rename files from bn_* to match the function names.
...
* git blame <renamed-file> is not affected
* git log --follow <renamed-file> can be used to show log across renames
2019-10-19 16:24:39 +02:00
czurnieden
36fca2f9a0
remove support for 8-bit (MP_8BIT)
2019-10-19 16:03:26 +02:00
Daniel Mendler
55acc6ab5b
update docs
2019-10-17 16:56:30 +02:00
Steffen Jaeckel
ef1675f1ac
add missing indexes in doc
2019-10-16 14:30:45 +02:00
Steffen Jaeckel
8adc90411a
bump version
2019-10-15 21:12:21 +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
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