Commit Graph

2007 Commits

Author SHA1 Message Date
Steffen Jaeckel
fcdb14ede1
Merge pull request #500 from libtom/fix-ssh-api
Fix SSH API
2019-10-16 23:16:46 +02:00
Steffen Jaeckel
9b6bf32f88 use unsigned long for the length of a string 2019-10-13 14:05:41 +02:00
Steffen Jaeckel
27ec31d4f3 improve SSH decoding & doc 2019-10-13 14:05:41 +02:00
Steffen Jaeckel
c13dc105f3 verify pointer to be non-NULL before dereferencing 2019-10-13 14:05:41 +02:00
Steffen Jaeckel
58254f76e8 fix SSH string implementation 2019-10-13 14:05:41 +02:00
Steffen Jaeckel
f89909bd6c use macros in ssh_test() 2019-10-13 14:05:41 +02:00
Steffen Jaeckel
8b5ce8ba7e add ENSURE() macro 2019-10-13 14:05:41 +02:00
Steffen Jaeckel
26dc2766bd move LTC_SSHDATA_EOL to the beginning of the enum
If there's an EOL at the end of the enum I'm tempted to add new entries
before that one and then this will break the ABI which I don't like.
2019-10-13 14:05:41 +02:00
Steffen Jaeckel
5ded083bb0
Merge pull request #497 from libtom/bcrypt
Bcrypt
2019-10-13 14:05:13 +02:00
Steffen Jaeckel
36260aea85 Update makefiles 2019-10-12 14:31:38 +02:00
Steffen Jaeckel
d4233e9156 rename arguments 2019-10-12 14:31:38 +02:00
Steffen Jaeckel
e9ff57d5d7 fix varargs error
When compiling with "-g -O0" valgrind complained about "Conditional jump
or move depends on uninitialised value(s)", c.f. e.g. [1]

[1] https://travis-ci.org/libtom/libtomcrypt/jobs/588690930
2019-10-12 14:31:38 +02:00
Steffen Jaeckel
9423f3b26d add bcrypt 2019-10-12 14:31:38 +02:00
Steffen Jaeckel
5e30d3512f add required private API 2019-10-12 13:13:49 +02:00
Steffen Jaeckel
e69579cac2 start re-factor 2019-10-12 13:13:49 +02:00
Steffen Jaeckel
238eb7339a
Merge pull request #504 from libtom/minor-fixes
Minor fixes and improvements
2019-10-12 13:11:20 +02:00
Steffen Jaeckel
c0d1cbdf1d fix #469
[skip ci]
2019-10-11 14:32:22 +02:00
Steffen Jaeckel
4fd4e86ce0 re-order examples 2019-10-11 14:32:22 +02:00
Steffen Jaeckel
d2027d60eb add testcase for issue #507 2019-10-11 14:32:22 +02:00
Steffen Jaeckel
197621d867 re-order vars of travis.yml
the travis UI shows them right besides the build and the name says more
than the script on what is done
2019-10-11 14:32:22 +02:00
Steffen Jaeckel
8d22018065 don't produce any console-output on make V=0 2019-10-11 14:32:22 +02:00
Steffen Jaeckel
5e41924d85 use mp_init_copy() instead of init()+copy() 2019-10-11 14:32:22 +02:00
Steffen Jaeckel
34d865488b update LTC_DEPRECATED macro from ltm 2019-10-11 14:32:22 +02:00
Steffen Jaeckel
3e11e86f3e further updated ltm API 2019-10-11 14:32:22 +02:00
Steffen Jaeckel
c113c03c13 run {A,UB}SAN again with GMP
Fixup of 798d7dc61f
2019-10-11 14:32:22 +02:00
Steffen Jaeckel
9c67f8ac3c Fix includes
Headers which are included with '< >' can only be found if the folder where
the files are located is given as include path.
To be able to install the files to a separate folder, include them instead
with '" "'.
2019-10-11 14:32:22 +02:00
Steffen Jaeckel
0ca8a31cd3 clean-up define 2019-10-11 14:32:22 +02:00
Steffen Jaeckel
f9ab401098 check ranges of more ciphers
Inspired by #493 of @jbech-linaro I reviewed all blockciphers
for similar patterns.

Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
2019-10-11 14:32:22 +02:00
Steffen Jaeckel
659540393e
Merge pull request #506 from libtom/add-tea
Add TEA blockcipher
2019-10-11 14:30:21 +02:00
Steffen Jaeckel
79f812c9f4 update TV's 2019-10-11 14:20:43 +02:00
Steffen Jaeckel
06a58ab519 update doc 2019-10-11 14:20:43 +02:00
Steffen Jaeckel
74197c81c5 Update makefiles 2019-10-11 14:20:43 +02:00
Steffen Jaeckel
0f2c415e7a add TEA 2019-10-11 14:20:43 +02:00
Steffen Jaeckel
8e044b8bf6
Merge pull request #509 from armcc/improve-des-tests
fix and cleanup des and 3des test cases
2019-10-11 09:39:13 +02:00
Andre McCurdy
d85045e18a fix and cleanup des and 3des test cases
- Drop unused 'num' field from struct des_test_case.
 - Fix the order of arguments passed to compare_testvector() (actual
   and expected buffers were swapped, leading to misleading error
   messages for failing tests).
 - Enable all DES test vectors by default and use them for both
   encrypt and decrypt. That allows the struct des_test_case 'mode'
   field (which was previously incorrect for the LTC_TEST_EXT tests)
   to be dropped.
 - Run the "encrypt / decrypt all zero's" tests once, instead of
   running repeatedly from within the test vectors loop.
 - Add minimal set of 128bit key 3DES test vectors.
 - Try to more closely align the des_test() and des3_test() functions
   (common flow, common variable names, etc).
 - Minor indent fixes.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
2019-10-10 00:58:55 -07:00
Steffen Jaeckel
64d1153e5a
Merge pull request #508 from werew/develop
Fixes #507
2019-10-08 09:07:43 +02:00
werew
25c26a3b7a Fixes #507 2019-10-03 19:57:10 +02:00
Steffen Jaeckel
734ba7ec50
Merge pull request #499 from libtom/minor-improvements
Minor improvements
2019-09-30 15:00:05 +02:00
Steffen Jaeckel
da9f55231f don't exclude other settings when giving make options
Now `make LTC_DEBUG=1` builds a full-speed library but with debug infos.

One has to do `make LTC_DEBUG=1 IGNORE_SPEED=1` now to have the same
results as before.

This was done since
1. it makes sense to enable optimization also when adding debug infos
2. clang+valgrind creates errors if there's no optimization enabled
   (c.f. #497)
2019-09-30 11:55:51 +02:00
Steffen Jaeckel
d4b8d9b507 fix scan-build error 2019-09-30 11:55:51 +02:00
Steffen Jaeckel
9416a88468 install libtool-bin 2019-09-30 11:55:49 +02:00
Steffen Jaeckel
e4dd30af54 run tests on bionic 2019-09-30 11:54:07 +02:00
Steffen Jaeckel
4458e91151 be more strict when searching scan-build-*
clang-9 brings `scan-build-py-9` which matched the old pattern
2019-09-30 11:54:03 +02:00
Steffen Jaeckel
62bbdecaff use rotate intrinsics if available 2019-09-30 11:35:49 +02:00
Steffen Jaeckel
33dabf9693 only run the standard build in travis PR's
all the other builds are only get built, the testrun is skipped
2019-09-30 11:35:49 +02:00
Steffen Jaeckel
e2f5d17dcc test default-build as first 2019-09-30 09:59:59 +02:00
Steffen Jaeckel
6f3a7c9e3e improve GNU Makefiles a bit
* unignore type-limits warning
* add the possibility to do `make V=0 >/dev/null` and still get the
  CFLAGS and LDFLAGS that are used while compilation
2019-09-30 09:59:59 +02:00
Steffen Jaeckel
1e67d81f7b
Merge pull request #498 from libtom/appveyor
Add AppVeyor MSVC builds
2019-09-29 17:33:24 +02:00
Steffen Jaeckel
eaf2c7b6b9 fix build for msvc 2019-09-24 14:09:35 +02:00
Steffen Jaeckel
d25c52b546 add AppVeyor to README 2019-09-24 14:09:35 +02:00