dep-libtomcrypt/src
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
..
ciphers helper.pl - detect sizeof without brackets 2017-12-05 09:21:27 +01:00
encauth Merge pull request #327 from libtom/fix/ccm_segfault 2017-12-05 09:23:06 +01:00
hashes Merge pull request #329 from libtom/pr/sha3-blocksize 2017-12-05 17:43:46 +01:00
headers Merge pull request #339 from libtom/minor_improvements 2018-01-15 00:39:26 +01:00
mac IV is short for 'initialization vector' 2017-09-20 15:06:40 +02:00
math fix doxygen warnings (as mentioned in #228) 2017-08-09 09:44:12 +02:00
misc Merge branch 'diamondo25-patch-2' into develop 2017-12-05 09:20:41 +01:00
modes ltc: ctr: update pt and ct after acceleration 2018-01-19 10:01:03 +01:00
pk Merge pull request #339 from libtom/minor_improvements 2018-01-15 00:39:26 +01:00
prngs Merge pull request #337 from libtom/fix/prng_pthread 2017-12-17 01:20:32 +01:00
stream fix doxygen warning 2017-10-10 15:43:26 +02:00