Commit Graph

121 Commits

Author SHA1 Message Date
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
Steffen Jaeckel fe7c4e3993 add ltc_rng function pointer
the idea is to be able to easily provide a plug-in rng for a specific
platform without the need to touch the library.
2017-03-22 11:24:21 +01:00
Karel Miko 39425a94c5 improved source checks 2017-03-15 23:13:46 +01:00
Karel Miko 54a26525dc avoid C++ style comments 2017-03-15 15:22:06 +01:00
Francois Perrad 937f186db1 use #ifdef instead of #if 2017-03-15 06:55:19 +01:00
Karel Miko 4503868da2 fix pkcs_5_test crash 2017-03-14 18:22:46 +01:00
Karel Miko 0e9b3da3ea PKCS#5 alg1 tests 2017-03-14 18:22:46 +01:00
BJ Black c7d6c3ad28 Add OpenSSL-compatible PKCS#5v1 KDF, demo of OpenSSL-compatible aes-256-cbc command. 2017-03-14 18:22:46 +01:00
Karel Miko e26078d2f7 fix #109 - improved arch/endianness detection + tomcrypt_cfg.h facelift 2017-03-14 18:14:57 +01:00
Karel Miko a4d61e0bea fixes #122 adler32 vs. crc32 inconsistency (bad byte order) 2017-03-09 20:32:29 +01:00
Karel Miko fb749199db moving declaration to block beginning 2017-03-06 19:51:46 +01:00
Karel Miko 1a1addcefd move declarations at the block beginning (ANSI C) 2017-03-01 15:02:08 +01:00
Steffen Jaeckel 9092470843 fix doxygen warnings 2017-03-01 15:00:41 +01:00
Steffen Jaeckel 00308d8651 fix base64url related errors when only LTC_BASE64 is defined 2017-03-01 11:37:49 +01:00
Karel Miko efbd73fbc8 move declarations at the block beginning (ANSI C) 2017-02-28 16:11:42 +01:00
Karel Miko 88412a9fc2 conversion related troubles (int, size_t, ptrdiff_t ..) 2017-02-28 11:30:19 +01:00
Steffen Jaeckel eee936d752 add base64url_strict_encode() 2017-02-28 01:27:06 +01:00
Karel Miko 006c601efb no trailing = for base64url 2017-02-28 01:27:05 +01:00
Karel Miko ff3a03a1d0 tuning base64 decoding implementation 2017-02-28 01:27:04 +01:00
Steffen Jaeckel c1dd1cbe30 re-work strict/relaxed base64 decoding implementation
Instead of one API function with an option parameter, provide two API
functions.
Instead of defaulting to strict decoding, default to relaxed decoding.
2017-02-28 01:27:03 +01:00
Steffen Jaeckel bc16c149fc fix base64[url] strict/relaxed decode 2017-02-28 01:27:01 +01:00
Steffen Jaeckel 063bac396d add LTC_BASE64_STRICT to crypt_build_settings and crypt_constants 2017-02-28 01:27:00 +01:00
Steffen Jaeckel b10f9502f8 add RFC4648 base64 decoding compliance 2017-02-28 01:26:57 +01:00
Francois Perrad 4349993ad3 Suspicious use of & (part 2) 2017-02-25 13:21:34 +01:00
Karel Miko 477d621224 more trailing spaces + tabs in src 2017-02-24 20:31:48 +01:00