Commit Graph

383 Commits

Author SHA1 Message Date
Thom Wiggers
5b0174d282 Avoid clang tidy segfault (#106)
* Gracefully degrade if clang-tidy segfaults

* Typo on returncode
2019-04-11 13:22:50 -04:00
Thom Wiggers
b2ef82e2da
Remove duplicate namespace_prefix 2019-04-11 15:11:18 +02:00
Joost Rijneveld
26ffedc86b
SPHINCS: strictly check integer conversions 2019-04-11 11:14:49 +02:00
Joost Rijneveld
7dcedfc56c
Allow -fix-errors to fix linter errors 2019-04-11 10:10:05 +02:00
Joost Rijneveld
671a4e60aa
Mark 'common' dependencies in README as complete 2019-04-11 10:04:43 +02:00
Joost Rijneveld
e9d1829de7
Merge pull request #95 from PQClean/aes
Aes
2019-04-11 09:58:46 +02:00
Joost Rijneveld
a7c147f410
Include 'common' in name of common test binaries 2019-04-11 09:54:52 +02:00
Thom Wiggers
bb0afc9f37
Merge pull request #104 from PQClean/astyle-fix
test_format wasn't actually checking output of astyle
2019-04-11 08:57:09 +02:00
Douglas Stebila
cfc9705751 test_format wasn't actually checking output of astyle
It was only checking the return code, but astyle was always returning 0. 
Changed to parse the output and look for the string "Formatted"
2019-04-10 21:23:33 -04:00
Douglas Stebila
f388d6f93e
Selectively filter tests (#102)
Selectively filter tests
2019-04-10 19:27:25 -04:00
Douglas Stebila
42a5e0e4ad Use environment variables to selectively filter tests 2019-04-10 17:03:02 -04:00
Joost Rijneveld
69b74706c1
Fix SHA3 test 2019-04-10 17:54:52 +02:00
Joost Rijneveld
e766700a81
Add test_aes to make clean 2019-04-10 17:43:04 +02:00
Joost Rijneveld
5d600a2543
Split tests into primitives
This ensures separate errors for separate common files
2019-04-10 16:42:28 +02:00
Joost Rijneveld
f4607265c6
Remove unused imports 2019-04-10 16:37:59 +02:00
Joost Rijneveld
03eb577a40
Pass list instead of single command to subprocess 2019-04-10 16:37:02 +02:00
Joost Rijneveld
280bc60b1b
Use standard helper to skip Windows for /common 2019-04-10 16:34:44 +02:00
Peter Schwabe
28337843b9 Added python test running all unit tests of common crypto functions 2019-04-10 16:02:45 +02:00
Peter Schwabe
4970379baf Added simple test for AES 2019-04-10 13:24:42 +02:00
Joost Rijneveld
af508a9c1f
SPHINCS: remove stray Makefile variables 2019-04-10 10:07:44 +02:00
Joost Rijneveld
dc7cfa8d14
Merge pull request #90 from PQClean/sphincs-shake256-128f-simple
SPHINCS-SHAKE256-128f-simple
2019-04-09 18:49:05 +02:00
Joost Rijneveld
ba70da9189
Fix variable-length arrays using wrappers 2019-04-09 18:21:03 +02:00
Joost Rijneveld
e580dcb487
Remove stray include in api.h 2019-04-09 18:21:03 +02:00
Joost Rijneveld
6cb332cae5
Remove conditional preprocessor statements 2019-04-09 18:21:03 +02:00
Joost Rijneveld
80af118676
Prevent uninitialized variable warning 2019-04-09 18:21:03 +02:00
Joost Rijneveld
a300190d5b
Resolve type coercions 2019-04-09 18:21:00 +02:00
Joost Rijneveld
7540971a8b
Merge pull request #96 from PQClean/test_preprocessor
Test for preprocessor conditionals
2019-04-09 18:02:27 +02:00
Joost Rijneveld
a14dcefb32
Add SPHINCS-SHAKE256-128f-simple 2019-04-09 17:26:34 +02:00
Joost Rijneveld
56e8d17a7d
Move #if check from manual to automatic 2019-04-09 17:23:47 +02:00
Joost Rijneveld
dfe9508551
Remove preprocessor ignored codepath for Kyber 2019-04-09 17:23:31 +02:00
Joost Rijneveld
5853cb8e50
Test for preprocessor conditionals 2019-04-09 17:23:31 +02:00
Joost Rijneveld
8d1ed9afc0
Remove include from Kyber's api.h 2019-04-09 17:19:23 +02:00
Joost Rijneveld
9e5fd74823
Test for prohibited includes in api.h 2019-04-09 17:19:20 +02:00
Peter Schwabe
45a12595df Added const keyword to a few pointer arguments in AES 2019-04-09 15:41:44 +02:00
Douglas Stebila
27366d6559
Add FrodoKEM-976-SHAKE and FrodoKEM-1344-SHAKE (#83)
Add FrodoKEM-976-SHAKE and FrodoKEM-1344-SHAKE
2019-04-09 09:37:51 -04:00
Douglas Stebila
37ccc09168 Move length-secret-key 2019-04-09 09:11:16 -04:00
Peter Schwabe
40661601bd Eliminated unnecessary casts 2019-04-09 15:06:23 +02:00
Douglas Stebila
6fabab1fd9 Merge branch 'master' into more-frodo 2019-04-09 09:06:20 -04:00
Peter Schwabe
ed8a4ea2f4 Fixed wrong header name in aes.c 2019-04-09 14:57:52 +02:00
Peter Schwabe
93c24e34c6 Formatted AES code properly 2019-04-09 14:48:46 +02:00
Peter Schwabe
070db10cc1 Added (constant-time) AES implementation, based on BearSSL 2019-04-09 14:35:44 +02:00
Joost Rijneveld
4bf6810c9a
Explicitly disallow preprocessor #if 2019-04-09 11:17:54 +02:00
Thom Wiggers
0d24eb1f15
Merge pull request #92 from PQClean/move-secretkey-size-meta
Move secret-key length in META file
2019-04-08 11:42:29 +02:00
Joost Rijneveld
cffe944bbf
Check that implementations are uniquely named 2019-04-08 11:39:17 +02:00
Joost Rijneveld
fe010541ec
Move secret key length to implementation meta 2019-04-08 11:39:17 +02:00
Thom Wiggers
6257e9ea48
Merge pull request #91 from PQClean/detached-signatures
Test detached signatures
2019-04-08 11:37:36 +02:00
Joost Rijneveld
493d77d89b
Ensure tests do not break without schemes 2019-04-08 11:14:45 +02:00
Joost Rijneveld
e7602479f1
Remove round 1 Dilithium
This does not implement the detached signature API, and will
change significantly for NIST's 2nd round anyway.
2019-04-08 10:23:29 +02:00
Joost Rijneveld
87a3c6ab39
Add functest/testvectors for detached signatures 2019-04-08 10:23:24 +02:00
Douglas Stebila
e697ee7fdd Merge branch 'master' into more-frodo 2019-04-07 08:15:13 -04:00