Commit Graph

76 Commits

Author SHA1 Message Date
Steffen Jaeckel f122e9b887 Merge pull request #329 from libtom/pr/sha3-blocksize
Correct SHA3 block sizes
(cherry picked from commit 64d028832b36559af753f8c341c53720e5b33aba)
2017-12-05 17:43:46 +01:00
Karel Miko 3b663a199f fix char* vs. const char* (tests related part) 2017-09-18 09:24:19 +02:00
Francois Perrad 37de73db01 add static _chc_process like in its prototype 2017-07-11 15:29:45 +02:00
Francois Perrad 53c62b3670 remove redundant prototypes
already declared in src/headers/tomcrypt_hash.h
2017-07-11 15:29:45 +02:00
Steffen Jaeckel ac6fb72ef1 fix some doxygen headers 2017-07-05 14:27:05 +02:00
Steffen Jaeckel f5b8cc9dae this should really implement a patch for the illegal access 2017-06-27 12:35:39 +02:00
Steffen Jaeckel 1a3880fda5 Revert "re-factor size checks in blake2 implementations"
This reverts commit af38b1830e.
2017-06-27 12:33:40 +02:00
Steffen Jaeckel af38b1830e re-factor size checks in blake2 implementations 2017-06-26 14:02:52 +02:00
Steffen Jaeckel 4cd1355b8f more clean-up of headers/footers 2017-06-20 15:16:11 +02:00
Steffen Jaeckel fe19dad623 replace SVN tags 2017-06-20 15:16:11 +02:00
Steffen Jaeckel fb35d5be54 more clean-up of headers 2017-06-20 15:16:11 +02:00
Steffen Jaeckel 4dc211e19d clean-up headers 2017-06-20 15:16:11 +02:00
Kelvin Sherlock a8d81a7214 fix sha3 test numbers 2017-05-21 15:32:16 -04:00
Kelvin Sherlock 30f8aaad8c replace XMEMCMP with compare_testvector, other consistency cleanup in testing code. 2017-05-14 22:17:59 -04:00
Steffen Jaeckel 31dcb9ff2a only set outlen on success 2017-05-03 18:10:45 +02:00
Karel Miko 4e66160ac2 one more readable for loop 2017-05-03 17:01:18 +02:00
Karel Miko f831e27702 more readable for loops 2017-05-03 12:56:25 +02:00
Karel Miko a1615daa3c shake be fix (hopefully final) 2017-05-03 12:56:25 +02:00
Karel Miko 961b6109d5 cosmetics 2017-05-03 12:56:25 +02:00
Karel Miko da8501f55a sha3_shake_done another be fix 2017-05-03 12:56:25 +02:00
Karel Miko c3f2e4530a declaration of ‘i’ shadows a previous local (better) 2017-05-03 12:56:25 +02:00
Karel Miko df4e47978e declaration of ‘i’ shadows a previous local 2017-05-03 12:56:25 +02:00
Karel Miko e5c0e7ffd3 SHAKE (SHA3 related) big endian fix 2017-05-03 12:56:25 +02:00
Francois Perrad a52b586ed2 Unusual use of a Boolean expression 2017-05-01 14:51:35 +02:00
Steffen Jaeckel 2858373e2e clean stack properly 2017-05-01 14:12:47 +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 68296e0608 blake2s hash 2017-04-07 20:47:44 -04:00