Commit Graph

1080 Commits

Author SHA1 Message Date
Steffen Jaeckel
7ac857686d add git version as compile flag 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
7898864b24 use glibtool on Macs 2017-05-11 23:04:37 +02:00
Steffen Jaeckel
d21d01bcb5 consolidate makefiles a bit 2017-05-11 23:04:37 +02:00
karel-m
c2bb38555e Merge pull request #218 from libtom/pr/fix-clang-static-analyzer-warnings
Clang static analyzer warnings/errors - related to #217
2017-05-11 22:55:39 +02:00
Karel Miko
43e46a2efc fix clang static analyzer warnings/errors - see #217 2017-05-11 20:37:06 +02:00
karel-m
08cc78007b Merge pull request #211 from libtom/pr/win32-rng_nix
Windows: fix various compiler warnings
2017-05-11 18:10:08 +02:00
Karel Miko
786853cb5c move #if defined(LTC_BASE64) 2017-05-11 17:42:43 +02:00
Karel Miko
ef6223f013 fix misleading-indentation warnings (mingw + gcc 7.1 + -Wall -Wextra) 2017-05-11 17:42:43 +02:00
Karel Miko
9d2b352867 fix ulong64 related format errors 2017-05-11 17:42:43 +02:00
Karel Miko
af4f6b374d better warning fix in der_tests 2017-05-11 17:42:43 +02:00
Karel Miko
9ba9677d94 x86_prof - spd1, spd2, avg are now ulong64 2017-05-11 17:42:43 +02:00
Karel Miko
a69e55ba54 tuning win warnings fixes 2017-05-11 17:42:43 +02:00
Karel Miko
e2cf11da25 fix windows warnings - #212 and #213 2017-05-11 17:42:43 +02:00
Karel Miko
6d70827d1f Windows: fix warning: 'rng_nix' defined but not used 2017-05-11 17:42:43 +02:00
karel-m
55a7eead7f Merge pull request #215 from libtom/pr/lint-20170509
Another fixes related to  #199
2017-05-10 19:36:20 +02:00
Karel Miko
91b61630be improved #ifdefs - related to: 'num' not referenced 2017-05-09 21:43:28 +02:00
Karel Miko
04262d3aec fix: local struct member 'poly_div' not referenced 2017-05-09 21:31:12 +02:00
Karel Miko
f6ea738fee fix: Loss of sign (initialization) (int to unsigned long long) 2017-05-09 21:30:44 +02:00
karel-m
b439f83018 Merge pull request #210 from libtom/pr/aix-fix
IBM xlc compiler related fixes
2017-05-05 19:58:14 +02:00
Karel Miko
421266cf5f fix void *orig 2017-05-05 19:57:20 +02:00
Karel Miko
adf0ad95c9 IBM xlc compiler does not like "static inline" (related to #209) 2017-05-05 19:57:20 +02:00
Steffen Jaeckel
87be6d3d70 Merge pull request #203 from libtom/improve/crypt
Improve hashsum
2017-05-04 16:03:57 +02:00
Steffen Jaeckel
85c2186ae6 better output on stderr 2017-05-03 18:10:46 +02:00
Steffen Jaeckel
e9923129c8 fix LTC_EASY compilation 2017-05-03 18:10:46 +02:00
Steffen Jaeckel
b472ef31a2 looks like the previous output was not really shaXsum compatible... 2017-05-03 18:10:46 +02:00
Steffen Jaeckel
28f8a85246 update coverage.sh
* hashsum requires now a '-a' option flag for the algorithm
* '-h' is required to output the list of algorithms to stdout
* the algorithms are printed in columns, so we have to sort differently
2017-05-03 18:10:46 +02:00
Steffen Jaeckel
9893566ae9 add shasum compatibility for '-a' option 2017-05-03 18:10:45 +02:00
Steffen Jaeckel
ea7115dc65 implement file checking 2017-05-03 18:10:45 +02:00
Steffen Jaeckel
31dcb9ff2a only set outlen on success 2017-05-03 18:10:45 +02:00
Steffen Jaeckel
d02531d4d2 improve hashsum a bit 2017-05-03 18:10:45 +02:00
karel-m
1712c0eae1 Merge pull request #205 from libtom/pr/shake-be-fix
SHAKE (SHA3 related) big endian fix
2017-05-03 17:06:27 +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
Steffen Jaeckel
67ca1c0b9a fix for compilation with LTC_DEBUG 2017-05-03 12:37:24 +02:00
karel-m
d936273711 Merge pull request #207 from libtom/feature/pkcs1ssl
PKCS #1 v1.5 padding - No ASN.1
2017-05-02 09:17:16 +02:00
Karel Miko
f00f857224 tests for rsa_sign|verify with LTC_PKCS_1_V1_5_NA1 2017-05-01 23:17:32 +02:00
Steffen Jaeckel
aa4bae5ae9 add option to do PKCS#1 v1.5 EMSA without ASN.1 around hash
Somehow someone forgot to add the OID in the signature field
of a SERVER_KEY_EXCHANGE message in early versions of the SSL protocol.
Therefore provide an option to be able to sign/verify a message
in that format.
2017-05-01 23:15:11 +02:00
Steffen Jaeckel
25878ed632 Merge pull request #202 from fperrad/20170430_lint
more linting
2017-05-01 22:07:51 +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
3e2ac192a1 Merge pull request #200 from fperrad/20170429_lint
LTC_PTHREAD: some linting
2017-05-01 14:08:59 +02:00
karel-m
91c0071b6b Merge pull request #201 from libtom/pr/lint-20170429
lint fixes discussed in #199
2017-04-30 09:43:47 +02:00
Karel Miko
87142382da lint fixes discussed in #199 2017-04-29 19:59:03 +02:00
Francois Perrad
7e72dafe5f remove useless semicolon
the macro LTC_MUTEX_TYPE already contains a semicolon
see https://github.com/libtom/libtomcrypt/blob/develop/src/headers/tomcrypt_custom.h#L552
2017-04-29 17:52:27 +02:00