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
Francois Perrad
58353f51e2
remove trailing spaces
2017-02-24 16:29:54 +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
Steffen Jaeckel
fd99c3e3c0
remove duplicate define
2017-02-20 18:58:20 +01:00
Steffen Jaeckel
7c2ff8ebfe
show ROtate operator configuration in build settings
...
[skip ci]
2016-01-05 23:55:06 +01:00
Steffen Jaeckel
f5016d88dd
Prevent undefined behavior
...
Don't call XMEMCPY() in case info (the source parameter to memcpy) is NULL
as this would trigger UB
2015-12-05 14:31:38 +01:00
Steffen Jaeckel
460b8716c9
fix clang-analyzer warnings
...
This fixes #80
2015-12-05 14:31:01 +01:00
Steffen Jaeckel
d4945ac521
add (nearly) all defines from tomcrypt_custom.h to crypt_build_settings
...
... and provide a new make target to check if something is missing
2015-09-08 21:09:49 +02:00
Steffen Jaeckel
733c52aa00
add LTC_RSA_CRT_HARDENING to crypt_build_settings
2015-09-08 21:04:33 +02:00
Jerome Forissier
5c3f177b34
Add function pointers for accelerated XTS to ltc_cipher_descriptor
...
Similar to what already exists for other modes.
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
2015-08-25 23:58:22 +02:00
Steffen Jaeckel
ee03c97cde
add crc32
2015-08-23 22:59:14 +02:00
Steffen Jaeckel
9585faca2b
re-work debug output of some tests
2015-08-23 22:59:14 +02:00
Steffen Jaeckel
1987a2f975
add adler32 checksum algorithm
2015-08-23 22:59:14 +02:00
Sebastian Verschoor
67973b04ae
fix #74
2015-08-21 21:29:56 +02:00
Steffen Jaeckel
c28cc9e3e9
crypt_build_settings: remove build date and time
2015-05-07 10:32:12 +02: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
9782c09a3a
use XMEM{CMP, CPY, SET} macros instead of standard versions
2015-01-20 22:36:06 +01:00
Steffen Jaeckel
26c5d54e5c
add constant-time memcmp()
...
[skip ci]
2014-11-12 23:59:27 +01:00
Steffen Jaeckel
7842e338bf
fix API of dynamic language helpers
...
it is easier to handle 'int' than 'long' in the foreign language
2014-09-29 23:30:02 +02:00
Steffen Jaeckel
1924e6fd47
add sha512/224 and sha512/256 to tests and crypt_build_settings
2014-09-29 19:57:21 +02:00
Steffen Jaeckel
67b9cd8a95
trim trailing spaces
2014-09-02 02:17:43 +02:00
Jonathan Herzog
ff736a61bb
Hash functions now check for input-length overflow.
...
Because many of the hash-functions implemented by LTC use the length
of the input when padding the input out to a block-length, LTC keeps
track of the input length in a 64-bit integer. However, it did not
previously test for overflow of this value. Since many of the
hash-functions implemented by LTC are defined for inputs of length
2^128 bits or more, this means that LTC was incorrectly implementing
these hash functions for extremely long inputs. Also, this might have
been a minor security problem: A clever attacker might have been able
to take a message with a known hash and find another message (longer
by 2^64 bits) that would be hashed to the same value by LTC.
Fortunately, LTC uses a pre-processor macro to make the actual code
for hashing, and so this problem could be fixed by adding an
overflow-check to that macro.
2014-08-06 19:06:00 +02:00
Steffen Jaeckel
a8598b0faf
fix unregister_prng() where always the first prng would have been removed
2014-08-05 17:47:50 +02:00
Steffen Jaeckel
155a54ba40
add LTC prefix to most macros
2014-07-17 10:50:36 +02:00
Steffen Jaeckel
1a61b42775
update output; remove unused define
2014-07-16 15:11:14 +02:00
Steffen Jaeckel
542ba9995c
update math inititializers
...
make math initializer functions dependant on the xxx_DESC macro instead
of the USE_xxx macro, which is only relevant when building tests etc.
2014-07-15 15:38:18 +02:00
Steffen Jaeckel
fc7eeac218
update/rework constants and sizes
2014-07-15 15:27:31 +02:00
Steffen Jaeckel
fd7b3cd875
use snprintf() instead of sprintf()
2014-07-15 14:09:50 +02:00
Steffen Jaeckel
e628fb9203
clean up/trim trailing spaces
2014-07-15 13:58:48 +02:00
Larry Bugbee
a6b6884982
minor editorial changes
2014-07-14 15:47:20 +02:00
Larry Bugbee
46b6e36ea6
to know if LTC compiled big/little endian, 32/64-bit word
2014-07-14 15:47:20 +02:00
Larry Bugbee
1b29ce896f
include compiler defines and other minor refinements
2014-07-14 15:47:20 +02:00
Steffen Jaeckel
8c488289f0
improve some error and informational output
2014-07-12 16:44:28 +02:00
Steffen Jaeckel
b895f13484
minor changes/clean-up sources
2014-04-30 01:10:22 +02:00
Steffen Jaeckel
0aee5f3217
fix wrong spelled macros
2014-03-04 21:50:18 +01:00
Steffen Jaeckel
84298440f4
trim trailing spaces
2014-03-04 21:50:17 +01:00
Michael Stapelberg
8d7e3d8216
fix typo: s/Endianess/Endianness/
2014-02-25 10:38:29 +01:00
Steffen Jaeckel
2adca46735
pkcs#5: add tests for 'algo 2'
2014-02-16 18:41:33 +01:00
Steffen Jaeckel
8e7777b554
trim trailing spaces/clean up
2014-02-16 18:41:28 +01:00
Steffen Jaeckel
d78aa37c10
base64: add define LTC_BASE64_URL, make _internal functions static
2013-11-24 22:11:44 +01:00
Karel Miko
947fe41bbb
Add URL safe base64 de-/encoding
2013-10-27 21:49:26 +02:00
Steffen Jaeckel
4f86ad7dcf
hkdf: don't compile if not requested
2013-10-15 10:17:53 +02:00
karel-m
abab7089a3
OCBv3 according http://tools.ietf.org/html/draft-krovetz-ocb-03
2013-03-15 13:30:29 +02:00
RyanC
fe18c95e76
add the rest of the hkdf test cases
2013-03-15 11:16:17 +01:00
RyanC
11f50bfb3c
fix hkdf_expand arguments
2013-03-15 11:16:17 +01:00
Steffen Jaeckel
1c779b88f1
moar debug output
2013-03-15 11:16:17 +01:00