Karel Miko
|
9c972c833d
|
fix chacha20poly1305_test
|
2017-04-29 13:30:19 +02:00 |
|
Karel Miko
|
eb209aa2f9
|
more error checking in *_test
|
2017-04-28 19:24:58 +02:00 |
|
Karel Miko
|
90b482aa1e
|
stream/chacha - improved counter increment
|
2017-04-28 19:24:58 +02:00 |
|
Karel Miko
|
9232f2e970
|
fortuna/yarrow & export_size
|
2017-04-28 19:24:58 +02:00 |
|
Karel Miko
|
1732ed8ce8
|
increase coverage
|
2017-04-28 19:24:58 +02:00 |
|
Karel Miko
|
784a009efe
|
increase coverage
|
2017-04-28 19:24:58 +02:00 |
|
Karel Miko
|
da25a23712
|
increasing prngs/rc4 coverage
|
2017-04-28 19:24:58 +02:00 |
|
Karel Miko
|
0df0c9b12c
|
LTC_CHACHA_STREAM >> LTC_CHACHA
|
2017-04-28 19:24:58 +02:00 |
|
Karel Miko
|
dd35e86c60
|
renaming rc4+sober128 stream API to *_stream_*
|
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
|
0d998fd4c8
|
stream/chacha ivlen cosmetics
|
2017-04-25 01:10:15 +02:00 |
|
Karel Miko
|
0f0f1e40be
|
indentation
|
2017-04-24 21:59:21 +02:00 |
|
Karel Miko
|
61105b67f4
|
test vectors from https://github.com/BLAKE2
|
2017-04-23 23:27:54 +02:00 |
|
Karel Miko
|
0d585958c1
|
BLAKE2 based MACs
|
2017-04-23 23:27:54 +02:00 |
|
Steffen Jaeckel
|
7a83cea4db
|
use appropriate names for sha3 hashes
|
2017-04-23 15:55:49 +02:00 |
|
Karel Miko
|
336c52ca5f
|
Facelift of *_file functions
|
2017-04-21 16:11:22 +02:00 |
|
Kelvin Sherlock
|
56a2efa729
|
fix blake2s-160/224 hash sizes.
|
2017-04-20 11:22:16 -04:00 |
|
Kelvin Sherlock
|
4905232eda
|
more tests.
|
2017-04-19 16:50:34 -04:00 |
|
Kelvin Sherlock
|
c65d24222e
|
always zeromem hash_state when done
|
2017-04-19 16:47:03 -04:00 |
|
Kelvin Sherlock
|
2dc574d477
|
use - in hash descriptors.
|
2017-04-19 16:46:36 -04:00 |
|
Kelvin Sherlock
|
4ee9d767bb
|
add key/keylen parameters to blake2x_init
|
2017-04-10 18:29:51 -04:00 |
|
Kelvin Sherlock
|
0f97bb7415
|
fix burn blake2b stack size.
|
2017-04-10 16:37:34 -04:00 |
|
Kelvin Sherlock
|
55450078ea
|
use compare_testvector in tests.
|
2017-04-10 12:00:22 -04:00 |
|
Kelvin Sherlock
|
ea8dde7f63
|
formatting
|
2017-04-10 11:34:59 -04:00 |
|
Kelvin Sherlock
|
dfbdb626c3
|
add missing const.
|
2017-04-10 10:50:34 -04:00 |
|
Kelvin Sherlock
|
6b46b447b5
|
replace packed parameter struct with offsets into a unsigned char buffer.
|
2017-04-10 10:40:20 -04:00 |
|
Kelvin Sherlock
|
6acdfe9a55
|
cleanup, resins with updated reference source
|
2017-04-10 10:22:50 -04:00 |
|
Kelvin Sherlock
|
afc6e8d370
|
minor cleanup.
|
2017-04-10 10:21:51 -04:00 |
|
Kelvin Sherlock
|
b4594ab3c6
|
remove inline and c99 variable declarations.
|
2017-04-09 17:22:42 -04:00 |
|
Kelvin Sherlock
|
268c87e33d
|
add LTC_ARGCHK for blake2b_process.
|
2017-04-08 17:00:39 -04:00 |
|
Kelvin Sherlock
|
6f6e2d30a8
|
clang-format
|
2017-04-08 15:43:38 -04:00 |
|
Kelvin Sherlock
|
7c5fef9b71
|
add blake2b hash
|
2017-04-08 15:40:56 -04:00 |
|
Kelvin Sherlock
|
5924bd43e6
|
tweak source to conform a little better
|
2017-04-08 15:40:20 -04:00 |
|
Kelvin Sherlock
|
51075724c1
|
use hash_state * for all arguments.
|
2017-04-07 23:46:52 -04:00 |
|
Kelvin Sherlock
|
063df0bffe
|
more tests.
|
2017-04-07 23:46:17 -04:00 |
|
Kelvin Sherlock
|
4449cdcea3
|
sort and number the ltc_hash_descriptors.
|
2017-04-07 23:45:49 -04:00 |
|
Kelvin Sherlock
|
1b5ae955d2
|
moe clang-format
|
2017-04-07 21:24:47 -04:00 |
|
Kelvin Sherlock
|
51f6b063d6
|
clang format
|
2017-04-07 21:12:54 -04:00 |
|
Kelvin Sherlock
|
647b53d880
|
add blake2s to various places.
|
2017-04-07 20:50:28 -04:00 |
|
Kelvin Sherlock
|
68296e0608
|
blake2s hash
|
2017-04-07 20:47:44 -04:00 |
|
Francois Perrad
|
b6c27c2f08
|
no room for nul terminator
|
2017-04-07 12:16:48 +02:00 |
|
Francois Perrad
|
0be45a6341
|
remove unreachable code
|
2017-04-07 12:16:44 +02:00 |
|
Francois Perrad
|
9941648125
|
remove suspicious ;
|
2017-04-07 00:17:43 +02:00 |
|
Steffen Jaeckel
|
08415d37f3
|
fix compare_testvector() macro
|
2017-04-06 22:47:36 +02:00 |
|
Francois Perrad
|
168472f753
|
misuse of compare_testvector
|
2017-04-05 09:28:32 +02:00 |
|
Karel Miko
|
eefb8dc479
|
renaming prngs/chacha.c prngs/chacha20.c
|
2017-04-03 22:54:27 +02:00 |
|
Karel Miko
|
bfe9484a3d
|
renaming chacha_prng > chacha20_prng
|
2017-04-03 22:52:17 +02:00 |
|
Karel Miko
|
2520e6c061
|
add link to arc4random.c which was the inspiration for chacha_prng
|
2017-04-03 20:04:00 +02:00 |
|
Karel Miko
|
7b93f04390
|
wrong use of sizeof(buf)
|
2017-04-03 19:54:51 +02:00 |
|
Karel Miko
|
ce37498ec6
|
chacha_prng_desc > chacha20_prng_desc
|
2017-04-03 19:52:03 +02:00 |
|
Karel Miko
|
08a028ab04
|
missing LTC_FILE_READ_BUFSIZE in crypt.c
|
2017-04-02 18:13:45 +02:00 |
|
Karel Miko
|
883db95da2
|
FILE_READ_BUFSIZE > LTC_FILE_READ_BUFSIZE
|
2017-04-02 18:13:45 +02:00 |
|
Karel Miko
|
06b1582de6
|
new #define FILE_READ_BUFSIZE
|
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
|
3a05f0331d
|
chachapoly_state > chacha20poly1305_state
|
2017-04-02 18:13:45 +02:00 |
|
Karel Miko
|
11a9dc50b3
|
poly_state > poly1305_state
|
2017-04-02 18:13:45 +02:00 |
|
Karel Miko
|
39028bbeed
|
more tests in chacha20poly1305_test
|
2017-04-02 18:13:45 +02:00 |
|
Karel Miko
|
31b52a354d
|
padlen in chacha20poly1305_decrypt
|
2017-04-02 18:13:45 +02:00 |
|
Karel Miko
|
5797b0cc1e
|
test for chacha_ivctr64 (2)
|
2017-04-02 18:13:45 +02:00 |
|
Karel Miko
|
53c00d14e5
|
test for chacha_ivctr64
|
2017-04-02 18:13:45 +02:00 |
|
Karel Miko
|
a517db2514
|
cosmetics
|
2017-04-02 18:13:45 +02:00 |
|
Karel Miko
|
c8cb714e08
|
added chacha_done
|
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
|
6844275e82
|
silence MSVC compiler warning
|
2017-04-02 17:42:28 +02:00 |
|
Steffen Jaeckel
|
2c52bf75f4
|
bugfixing
|
2017-03-31 18:24:42 +02:00 |
|
Steffen Jaeckel
|
08503a02f5
|
update error codes
This closes #180
|
2017-03-31 15:12:12 +02:00 |
|
Steffen Jaeckel
|
1f0daf1eff
|
fix compiler warning
|
2017-03-31 00:57:22 +02:00 |
|
Steffen Jaeckel
|
83780d4764
|
add timezone-offset support to GeneralizedTime
this also fixes a bug in the length generation
|
2017-03-30 22:48:42 +02:00 |
|
Steffen Jaeckel
|
2bd517307c
|
add GeneralizedTime DER en-/decode
|
2017-03-30 22:29:02 +02:00 |
|
Steffen Jaeckel
|
856d542a1c
|
turn around the order when free'ing an rsa_key struct
|
2017-03-30 18:46:05 +02:00 |
|
Steffen Jaeckel
|
ec327b3d86
|
move x509 processing to rsa_import_x509()
|
2017-03-30 18:46:05 +02:00 |
|
Steffen Jaeckel
|
27722734b2
|
let's use an empty list element to signal an empty sequence
|
2017-03-30 18:46:04 +02:00 |
|
Steffen Jaeckel
|
f9bce83329
|
add possibility to rsa_import() the public key of an x.509 certificate
|
2017-03-30 18:46:04 +02:00 |
|
Steffen Jaeckel
|
2e822a80a8
|
add der_sequence_shrink()
in case you want to keep a sequence over a longer time, but you don't
need all the raw constructed, set or sequence data
|
2017-03-30 18:46:04 +02:00 |
|
Steffen Jaeckel
|
7ddce245b8
|
save the plain constructed-, sequence- or set-data details
|
2017-03-30 18:46:04 +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
|
8af93d1d0d
|
Remove ccm_memory_ex()
|
2017-03-28 22:57:22 +02:00 |
|
Steffen Jaeckel
|
70ee598c5e
|
fix LTC_NO_ASM rotate macros when compiling with clang
|
2017-03-28 21:18:22 +02:00 |
|
Steffen Jaeckel
|
ea355dbc79
|
there's no reason to disable DH when using GMP as MPI provider
|
2017-03-24 16:58:04 +01: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
|
591ef19c7a
|
comment: it might happen that LTC_WCHAR_MAX is undefined
|
2017-03-09 20:48:24 +01:00 |
|
Karel Miko
|
02b92405e2
|
simplified #ifdef
|
2017-03-09 20:48:24 +01:00 |
|
Karel Miko
|
7ab76a464e
|
introducing LTC_WCHAR_MAX
|
2017-03-09 20:48:24 +01:00 |
|
Karel Miko
|
2f9c426487
|
fix wchar_t related warnings on Visual Studio 2008
|
2017-03-09 20:48:24 +01:00 |
|
Karel Miko
|
a4d61e0bea
|
fixes #122 adler32 vs. crc32 inconsistency (bad byte order)
|
2017-03-09 20:32:29 +01:00 |
|
Karel Miko
|
ac3f55fd92
|
there is no snprintf before Visual C++ 2015
|
2017-03-09 20:07:39 +01:00 |
|
Karel Miko
|
52eaabefa9
|
msvc 2008 does not like { } initialization
|
2017-03-06 19:53:04 +01:00 |
|
Karel Miko
|
fb749199db
|
moving declaration to block beginning
|
2017-03-06 19:51:46 +01:00 |
|
Karel Miko
|
081ee45712
|
move declaration at block beginning
|
2017-03-06 10:43:39 +01:00 |
|
Karel Miko
|
1a1addcefd
|
move declarations at the block beginning (ANSI C)
|
2017-03-01 15:02:08 +01:00 |
|