Commit Graph

308 Commits

Author SHA1 Message Date
Karel Miko 4bd327a4cc better handling wchar_t when __WCHAR_MAX__ is 0xFFFF (2 bytes only) 2017-02-28 20:24:49 +01:00
Karel Miko 05f85c3e6d RS2 remove 40bit limit 2017-02-28 20:20:51 +01:00
Steffen Jaeckel 03f0674985 add compare_testvector() prototype to tomcrypt_misc.h 2017-02-28 20:09:32 +01:00
Steffen Jaeckel 9a29428f8e Add secondary rc2 setup function
...to be able to pass the effective key length.
2017-02-28 20:09:32 +01:00
Steffen Jaeckel 43c50423ad add yet another testvector 2017-02-28 20:09:32 +01:00
Steffen Jaeckel 952caf3cd7 add testvectors for smaller RC2 keysizes
originates from rfc2268

1 byte keylen is commented
2017-02-28 20:09:32 +01:00
Steffen Jaeckel 19c81bbbee fix typo 2017-02-28 20:09:32 +01:00
Karel Miko 344620a0e7 fixes #135 RC2 min keylen 40bit (was 64bit) 2017-02-28 20:09:32 +01:00
Karel Miko 6c8d00d1fd part of feature/doc changes 2017-02-28 17:35:57 +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
Karel Miko faa18e71c8 tuning indentation 2017-02-28 00:51:25 +01:00
Karel Miko 1e260eeaae fir coverity finding: dsa_import double free 2017-02-28 00:51:25 +01:00
Matt Kelly e187f4cbf4 Fix all warnings from -Wcast-align 2017-02-26 10:12:16 -05:00
Karel Miko 7246ab50da fix coverity finding: cbc_decrypt out-of-bound read 2017-02-25 19:53:52 +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
Francois Perrad fc55a8fd1b remove trailing spaces 2017-02-24 19:02:43 +01:00
Francois Perrad b0f06ed1ec add parenthese in macro 2017-02-24 19:00:36 +01:00
Francois Perrad 79d6e61aca use the variable 'err' 2017-02-24 19:00:32 +01:00
Francois Perrad 31f88a9c9b default for switch 2017-02-24 19:00:28 +01:00
Francois Perrad 203087d6d7 bug: wrong parentheses in condition with assignment 2017-02-24 19:00:24 +01:00
Karel Miko 649ef0faef forgotten trailing space 2017-02-24 16:54:01 +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
Francois Perrad 9f8df116be remove useless code 2017-02-24 16:23:27 +01:00
Francois Perrad cebf33cdce add some const 2017-02-24 16:23:23 +01:00
Francois Perrad 9749958fe5 the comment FALLTHROUGH is common for several lint tool 2017-02-24 16:23:19 +01:00
Francois Perrad c22acc2d07 remove useless include 2017-02-24 16:23:15 +01:00
Francois Perrad 7b48f4d5f7 fix indentation 2017-02-24 16:23:10 +01:00
Steffen Jaeckel ecb2402ba8 remove [X]CLOCKS_PER_SEC 2017-02-24 00:28:59 +01:00
Karel Miko 979e9a9d15 fix for #90 ltc_ecc_mul2add.c integer sign issue (sjaeckel's way) 2017-02-24 00:18:55 +01:00
Karel Miko 0c226834cc introducing LTC_INLINE 2017-02-23 23:47:56 +01:00
Karel Miko 3d5b90d24d LTC_NO_PROTOTYPES related cosmetics 2017-02-23 11:03:55 +01:00
Steffen Jaeckel 76b289833c only define LTC_NO_PROTOTYPES on one point
This closes #132
2017-02-23 11:03:55 +01:00
Karel Miko a2c87f54de adding rsa_import_radix 2017-02-21 16:55:09 +01:00
Karel Miko 10545366d2 adding dsa_import_radix 2017-02-21 16:54:10 +01:00
Karel Miko bcf7753a26 use MIN macro 2017-02-21 16:36:17 +01:00
Karel Miko ecbac7324e DSA: properly handle FIPS 186-4 (4.6 + 4.7) 2017-02-21 16:36:17 +01:00
Karel Miko b36e75b7f1 don't read from c:\dev\random on windows 2017-02-21 13:34:52 +01:00
Steffen Jaeckel d727b16898 use proper defines as of [1]
[1] http://predef.sourceforge.net
2017-02-21 13:34:52 +01:00
zeromus c341d36c6a do it differently 2017-02-21 11:49:35 +01:00
zeromus 32f19995f8 do it differently 2017-02-21 11:49:35 +01:00