145 Commits

Author SHA1 Message Date
Steffen Jaeckel
342a10cc14 make PK_MAX_RETRIES a config option 2017-09-21 18:37:37 +02:00
Steffen Jaeckel
a9d9466694 beautify some strings
[skip-ci]
2017-09-20 15:06:28 +02:00
Karel Miko
5057af3ef1 fix char* vs. const char* 2017-09-18 12:35:03 +02:00
Karel Miko
3b663a199f fix char* vs. const char* (tests related part) 2017-09-18 09:24:19 +02:00
Andrew Janke
cfce691a50 initialize ltc_mp to force allocation under all compilers, including clang on macOS 2017-09-14 17:07:49 +02:00
Steffen Jaeckel
33e70b427a CRYPT_INVALID_KEYSIZE isn't only used for block ciphers 2017-08-26 12:03:35 +02:00
Steffen Jaeckel
d5d4cadbde PKA_{D,R}SA shouldn't be public 2017-08-09 16:06:11 +02:00
Steffen Jaeckel
a247583e63 add error-codes to crypt_constants 2017-08-09 16:06:11 +02:00
Steffen Jaeckel
91e5e8350b ltc_dh_set_type can be hidden as well 2017-08-09 16:06:11 +02:00
Steffen Jaeckel
d22b20833e we don't expose internal structs 2017-08-09 16:06:11 +02:00
Steffen Jaeckel
22822417c9 really define LTC_{DE,EN}CRYPT 2017-08-09 16:06:11 +02:00
Larry Bugbee
a3a199e14b update crypt_sizes.c 2017-08-09 16:06:11 +02:00
Larry Bugbee
7a2aabf47e update crypt_constants.c 2017-08-09 16:06:11 +02:00
Karel Miko
b79ae63408 add missing items to crypt_sizes 2017-08-09 16:06:11 +02:00
Steffen Jaeckel
ac4687d88d also put LTC_TEST_DBG in crypt_build_settings 2017-08-07 16:18:15 +02:00
Steffen Jaeckel
4805c89adb add ARGTYPE to crypt_build_settings 2017-08-01 14:21:11 +02:00
Steffen Jaeckel
24e69b2956 more printf() clean-up
* remove last occurences in non-test code
* minimize in tests
2017-07-11 15:29:45 +02:00
Steffen Jaeckel
ac6fb72ef1 fix some doxygen headers 2017-07-05 14:27:05 +02:00
Steffen Jaeckel
ae698927ff improve mem_neq() documentation 2017-06-22 14:21:14 +02:00
Steffen Jaeckel
27b3ffc627 use compare_testvector() instead of XMEMCMP() in tests 2017-06-22 14:21:14 +02:00
Steffen Jaeckel
6fc0a90a1e fix headers & footers in demos & tests 2017-06-20 15:16:11 +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
66527b3e5e include "tomcrypt.h", not <tomcrypt.h>
we want to include the local version of the header, not the system-version
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
98b500e873 update crypt_build_settings et al. 2017-06-15 01:07:44 +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
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
b78c5551f7 move compare_testvector() implementation to the library 2017-06-08 22:20:45 +02:00
Steffen Jaeckel
4929860641 fix file modes 2017-05-31 01:57:40 +02:00
Karel Miko
91b61630be improved #ifdefs - related to: 'num' not referenced 2017-05-09 21:43:28 +02:00
Karel Miko
0df0c9b12c LTC_CHACHA_STREAM >> LTC_CHACHA 2017-04-28 19:24:58 +02:00
Karel Miko
fe14c8bfaf Move RC4 + SOBER128 to src/stream/ 2017-04-28 19:24:58 +02:00
Karel Miko
0d585958c1 BLAKE2 based MACs 2017-04-23 23:27:54 +02:00
Kelvin Sherlock
7c5fef9b71 add blake2b hash 2017-04-08 15:40:56 -04:00
Kelvin Sherlock
647b53d880 add blake2s to various places. 2017-04-07 20:50:28 -04:00
Karel Miko
08a028ab04 missing LTC_FILE_READ_BUFSIZE in crypt.c 2017-04-02 18:13:45 +02:00
Karel Miko
ff5b02d371 LTC_CHACHA vs. LTC_CHACHA20_PRNG 2017-04-02 18:13:45 +02:00
Karel Miko
2656a040e0 chacha_prng > chacha20_prng 2017-04-02 18:13:45 +02:00
Karel Miko
ff6abc776c RFC 7539 - ChaCha20 and Poly1305 + chacha based PRNG 2017-04-02 18:13:45 +02:00
Steffen Jaeckel
08503a02f5 update error codes
This closes #180
2017-03-31 15:12:12 +02:00
Karel Miko
c6a0362c88 SHA3 2017-03-29 13:44:04 +02:00
Karel Miko
7bb7bdde1d improving MS Windows builds (msvc) 2017-03-29 08:48:33 +02:00
Steffen Jaeckel
cd08a8cec3 disable ltc_rng by default 2017-03-22 11:24:21 +01:00