998 Commits

Author SHA1 Message Date
Douglas Stebila
8d3fb6f2b8
Merge pull request #703 from baentsch/copy-pqclean-v3
Runtime detection in copy_from_pqclean
2020-04-07 09:41:07 -04:00
Michael Baentsch
29232021b7 copy-from-PQClean done - triggering full CI test 2020-04-07 08:30:43 +02:00
Michael Baentsch
2ab3e54b74 Fixes PR comment & exposes common Keccak for AVX2 2020-04-07 08:15:52 +02:00
Michael Baentsch
a59efcdf5a Merge branch 'master' of github.com:open-quantum-safe/liboqs into copy-pqclean-v3 2020-04-07 08:13:15 +02:00
Christian Paquin
cf917668b9
Fixes picnic keccak namespacing (#705)
* Added KeccakP1600times4_PermuteAll_24rounds to the picnic namespacing.

* Added more functions to Keccak namespacing in picnic.

* Added picnic macro include file.
2020-04-07 08:08:15 +02:00
Michael Baentsch
c847efab8f addresses issue #691 2020-04-06 14:51:54 +02:00
Douglas Stebila
c254fddf18
Update AES key schedule API to match PQClean (#701)
* Fix Falcon kat_sig template to match generated code

* Change OQS AES API to match PQClean's

https://github.com/PQClean/PQClean/pull/279

* Change callers to OQS AES API

* copy_from_pqclean commit db0d5800c5c8a32df63414297671cd418ddc3129

* Fix missing argument

* Fix memory leak
2020-04-04 17:10:12 +02:00
Michael Baentsch
6b4667d092
Add define indicating cpu_feature use (#696) 2020-04-01 14:29:31 -04:00
Michael Baentsch
9507608882
Optimized build refactoring. (#683) 2020-04-01 11:33:59 -04:00
Thom Wiggers
3d5eb05d53
Disable -Wtoo-strict-overflow (#694)
Closes #693
2020-04-01 10:20:02 -04:00
Vlad Gheorghiu
2f7b08b55d
fixing multiple defs linker errors (#692)
* fixing multiple defs linker errors

* moved cpu flags into a struct

* moved declarations in the header

* prettyprint

* doxygen
2020-04-01 10:09:41 -04:00
Nikita Karpey
e09e7199bd
Improved argument passing for cpu_features (#687) 2020-03-31 13:13:43 -04:00
Michael Baentsch
fd288398a0
Merge pull request #689 from baentsch/rt-detection
Runtime feature detection
2020-03-31 07:43:47 +02:00
Michael Baentsch
768c4aefea formatting corrected 2020-03-30 17:15:44 +02:00
Michael Baentsch
2da60678ef fixing style 2020-03-30 16:40:04 +02:00
Michael Baentsch
5d690b8746 CPU feature runtime flags support via OQS 2020-03-30 16:28:04 +02:00
Vlad Gheorghiu
dca4706dc4
Update .gitignore (#688) 2020-03-30 10:11:57 -04:00
Christian Paquin
38c47f7d9f
Properly namespace the picnic internal functions (#676)
* Properly namespaced the picnic internal functions

* Added namespacing for KeccakWidth1600times4 functions.

* Namespace KeccakWidth1600times4 sponge structure.

* Merged macro files and namespaced assembly files.

* Namespaced .name statemetns in avx2 assembly files

* Fixed macro include paths

* Un-namespaced KeccakP1600_AddByte because it is sometimes defined as a macro.

* Namespace function call in assembly.
2020-03-27 10:49:43 -04:00
Vlad Gheorghiu
df189ce69d
Merge pull request #671 from open-quantum-safe/ds-tests-in-threads
Run the test_kem and test_sig tests on a thread when possible
2020-03-27 09:44:05 -04:00
Douglas Stebila
fc69fa35b7 Revert localCheckout 2020-03-26 21:05:04 -04:00
Douglas Stebila
1ff2323752 Properly pass data to/from threads 2020-03-26 20:08:56 -04:00
Douglas Stebila
786141b06e Merge branch 'ds-tests-in-threads' of https://github.com/open-quantum-safe/liboqs into ds-tests-in-threads 2020-03-26 17:37:14 -04:00
Douglas Stebila
8e1bd2327e Only link against threads on clang/gcc 2020-03-26 17:36:14 -04:00
Kevin Kane
fc18d44fc4
Add Windows AMD64 cross-compilation instructions to README.md (#684) 2020-03-26 17:30:24 -04:00
Vlad Gheorghiu
532d0cb36b minor cosmetic change 2020-03-26 11:48:02 -04:00
Douglas Stebila
88693c2f92 Link threads for tests 2020-03-26 10:44:07 -04:00
Vlad Gheorghiu
306d5f9747 put no-thread kems/sigs in array 2020-03-26 10:21:37 -04:00
Douglas Stebila
efdbed4d67 Use strstr instead of strnstr 2020-03-26 09:44:17 -04:00
Douglas Stebila
f437663bd0 Run big stack usage tests on main thread 2020-03-25 17:23:31 -04:00
Nikita Karpey
ff31de95d1
Fix cross compilation (#681)
* Fix Appveyor build
2020-03-25 15:41:18 -04:00
Kevin Kane
d24b20f7d2
Comment-only fixes to cross-compiling toolchain files (#680)
Correct typo of filename in Raspberry Pi toolchain file so the command can be directly copied and pasted to use.
Add a comment to the Windows toolchain to indicate the necessary package to install to get the necessary cross-compilers, as is already done for the Raspberry Pi toolchain file.
2020-03-25 12:43:19 -04:00
Kevin Kane
9897b49b00
Support to cross-compile for Windows amd64 on Linux (#674)
* Add CMake cross-compiling toolchain file for Windows amd64 with mingw

* Set linker flags using older method for older versions of CMake without add_link_options

MinGW/MSYS/Cygwin build uses add_link_options which was only added to CMake in 3.13.0.
Use the method of setting CMAKE_EXE_LINKER_FLAGS on older versions of CMake.
2020-03-24 16:36:22 -04:00
Nikita Karpey
438fecf289
Use cpu_features instead of __builtin_cpu (#654). 2020-03-24 15:12:06 -04:00
Michael Baentsch
3c94f3bc7d
Updated CONTRIBUTORS list (#677). 2020-03-24 15:01:31 -04:00
Christian Paquin
02ec306530
Merge pull request #673 from jyao1/FixTypoPicnic
Fix typo in picnic.
2020-03-22 15:22:18 -04:00
Jiewen Yao
a62a921d33 Fix typo in picnic. 2020-03-22 11:38:16 +08:00
Douglas Stebila
9742ddf81d
Set sanitizer flags differently (#669)
* Set sanitizer flags differently

* Sanitizer flags should be passed in during compilation now.

* Cosmetic change.

* Missing cast

Co-authored-by: xvzcf <xvzcf@users.noreply.github.com>
2020-03-20 09:32:05 -04:00
xvzcf
57f2bcf91f
Replaced add_compile_options(-fPIC) with set(CMAKE_POSITION_INDEPENDENT_CODE ON) (#672)
* Use POSITION_INDEPENDENT_CODE property instead of add_compile_options(-fPIC).

* Fixing CircleCI.
2020-03-19 20:07:58 -04:00
Douglas Stebila
2a2393d097 Fix compilation warnings under gcc 2020-03-19 15:23:20 -04:00
Douglas Stebila
4cc03987b1 Run the test_kem and test_sig tests on a thread when possible 2020-03-19 14:57:18 -04:00
Kevin Kane
734477f19e
Always build with -fPIC on GCC and clang (#670)
Even if liboqs is built as a static library, building shared versions of OpenSSL will fail if liboqs isn't built with -fPIC. Always build with it so the shared build will work, as this won't affect the static OpenSSL build.
2020-03-19 13:55:12 -04:00
Douglas Stebila
29e5c25bc0 Add newline eof 2020-03-19 12:38:56 -04:00
Christian Paquin
08300e5b3a
Updated qtesla to v1.0 (#665)
* Updated qtesla to v1.0

* Updated qTesla sizes and KATs after v1.0 changes.
2020-03-19 12:05:10 -04:00
Christian Paquin
ab5443eda5
Merge pull request #664 from christianpaquin/cp-issue644
Addresses Windows compile warnings
2020-03-17 23:49:43 -04:00
Christian Paquin
e1370050f2 Don't ignore the Windows warnings on nix type compilers 2020-03-17 22:23:59 -04:00
Christian Paquin
9783c4d7d0 Added comments of Windows compile warning ignores, and kept qtesla warnings (to be addressed in different pr) 2020-03-17 17:56:15 -04:00
Christian Paquin
ee9680eaac Ignore some warninngs on Windows. 2020-03-17 10:59:31 -04:00
xvzcf
7c083329f3
Enabled more Clang warning flags. (#663) 2020-03-16 15:33:14 -04:00
Douglas Stebila
4c3016f43e
Add Rainbow from PQClean (#662)
* Add Rainbow from PQClean

* Adapt CircleCI config to handle larger number of local files
2020-03-15 20:25:42 -04:00
Douglas Stebila
a4d3753666 Add Classic McEliece to README
[skip ci]
2020-03-15 16:58:28 -04:00