Commit Graph

1044 Commits

Author SHA1 Message Date
Steffen Jaeckel
7597d20c78 use CROSS_COMPILE instead of PREFIX to indicate toolchain prefix 2017-06-20 15:16:11 +02:00
Steffen Jaeckel
b16066cbfc Add possibility to change install options
This closes #231
2017-06-20 15:16:11 +02:00
Steffen Jaeckel
66527b3e5e include "tomcrypt.h", not <tomcrypt.h>
we want to include the local version of the header, not the system-version
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
Karel Miko
2fd5808897 timing - silence valgrind warning (memleak) 2017-06-20 01:33:23 +02:00
Karel Miko
e5f25b6553 tests+timing - silence valgrind warning (memleak) 2017-06-19 20:34:08 +02:00
Karel Miko
03437a1bdd timing - silence valgrind warning 2017-06-19 18:51:04 +02:00
Karel Miko
8dec4d9ac4 prng_test - silence valgrind warning 2017-06-19 12:28:22 +02:00
Steffen Jaeckel
cbc4260314 Merge pull request #229 from libtom/cleanup/1
First general clean-up
2017-06-15 10:31:14 +02:00
Steffen Jaeckel
f2076f0700 use zeromem() where appropriate 2017-06-15 01:07:44 +02:00
Steffen Jaeckel
258de3cecc use ltc_mp_digit instead of unsigned long 2017-06-15 01:07:44 +02:00
Steffen Jaeckel
d6e2a585d0 sync doc from ltc_math_descriptor 2017-06-15 01:07:44 +02:00
Steffen Jaeckel
98b500e873 update crypt_build_settings et al. 2017-06-15 01:07:44 +02:00
Steffen Jaeckel
0cf7c49045 sync ltc_math_descriptor from doc 2017-06-15 00:46:50 +02:00
Steffen Jaeckel
a0e5c2e4ff add some makefile docs 2017-06-15 00:46:50 +02:00
Steffen Jaeckel
3995f971d7 make sure to use makefile.shared on Mac 2017-06-15 00:46:50 +02:00
Steffen Jaeckel
048cbc55b0 disable yet another warning 2017-06-15 00:46:50 +02:00
Karel Miko
2cd69fb541 improved helper.pl (check mandatory comments - not included in "--check-all" yet) 2017-06-14 17:16:26 +02:00
Steffen Jaeckel
23d5a02ecd Merge pull request #217 from libtom/scan-build
Travis-CI: clang static analyzer
2017-06-14 09:19:19 +02:00
Steffen Jaeckel
31ddf7c894 ...
https://www.youtube.com/watch?v=6bbIBs0P2t0
2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ac41d07247 try libtommath from ubuntu 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ea08fbb777 use libtommath from debian sid 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ba94b536be this is a horrible PR 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
1ee2662ab5 only run scan_build.sh once 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
52672bc358 m( 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
9baba0a83a fix usage of makefile.unix 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ebfd164246 alright, let's also use ltm from packagecloud 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
3bb9193d6f alright, let's try if upgrading to trusty helps... 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
75e00e097c well, then install a new clang version and see... 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
ff2de0b07a looks like precise doesn't have scan-build under that name
...but we should be able to find it somewhere in /usr/bin/
2017-06-13 18:41:09 +02:00
Steffen Jaeckel
742b4cee78 add clang scan-build 2017-06-13 18:41:09 +02:00
Steffen Jaeckel
bda493d770 Merge pull request #226 from fperrad/20170609_lint
some linting

[skip ci]
2017-06-13 12:17:16 +02:00
Steffen Jaeckel
caa05540b7 Merge pull request #172 from libtom/test_tfm
Run tests for tomsfastmath

[skip ci]
2017-06-12 23:08:10 +02:00
Francois Perrad
0bc0d55245 refactor REGISTER_* 2017-06-12 20:07:23 +02:00
Francois Perrad
ec51f880b5 Right hand side of assignment needs parenthesis 2017-06-12 20:07:23 +02:00
Francois Perrad
f40bda7cb3 fix indentation 2017-06-12 20:07:23 +02:00
Steffen Jaeckel
f45f2f4faf only create coverage for ltm build 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
a9838f7745 fix linking to tomsfastmath & clean-up 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
104a451def use packagecloud repo to install tfm 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
e2af986085 make output verbose again 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
fec05471ae the latest tfm version has fp_rand() available, so we can test this now 2017-06-12 18:45:24 +02:00
Steffen Jaeckel
a4671110d5 Merge pull request #198 from libtom/test/pthread
Travis-CI: a new build with -DLTC_PTHREAD

[skip ci]
2017-06-12 18:44:01 +02:00
Steffen Jaeckel
5de7e58e84 disable yet another clang warning 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
73934ad2fd add ld option -pthread when LTC_PTHREAD is enabled 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
48e4ec07be use LTC_ARGCHK() for all mutex operations 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
3b4e5df858 create separate no_prng instances
now they shouldn't collide anymore and can always be unregistered
2017-06-12 17:19:43 +02:00
Steffen Jaeckel
42a82ce3ed fix valgrind errors
Uninitialized key caused the following error:

Conditional jump or move depends on uninitialised value(s)
   at ...: __memcmp_sse4_1 (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
   ...
2017-06-12 17:19:43 +02:00
Steffen Jaeckel
a06cba4cb5 fix tests when compiled for pthread 2017-06-12 17:19:43 +02:00
Steffen Jaeckel
b38cf104f0 move prng-tests away from cipher_hash_test() 2017-06-12 17:19:43 +02:00