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
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
Karel Miko
e26078d2f7
fix #109 - improved arch/endianness detection + tomcrypt_cfg.h facelift
2017-03-14 18:14:57 +01:00
Karel Miko
fb749199db
moving declaration to block beginning
2017-03-06 19:51:46 +01:00
Francois Perrad
58353f51e2
remove trailing spaces
2017-02-24 16:29:54 +01:00
Steffen Jaeckel
7c2ff8ebfe
show ROtate operator configuration in build settings
...
[skip ci]
2016-01-05 23:55:06 +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
1987a2f975
add adler32 checksum algorithm
2015-08-23 22:59:14 +02:00
Steffen Jaeckel
c28cc9e3e9
crypt_build_settings: remove build date and time
2015-05-07 10:32:12 +02: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
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
8e7777b554
trim trailing spaces/clean up
2014-02-16 18:41:28 +01:00
karel-m
abab7089a3
OCBv3 according http://tools.ietf.org/html/draft-krovetz-ocb-03
2013-03-15 13:30:29 +02:00
Patrick Pelletier
382c9d4d85
Some fixes necessary to support the Clang compiler
...
First of all, it had a failure in SEED:
LTC_KSEED failed for x=0, I got:
expected actual (ciphertext)
5e == 5e
ba == ba
c6 == c6
e0 == e0
05 != 00
4e != 00
16 != 00
68 != 00
19 == 19
af == af
f1 == f1
cc == cc
6d != 00
34 != 00
6c != 00
db != 00
Since SEED uses the 32H macros, this is really analogous to the
problem I saw with the 64H macros in Camellia with gcc. Not sure why
gcc only had a problem with 64H and not 32H, but since this is an
interaction with the optimizer, it's not going to happen every time
the macro is used (hence why the store tests pass; only when you get
into the complexity of a real cipher do you start having problems) and
it makes sense it will vary from compiler to compiler.
Anyway, I went ahead and added the ability to use __builtin_bswap32,
in addition to __builtin_bswap64, which I already did in a previous
commit. This solves the problem for clang, although I had to add new
logic to detect the bswap builtins in clang, since it has a different
way to detect them than gcc (see the comments in the code). The
detection logic was complicated enough, and applied to both the 32H
and 64H macros, so I factored out the detection logic into
tomcrypt_cfg.h.
2012-11-18 15:20:12 +01:00
Steffen Jaeckel
8859f6e73d
fixed wrong return value interpretation of register_crypt/hash/prng function calls
2011-06-14 20:56:42 +02:00
Steffen Jaeckel
2f1fc7c50d
import of libtomcrypt
...
out of
lt_tree.tar.bz2
checksums of lt_tree.tar.bz2
MD5: 3c36e1ca95518f4d00a76dc9b7049952
SHA1: 4f31d1aa8cd1b9d7452b777cd52f8280dc7ebcbc
2010-06-16 19:58:20 +02:00
Tom St Denis
bbc52b9e1b
added libtomcrypt-1.17
2010-06-16 12:39:13 +02:00