Commit Graph

279 Commits

Author SHA1 Message Date
Steffen Jaeckel
a0d0a17acf update gitignore 2014-07-14 15:35:04 +02:00
Steffen Jaeckel
9e2e7fdfd4 tests: bring back mult and sqr timing 2014-07-12 17:31:03 +02:00
Steffen Jaeckel
3c6a80525f current icc defines the same macros and functionset as gcc
as a result the special detection of icc has been removed
2014-07-12 17:28:54 +02:00
Steffen Jaeckel
6dfb080810 spit errors if 32- AND 64-bit wordsize is defined 2014-07-12 17:26:30 +02:00
Steffen Jaeckel
1f96647d70 update icc makefiles to current compiler versions
As the current icc can act as a gcc drop-in, I took over all compile flags
from the standard makefile.

The "-x?" options have been deprecated, so they're updated.

The "-xP" has been removed, since it makes no sense in my eyes to define
the optimization for a specific architecture in the makefile.
2014-07-12 17:25:12 +02:00
Steffen Jaeckel
098bc9f06d tests: use the gcc rdtsc() implementation also for intel cc 2014-07-12 16:46:36 +02:00
Steffen Jaeckel
8c488289f0 improve some error and informational output 2014-07-12 16:44:28 +02:00
Steffen Jaeckel
79bc7ef2e5 testprof: add missing object files to makefiles 2014-07-12 16:19:08 +02:00
Steffen Jaeckel
6ac2d6141d update clean target of makefile and testprof/makefile 2014-07-12 16:18:29 +02:00
Steffen Jaeckel
98893c077b fix possible free of not yet allocated key parameters
There would have been a call to mp_clear_multi() of all the key parameters
that are not yet allocated, in the case where the calculations of p, q,
tmp1 or tmp2 created an error.

This also includes a proposed improvement from the OLPC project to free
elements in the reverse order as they were allocated.
2014-07-11 16:44:43 +02:00
Steffen Jaeckel
30278d1121 fix possible missing free of rnd and rndi
There could have been a 'goto error', which misses the free of rnd and
rndi even if they were initialized.
This could happen in cases where a private key operation was done and
afterwards one of the operations like reading back or conversion, would
have failed (which is likely not to happen)

This also includes a proposed improvement from the OLPC project to free
elements in the reverse order as they were allocated.
2014-06-15 11:51:38 +02:00
Steffen Jaeckel
48f521688f ltc_init_multi: fix missing call to va_end() 2014-05-25 00:35:03 +02:00
Steffen Jaeckel
8652f33f35 pmac_init: prevent possible out of bounds access of polys[] 2014-05-25 00:35:03 +02:00
Steffen Jaeckel
ea9b2a858a der_encode_utf8_string: calm coverity 2014-05-25 00:35:03 +02:00
Steffen Jaeckel
4c8949e449 aes: calm coverity 2014-05-25 00:35:03 +02:00
Steffen Jaeckel
50d10790e3 trim trailing spaces 2014-05-25 00:35:03 +02:00
Steffen Jaeckel
f9984d1e24 add coverity badge 2014-05-25 00:35:03 +02:00
Steffen Jaeckel
389bbf0d05 update gitignore 2014-05-25 00:35:03 +02:00
Steffen Jaeckel
2de05c4d3e add coverity build and upload script 2014-05-25 00:35:03 +02:00
Steffen Jaeckel
681e5fcdfc Merge branch 'fix/dsa' into develop 2014-05-11 18:10:03 +02:00
Steffen Jaeckel
03385a4419 rand_bn: fix call to zeromem() 2014-05-09 23:29:11 +02:00
Steffen Jaeckel
ca42862d52 math descriptor: add parameter "b" to isprime() 2014-05-09 23:07:41 +02:00
Steffen Jaeckel
5d2fe0da8c trim trailing spaces 2014-05-09 23:07:41 +02:00
Steffen Jaeckel
dc31ca545f dsa_make_key: fix free of wrong pointer resulting in double-free 2014-05-09 23:07:40 +02:00
Steffen Jaeckel
198ad7ef50 update makefiles 2014-05-09 23:07:33 +02:00
Steffen Jaeckel
c9f93f6571 dsa_make_key: remove surplus semicolon 2014-05-09 22:43:29 +02:00
Karel Miko
e9a0a27917 DSA params+key generation according FIPS-186-4 (part 1) 2014-05-09 17:58:50 +02:00
Karel Miko
77b4b16030 dsa_make_key minor isuue 2014-05-09 17:58:50 +02:00
Karel Miko
a43bb0fda6 dsa_encrypt_key small correction 2014-05-09 17:58:50 +02:00
Karel Miko
655336f0cb tuning RSA interoperability + small fixes 2014-05-09 17:58:50 +02:00
Karel Miko
67a547086c DSA sign improvement 2014-05-09 17:58:50 +02:00
Karel Miko
3908c70d68 tuning DSA key generation 2014-05-09 17:58:50 +02:00
Karel Miko
e271b9fdbe ECC key pair generation according to FIPS-186-4 2014-05-09 17:58:39 +02:00
Karel Miko
e600ab9d35 dsa_sign_hash: testing k < q 2014-05-09 16:26:24 +02:00
Karel Miko
72022edb8d dsa_make_key: improved testing x < q 2014-05-09 16:26:24 +02:00
Steffen Jaeckel
24d03dd823 testme.sh: add test runs without "timing resistance" 2014-05-08 15:11:38 +02:00
Steffen Jaeckel
e723d1289f travis.yml: add test runs without "timing resistance" 2014-05-08 15:10:09 +02:00
Steffen Jaeckel
3b97738ee9 travis.yml: rewrite to be better human-readable; trim trailing spaces 2014-05-08 15:08:31 +02:00
Steffen Jaeckel
c63c0433c1 enable timing resistant ECC calculations by default 2014-05-08 15:06:42 +02:00
Steffen Jaeckel
26743d0749 ecc_mulmod_timing: fix compiler warnings 2014-05-08 13:06:24 +02:00
Steffen Jaeckel
5707e319c2 Merge branch 'feature/coverage' into develop 2014-05-08 12:57:31 +02:00
Steffen Jaeckel
3dcf2df988 coverage: exclude some folders 2014-05-07 17:36:50 +02:00
Steffen Jaeckel
a59e5548ec tests: unregister ciphers etc. at exit, call error_to_string() 2014-05-07 17:36:09 +02:00
Steffen Jaeckel
2b04f3d8ed Readme: display the coverage status
[skip ci]
2014-05-07 17:03:12 +02:00
Steffen Jaeckel
1a44e2d22d send coverage results to coveralls 2014-05-07 16:16:08 +02:00
Steffen Jaeckel
f9a1041222 printinfo: display version of correct compiler if CC does not point to gcc
[skip ci]
2014-05-07 16:15:50 +02:00
Steffen Jaeckel
be5418368c Merge branch 'fix/anubis' into develop 2014-05-01 23:02:40 +02:00
Steffen Jaeckel
bbf278c779 anubis: fix left-shift
this has been brought up in #26
2014-05-01 23:02:21 +02:00
Steffen Jaeckel
ca1a1d18ab anubis: trim trailing spaces 2014-05-01 23:02:21 +02:00
Steffen Jaeckel
d2318d6c24 travis.yml: fix typo 2014-05-01 23:02:05 +02:00