Steffen Jaeckel
ca91ae5a1f
add fortuna_add_random_event()
2018-04-09 23:30:27 +02:00
Steffen Jaeckel
75dad9473d
implement FORTUNA's reseed rate limit based on time
2018-04-09 23:30:27 +02:00
Steffen Jaeckel
1fb478ea31
Merge pull request #324 from TrinityCoder/fix-missing-const-params
...
Added missing 'const' qualifier to many functions' parameters
2018-04-09 11:58:37 +02:00
Steffen Jaeckel
1c3629fc06
add more missing const
2018-04-09 10:29:29 +02:00
Miroslav Mareš
228d29d1e7
Added missing 'const' qualifier to many functions' parameters
2018-04-09 10:29:29 +02:00
karel-m
248352c36f
Merge pull request #379 from libtom/pr/clang-tidy-misc-misplaced-widening-cast
...
clang-tidy: misc-misplaced-widening-cast
2018-04-09 08:56:53 +02:00
Karel Miko
7465d0bac3
fix clang-tidy misc-misplaced-widening-cast
2018-04-09 08:56:41 +02:00
karel-m
24f933d22a
Merge pull request #378 from libtom/pr/clang-tidy-misc-suspicious-string-compare
...
clang-tidy: misc-suspicious-string-compare
2018-04-09 08:55:32 +02:00
Karel Miko
fa01052b32
fix memcmp is called without explicitly comparing result
2018-04-09 08:55:13 +02:00
karel-m
4cc8d08e50
Merge pull request #377 from libtom/pr/clang-tidy-void-return
...
clang-tidy: readability-redundant-control-flow
2018-04-09 08:53:20 +02:00
Karel Miko
061fe36114
fix redundant return statement at the end of a function with a void return type
2018-04-08 18:04:34 +02:00
karel-m
5c31c3d016
Merge pull request #375 from libtom/pr/fix-unused-const-variable
...
Fix -Wunused-const-variable in aes_tab.c
2018-04-08 16:22:05 +02:00
Karel Miko
318451ce66
Fix -Wunused-const-variable in aes_tab.c
2018-04-08 14:28:57 +02:00
Steffen Jaeckel
49b3425de7
Merge pull request #374 from libtom/fix/cygwin
...
fix aesgcm on cygwin
2018-04-08 02:56:20 +02:00
Steffen Jaeckel
3249dcb963
allow TAB_SIZE to be defined at compile-time
2018-04-06 10:27:12 +02:00
Steffen Jaeckel
ba54b891b9
fix aesgcm on cygwin
...
This fixes #372
2018-04-06 10:19:53 +02:00
Steffen Jaeckel
70ec9b3b35
back-port of the bugfix done in #363
2018-04-04 19:31:36 +02:00
Steffen Jaeckel
24aab18d5b
Merge pull request #359 from vchong/ltc_ctr
...
ltc: ctr: improve performance
(cherry picked from commit 9b80d07487
)
2018-04-04 19:27:40 +02:00
Steffen Jaeckel
affb3d70cb
improve fortuna_import()
...
This makes fortuna_import() kinda compliant to the "Update seed file"
behavior of the original paper.
It differs from the original behavior in that it allows to import
seed files which are larger than 64 bytes.
(cherry picked from commit 39d4a14c29
)
2018-04-04 19:25:31 +02:00
Steffen Jaeckel
89dffe6c7e
add comment to Fortuna docs
...
(cherry picked from commit cccd1e3053
)
2018-04-04 19:25:31 +02:00
Steffen Jaeckel
415c57f3af
don't ignore additional data on SOBER128-PRNG import
...
(cherry picked from commit d502869728
)
2018-04-04 19:25:31 +02:00
Steffen Jaeckel
b9fa4c063a
fortuna_import() shouldn't ignore additional input
...
(cherry picked from commit 0c05e5386f
)
2018-04-04 19:25:31 +02:00
Steffen Jaeckel
67d8ca19f5
ensure that fortuna has been seeded properly
...
(cherry picked from commit 04ce8cf613
)
2018-04-04 19:25:31 +02:00
karel-m
243898972c
Merge pull request #351 from libtom/pr/fix-time_cipher_lrw
...
LTC_EASY & time_cipher_lrw
(cherry picked from commit ea5b6cdce9
)
2018-04-04 19:19:52 +02:00
Steffen Jaeckel
873240e7a0
Merge pull request #350 from libtom/fix/no-file-warnings
...
Fix warnings in `XMAC_file()` functions when compiling with `LTC_NO_FILE`.
(cherry picked from commit 11cda2e274
)
2018-04-04 19:19:19 +02:00
karel-m
fa759d8ee9
Merge pull request #371 from libtom/pr/baseNN-consistent-nul
...
consistent NUL byte handling in baseNN_encode
2018-03-28 09:30:56 +02:00
Karel Miko
6d33ecdbf9
consistent NUL byte handling in baseNN_encode
2018-03-28 07:46:31 +02:00
karel-m
ef1fba20b7
Merge pull request #365 from libtom/pr/base64-decode-less-relaxed
...
Make base64_decode relaxed mode less relaxed
2018-03-27 23:18:15 +02:00
Karel Miko
f0f1283dbb
doc - add indexes for base64url_*
2018-03-27 21:06:31 +02:00
Karel Miko
798f257059
fix base64_decode comments
2018-03-27 21:06:31 +02:00
Karel Miko
229aec965c
enhanced base64 related tests
2018-03-27 21:06:30 +02:00
Karel Miko
ad8067eaf7
doc for base64_sane_decode
2018-03-27 21:06:30 +02:00
Karel Miko
964f61709f
introducing base64_sane_decode
2018-03-27 21:06:30 +02:00
Karel Miko
b10bf8fa0d
make base64_decode relaxed mode less relaxed
2018-03-27 21:06:30 +02:00
Steffen Jaeckel
8b6d9dba76
Merge pull request #369 from libtom/demo/aesgcm
...
Add aesgcm demo
2018-03-27 19:39:13 +02:00
Steffen Jaeckel
e040ef1a59
add aesgcm demo
...
yeah I know, it's GNU specific, therefore it's also only added to the
GNU makefiles
2018-03-27 14:26:16 +02:00
Steffen Jaeckel
31088c0e9e
add gcm_file() and gcm_filehandle()
2018-03-27 14:26:16 +02:00
Steffen Jaeckel
f4afa5d5bb
Merge pull request #368 from libtom/fix/base16-api
...
Improve base16
2018-03-27 12:58:18 +02:00
Steffen Jaeckel
ed5025398b
check input of base16_decode()
2018-03-27 10:08:29 +02:00
Steffen Jaeckel
efbf38adce
update docs
2018-03-27 10:08:29 +02:00
Steffen Jaeckel
73e5330c47
add inlen parameter to base16_decode()
2018-03-27 10:08:29 +02:00
Steffen Jaeckel
9b80d07487
Merge pull request #359 from vchong/ltc_ctr
...
ltc: ctr: improve performance
2018-03-27 02:25:25 +02:00
Steffen Jaeckel
bed9811d74
fix-up ctr_encrypt.c
2018-03-26 23:34:15 +02:00
Tetsuya Yoshizaki
431319f30b
ltc: ctr: improve performance
...
When accel_ctr_encrypt() is not used, accel_ecb_encrypt() is used via
ecb_encrypt() instead. The accel_ecb_encrypt() is frequently called at
every single block process. VFP assembly code called from the
accel_ecb_encrypt() is protected by
tomcrypt_arm_neon_enable()/disable(). FIQ enable/disable and VFP
register save/restore (64bitx32 registers!) to/from memory are done in
the tomcrypt_arm_neon_enable()/disable(). These overhead exist in each
single block process cause the degradation of system performance
eventually. Cases where h/w accelerated AES-CTR did not show any effects
or showed less performance than pure software processing have been
observed.
This patch resolves the issue by increasing utilization rate of
accel_ctr_encrypt().
Signed-off-by: Tetsuya Yoshizaki <yoshizaki.tetsuya@socionext.com>
Signed-off-by: Victor Chong <victor.chong@linaro.org>
2018-03-26 23:29:07 +02:00
karel-m
f240aeadc2
Merge pull request #366 from libtom/pr/base64-char
...
base64 - use `char *` for Base64 strings
2018-03-26 21:06:43 +02:00
Karel Miko
e73bb36f3f
update doc - base64 & char*
2018-03-26 16:42:19 +02:00
Karel Miko
065c89108e
base64_* use char *
for Base64 strings
2018-03-26 16:42:19 +02:00
karel-m
f72621e276
Merge pull request #367 from libtom/pr/base32-nul
...
base32_encode - make the output NUL-terminated
2018-03-26 16:41:25 +02:00
Karel Miko
981f3ef844
base32_encode - make the output NUL-terminated
2018-03-25 22:17:46 +02:00
Karel Miko
7a7b773b3c
Revert "make base64_decode relaxed mode less relaxed"
...
This reverts commit e7117ea9df
.
2018-03-25 19:41:43 +02:00