Commit Graph

1445 Commits

Author SHA1 Message Date
Steffen Jaeckel
3249dcb963 allow TAB_SIZE to be defined at compile-time 2018-04-06 10:27:12 +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
Steffen Jaeckel
e08fd8630f Merge branch 'release/1.18.1' 2018-01-22 11:02:57 +01:00
Steffen Jaeckel
60df7d360a Fix 'fixme check'
The error produced by `make zipup` - but ignored by make - was:

```
...
fixme check
makefile_include.mk:448: recipe for target 'zipup' failed
make: [zipup] Error 123 (ignored)
mkdir -p libtomcrypt-...
```
2018-01-22 11:01:34 +01:00
Steffen Jaeckel
c7ff3bb86e Bump revision 2018-01-22 10:45:28 +01:00
Steffen Jaeckel
08e0424d52 Update changes 2018-01-22 10:06:54 +01:00
Steffen Jaeckel
4800543664 add -p switch to install commands in GNU makefiles
This fixes #340

[skip ci]

(cherry picked from commit fc6eb3ecf0)
2018-01-22 10:05:03 +01:00
Tetsuya Yoshizaki
144839a8db ltc: ctr: update pt and ct after acceleration
Problem occurs in the condition of the following case:

1st decryption:
Decrypt a ciphertext whose length is a multiple of the block size (16B)
(len = n * block_size)
2nd decryption:
Decrypt the continuing ciphertext whose length is not a multiple of the
block size
(len = m * block_size + l)

In this case accel_ctr_encrypt() is firstly used at the 2nd decryption.
If pt and ct are not updated, the top (l = len % block_size) bytes of
decryption result are sometimes destroyed.

From: Tetsuya Yoshizaki <yoshizaki.tetsuya@socionext.com>
Signed-off-by: Tetsuya Yoshizaki <yoshizaki.tetsuya@socionext.com>
Signed-off-by: Victor Chong <victor.chong@linaro.org>
(cherry picked from commit d1d3ae2d1e)
2018-01-19 10:01:03 +01:00
Steffen Jaeckel
5501572b35 Merge pull request #339 from libtom/minor_improvements
Minor improvements
(cherry picked from commit df8ed5c76b)
2018-01-15 00:39:26 +01:00
Steffen Jaeckel
f4d2b37cf4 Merge pull request #337 from libtom/fix/prng_pthread
prevent undefined behavior with LTC_PTHREAD
(cherry picked from commit 45db2a9d9a)
2017-12-17 01:20:32 +01:00
Karel Miko
dd868600b3 fix staticfunc_name detection
(cherry picked from commit 6d71d657ef)
2017-12-17 01:05:53 +01:00
Steffen Jaeckel
10ad3b5b41 fixup type of type in ltc_asn1_list doc
(cherry picked from commit 5e3e7e5304)
2017-12-17 01:05:43 +01:00
Steffen Jaeckel
cec171c17e Update changes 2017-12-05 18:41:11 +01:00
Steffen Jaeckel
c7bdb247bf Update makefiles 2017-12-05 18:40:57 +01:00
Steffen Jaeckel
cfaf964284 Bump version 2017-12-05 18:40:49 +01:00
Steffen Jaeckel
ce93eaa577 add fixme-check to zipup make-target
(cherry picked from commit 6c83a2f363)
2017-12-05 18:39:46 +01:00
Steffen Jaeckel
f9e90f5b1c revert the change of MAXBLOCKSIZE
Currently this only plays a role in HMAC which still uses dynamic
allocation depending on the real blocksize defined by the hash
algorithm.
2017-12-05 17:46:08 +01:00
Steffen Jaeckel
f122e9b887 Merge pull request #329 from libtom/pr/sha3-blocksize
Correct SHA3 block sizes
(cherry picked from commit 64d028832b)
2017-12-05 17:43:46 +01:00
Steffen Jaeckel
13d91e7c8b Merge pull request #327 from libtom/fix/ccm_segfault
Fix ccm_memory() cleaning user-supplied key
(cherry picked from commit 85ac227862)
2017-12-05 09:23:06 +01:00
Steffen Jaeckel
368dc60ff3 Merge pull request #326 from libtom/pr/ccm_process
fixes #323 ccm_process fails to process input buffer longer than 256
(cherry picked from commit 7c4c61d7ef)
2017-12-05 09:21:52 +01:00
Karel Miko
153b897984 helper.pl - detect sizeof without brackets
(cherry picked from commit b7e35e9f57)
2017-12-05 09:21:27 +01:00
Karel Miko
f10c2055dc helper.pl - improved detection of static functions without _
(cherry picked from commit 5c34fb2bad)
2017-12-05 09:21:17 +01:00
Karel Miko
a674de7408 Merge branch 'diamondo25-patch-2' into develop
Fix not defined warnings (-Wundef)

(cherry picked from commit 617698e544)
2017-12-05 09:20:41 +01:00
karel-m
7f6af93798 Merge pull request #320 from diamondo25/patch-1
Remove duplicate prototypes
(cherry picked from commit b4eae5231d)
2017-12-05 09:20:15 +01:00
karel-m
00ca140c57 Merge pull request #316 from libtom/pr/register-all
register_all_* should return CRYPT_OK on success
(cherry picked from commit e4763d940a)
2017-12-05 09:19:40 +01:00
Steffen Jaeckel
521d0737ea fix typo
(cherry picked from commit 442bb90a51)
2017-12-05 09:17:30 +01:00
Steffen Jaeckel
035e958edd Merge pull request #310 from libtom/pr/fix-changes
proper 1.18.0 date in changes
(cherry picked from commit a6c8be292e)
2017-12-05 09:16:30 +01:00
Steffen Jaeckel
0676c9aec7 Merge branch 'release/1.18.0' 2017-10-10 15:51:36 +02:00
Steffen Jaeckel
c165f3a23a Update makefiles 2017-10-10 15:48:35 +02:00
Steffen Jaeckel
a7d0008f52 bump version 2017-10-10 15:48:35 +02:00
Steffen Jaeckel
b3c9f586dc also patch doc/Doxyfile automatically 2017-10-10 15:48:35 +02:00
Steffen Jaeckel
62143d96bd fix doxygen warning 2017-10-10 15:43:26 +02:00
Steffen Jaeckel
58b5e5c7ca improve README
[skip ci]
2017-10-10 15:19:23 +02:00
Steffen Jaeckel
ea5cb8bff6 make it possible to use LTC_NOTHING with a math provider 2017-10-10 15:19:01 +02:00
Steffen Jaeckel
233ef83530 suppress some warnings when compiling with mingw-gcc
[skip ci]
2017-10-10 14:29:34 +02:00
Steffen Jaeckel
e40482f82a review README.md and changes 2017-10-09 18:26:38 +02:00
Steffen Jaeckel
dd0bbdeac0 increase default value of Miller-Rabin rounds to 40 2017-10-09 17:58:47 +02:00
Steffen Jaeckel
4503ddcfb0 improve wording
[skip ci]
2017-10-08 01:05:12 +02:00
Steffen Jaeckel
6493f0fe94 Merge pull request #308 from libtom/pr/avoid-dulplicit-manes
Aviod duplicit rc4.c sober128.c
2017-10-08 00:57:47 +02:00
Steffen Jaeckel
bab6af73e5 fix check_source() 2017-10-07 18:09:13 +02:00
Karel Miko
2041f9528e update makefiles 2017-10-07 11:35:27 +02:00
Karel Miko
959121253d rename duplicit rc4.c sober128.c 2017-10-07 11:35:10 +02:00