Karel Miko
909b4954a9
fix MS Windows/64bit related warnings
2017-07-14 19:59:03 +02:00
Karel Miko
2aa42f002f
fix: chmod -x
2017-07-09 16:22:28 +02:00
Steffen Jaeckel
c2f50459e2
better doc of radix_to_bin()
2017-07-05 10:25:01 +02:00
Steffen Jaeckel
4221c44fbc
rename rand_bn_range() to rand_bn_upto()
2017-07-05 10:03:56 +02:00
Steffen Jaeckel
22919cd4f2
rand_bn_range(): count bits once
2017-07-04 10:58:10 +02:00
Steffen Jaeckel
d1ecd82a42
use rand_bn_range() where possible
2017-06-28 20:50:21 +02:00
Steffen Jaeckel
35e0c5fc71
clean-up a bit around DSA
...
* comments
* dsa_test()
* order of alloc/free of key parts
2017-06-28 16:07:32 +02:00
Steffen Jaeckel
76b9bba857
introduce mp_cleanup_multi()
2017-06-28 14:40:30 +02:00
Steffen Jaeckel
627f6696cb
add radix_to_bin()
2017-06-27 20:05:36 +02:00
Steffen Jaeckel
1bf42ea99a
update some of the static functions
2017-06-22 14:21:14 +02:00
Steffen Jaeckel
7453eddae9
improve ltc_math_descriptor a bit
...
* introduce LTC_MILLER_RABIN_REPS which is used as default value
in the isprime() implementations
2017-06-22 11:55:08 +02:00
Steffen Jaeckel
4cd1355b8f
more clean-up of headers/footers
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
fe19dad623
replace SVN tags
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
fb35d5be54
more clean-up of headers
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
4dc211e19d
clean-up headers
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
258de3cecc
use ltc_mp_digit instead of unsigned long
2017-06-15 01:07:44 +02:00
Steffen Jaeckel
fec05471ae
the latest tfm version has fp_rand() available, so we can test this now
2017-06-12 18:45:24 +02:00
Karel Miko
54a26525dc
avoid C++ style comments
2017-03-15 15:22:06 +01:00
Steffen Jaeckel
0b79bbaf5b
fix missing symbol rand_prime
2017-03-01 11:37:49 +01:00
Francois Perrad
31f88a9c9b
default for switch
2017-02-24 19:00:28 +01:00
Francois Perrad
58353f51e2
remove trailing spaces
2017-02-24 16:29:54 +01:00
Francois Perrad
5d7036ebe2
remove hard tab
2017-02-24 16:26:48 +01:00
Steffen Jaeckel
dfa938a4f6
verify outcome when defining LTC_NOTHING
...
check that LTC_NOTHING really creates nothing but the libraries' basic
API functions
2015-02-15 17:25:45 +01:00
Steffen Jaeckel
afaef3993c
fix compiler warning when compiling with GMP_DESC
2014-09-10 16:16:46 +02:00
Steffen Jaeckel
f597f29ece
math: change get_digit() return value
...
unsigned long is 32bit wide when compiling with the compiler flag "-mx32"
but the digit size of the math libraries is still 64 bit which lead to
the buggy ecc code.
Therefore define a new type ltc_mp_digit with the correct width and use
that as return value of get_digit()
Has been tested with all three math providers
2014-09-10 16:15:35 +02:00
Steffen Jaeckel
155a54ba40
add LTC prefix to most macros
2014-07-17 10:50:36 +02:00
Steffen Jaeckel
48f521688f
ltc_init_multi: fix missing call to va_end()
2014-05-25 00:35:03 +02:00
Steffen Jaeckel
50d10790e3
trim trailing spaces
2014-05-25 00:35:03 +02:00
Steffen Jaeckel
03385a4419
rand_bn: fix call to zeromem()
2014-05-09 23:29:11 +02:00
Steffen Jaeckel
ca42862d52
math descriptor: add parameter "b" to isprime()
2014-05-09 23:07:41 +02:00
Steffen Jaeckel
5d2fe0da8c
trim trailing spaces
2014-05-09 23:07:41 +02:00
Karel Miko
e271b9fdbe
ECC key pair generation according to FIPS-186-4
2014-05-09 17:58:39 +02:00
mudzot
3b7c6512ac
Add #ifdef to make it easier to embed libtomcrypt with LTC_NOTHING
...
Restore LTC_NO_MATH and make rand_prime.c depend on LTC_NO_MATH & LTC_NO_PRNGS
2014-04-30 01:13:51 +02:00
Patrick Pelletier
e3acd4cabe
Make GMP use uppercase to match LibTomMath.
2012-11-18 15:24:11 +01:00
Patrick Pelletier
3fbccfcb5c
support base 64 for GMP
2012-11-18 15:24:11 +01:00
Patrick Pelletier
d61c537a2a
missing a comma
2012-11-18 15:20:08 +01:00
Steffen Jaeckel
8dc8a2d551
Added define LTC_RSA_BLINDING to be able to disable rsa blinding
2011-03-21 22:50:49 +01:00
Steffen Jaeckel
edf11c62c0
Diffie-Hellman/Math: introduced the proposed changes by Alexander Kurpiers
...
addmod and submod are moved to the end of the math descriptor, in order
to be able to run existing software against a new version of ltc without need
to rebuild the software.
2011-01-18 21:16:11 +01:00
Steffen Jaeckel
6fecec107d
rejoined diffie hellman code from ltc 1.05, thanks to Alexander Kurpiers
2011-01-18 20:06:03 +01:00
Tom St Denis
bbc52b9e1b
added libtomcrypt-1.17
2010-06-16 12:39:13 +02:00
Tom St Denis
e24b01d392
added libtomcrypt-1.16
2010-06-16 12:39:09 +02:00
Tom St Denis
1eed98f629
added libtomcrypt-1.13
2010-06-16 12:39:00 +02:00
Tom St Denis
2945dea3e2
added libtomcrypt-1.12
2010-06-16 12:38:57 +02:00
Tom St Denis
64d7ebe166
added libtomcrypt-1.11
2010-06-16 12:38:54 +02:00
Tom St Denis
1eeff0bfb4
added libtomcrypt-1.08
2010-06-16 12:38:47 +02:00
Tom St Denis
4a1a5796de
added libtomcrypt-1.07
2010-06-16 12:38:44 +02:00
Tom St Denis
72412f6dac
added libtomcrypt-1.06
2010-06-16 12:38:41 +02:00