Steffen Jaeckel
f2076f0700
use zeromem() where appropriate
2017-06-15 01:07:44 +02:00
Steffen Jaeckel
258de3cecc
use ltc_mp_digit instead of unsigned long
2017-06-15 01:07:44 +02:00
Steffen Jaeckel
98b500e873
update crypt_build_settings et al.
2017-06-15 01:07:44 +02:00
Steffen Jaeckel
0cf7c49045
sync ltc_math_descriptor from doc
2017-06-15 00:46:50 +02:00
Francois Perrad
0bc0d55245
refactor REGISTER_*
2017-06-12 20:07:23 +02:00
Francois Perrad
ec51f880b5
Right hand side of assignment needs parenthesis
2017-06-12 20:07:23 +02:00
Francois Perrad
f40bda7cb3
fix indentation
2017-06-12 20:07:23 +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
Steffen Jaeckel
48e4ec07be
use LTC_ARGCHK()
for all mutex operations
2017-06-12 17:19:43 +02:00
Karel Miko
4f12e41d29
fix trailing ;
2017-06-12 16:35:27 +02:00
Karel Miko
114b694735
trying to fix dh_shared_secret - #119
2017-06-11 23:20:46 +02:00
Karel Miko
bc4236d90f
tuning dh_make_key
2017-06-11 21:12:14 +02:00
Karel Miko
361778d2ac
another dh_make_key redesign
2017-06-11 19:43:08 +02:00
Karel Miko
71884788e3
fix warning: comparison between signed and unsigned integer
2017-06-11 10:12:18 +02:00
Karel Miko
532c511f52
improved dh_make_key
2017-06-10 23:02:30 +02:00
Steffen Jaeckel
c9f4628693
don't call rng_make_prng()
from dh_make_key()
...
While testing with multiple threads I had spurious errors where some tests
can't read from the PRNG.
If I tracked it down correctly that's caused by `dh_make_key()`
calling `rng_make_prng()` which re-initializes the selected PRNG.
I like the idea of "refreshing" the PRNG with entropy from a hopefully
secure RNG before generating a new key, but I don't think it's the duty
of a key-generation function to ensure that, but merely the application
that implements key-generation.
2017-06-09 18:56:04 +02:00
Steffen Jaeckel
f31d8ff864
implement smaller private key sizes
2017-06-09 18:33:51 +02:00
Karel Miko
f46b32ba2e
better DH primes
2017-06-09 14:14:07 +02:00
Karel Miko
2a883b44c7
do not expose dsa_make_params as a public API
2017-06-09 13:01:30 +02:00
Steffen Jaeckel
ef450fe14a
fix error handling
2017-06-08 23:34:16 +02:00
Karel Miko
52a496e9e1
rsa_import_pkcs8 - passwd is now "const void *"
2017-06-08 23:34:16 +02:00
Karel Miko
d96f4bdcff
rsa_import_pkcs8
2017-06-08 23:34:16 +02:00
Steffen Jaeckel
4bbce780c4
always provide compare_testvector()
as a function
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
4e971a8518
don't use print_hex() from library
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
4ceb82bf54
add register_all_{ciphers,hashes,prngs}()
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
7f91e5ae65
requiring 'name != NULL' in find_cipher_any() doesn't make sense
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
8c1d55f4c0
fix error when compiling w/ LTC_CLEAN_STACK but w/o LTC_FAST
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
b78c5551f7
move compare_testvector()
implementation to the library
2017-06-08 22:20:45 +02:00
Steffen Jaeckel
0a23c6d32e
also check for cipher descriptors
2017-06-08 22:20:44 +02:00
Steffen Jaeckel
4929860641
fix file modes
2017-05-31 01:57:40 +02:00
Kelvin Sherlock
a8d81a7214
fix sha3 test numbers
2017-05-21 15:32:16 -04:00
Kelvin Sherlock
30f8aaad8c
replace XMEMCMP with compare_testvector, other consistency cleanup in testing code.
2017-05-14 22:17:59 -04:00
Karel Miko
43e46a2efc
fix clang static analyzer warnings/errors - see #217
2017-05-11 20:37:06 +02:00
Karel Miko
e2cf11da25
fix windows warnings - #212 and #213
2017-05-11 17:42:43 +02:00
Karel Miko
6d70827d1f
Windows: fix warning: 'rng_nix' defined but not used
2017-05-11 17:42:43 +02:00
Karel Miko
91b61630be
improved #ifdefs - related to: 'num' not referenced
2017-05-09 21:43:28 +02:00
Karel Miko
04262d3aec
fix: local struct member 'poly_div' not referenced
2017-05-09 21:31:12 +02:00
Karel Miko
f6ea738fee
fix: Loss of sign (initialization) (int to unsigned long long)
2017-05-09 21:30:44 +02:00
Karel Miko
421266cf5f
fix void *orig
2017-05-05 19:57:20 +02:00
Karel Miko
adf0ad95c9
IBM xlc compiler does not like "static inline" (related to #209 )
2017-05-05 19:57:20 +02:00
Steffen Jaeckel
31dcb9ff2a
only set outlen on success
2017-05-03 18:10:45 +02:00
Karel Miko
4e66160ac2
one more readable for loop
2017-05-03 17:01:18 +02:00
Karel Miko
f831e27702
more readable for loops
2017-05-03 12:56:25 +02:00
Karel Miko
a1615daa3c
shake be fix (hopefully final)
2017-05-03 12:56:25 +02:00
Karel Miko
961b6109d5
cosmetics
2017-05-03 12:56:25 +02:00
Karel Miko
da8501f55a
sha3_shake_done another be fix
2017-05-03 12:56:25 +02:00
Karel Miko
c3f2e4530a
declaration of ‘i’ shadows a previous local (better)
2017-05-03 12:56:25 +02:00
Karel Miko
df4e47978e
declaration of ‘i’ shadows a previous local
2017-05-03 12:56:25 +02:00
Karel Miko
e5c0e7ffd3
SHAKE (SHA3 related) big endian fix
2017-05-03 12:56:25 +02:00
Steffen Jaeckel
67ca1c0b9a
fix for compilation with LTC_DEBUG
2017-05-03 12:37:24 +02:00