983 Commits

Author SHA1 Message Date
Christian Paquin
5a888129f3 Merge branch 'master' of https://github.com/open-quantum-safe/liboqs
Merged with upstream
2020-05-29 14:09:30 -04:00
Douglas Stebila
ffae460a71
Remove LEDAcrypt v2.1 temporarily (#756)
Due to attack in https://eprint.iacr.org/2020/455
2020-05-26 14:11:11 -04:00
Christian Paquin
f37f420556 Merge branch 'master' of https://github.com/open-quantum-safe/liboqs
Merge with upstream
2020-05-19 16:02:40 -04:00
Nikita Karpey
1b1eaf20b5
Fixing test behavior (#754) 2020-05-19 09:35:58 -04:00
Douglas Stebila
6516da6651 liboqs 0.3.0 release candidate 1 2020-05-14 17:38:28 -04:00
Christian Paquin
4b0626cfdf Merge branch 'master' of https://github.com/open-quantum-safe/liboqs
Merge
2020-05-12 13:35:53 -04:00
Christian Paquin
229d9afc98
Move external qtesla folders into a common external one (#752)
* Updated frodo's doc's source link

* Moved qtesla avx2 and portable folder into a parent external folder.

* Remove SPDX statement from external qtesla files

* Fixed qtesla cmakelist file.
2020-05-12 13:29:30 -04:00
Douglas Stebila
6e0b0d79a9
Add SPDX-License-Identifier headers (#749)
* Add SPDX-License-Identifier in src/common

* Add SPDX-License-Identifier in FrodoKEM

* Add SPDX-License-Identifier in SIKE

* Add SPDX-License-Identifier in BIKE

* Add SPDX-License-Identifier in OQS headers

* Add SPDX-License-Identifier in files generated during copy-from-pqclean

* Add SPDX-License-Identifier in Picnic

* Add SPDX-License-Identifier in qTesla

* Add SPDX-License-Identifier in CMake files

* Update license info in README

* Add SPDX-License-Identifier in scripts

* Add SPDX-License-Info to CMakeLists

* Add SPDX-License-Info in tests

* Add SPDX-License-Info to various files

* Prettyprint

* Add test for SPDX-License-Identifier headers

* Updated license identifiers for CPU extension detection code.

* Use conjunction for SPDX in file with two licenses

Co-authored-by: xvzcf <xvzcf@users.noreply.github.com>
2020-05-12 11:45:37 -04:00
Christian Paquin
ba1536774b Merge branch 'master' of https://github.com/open-quantum-safe/liboqs
Merge with master.
2020-05-12 11:44:22 -04:00
Christian Paquin
df2f65251b
Update qtesla alg doc (#750)
* Updated frodo's doc's source link

* Updated qtesla alg documentation.
2020-05-11 20:56:52 -04:00
Christian Paquin
a0608ada8e Merge branch 'master' of https://github.com/open-quantum-safe/liboqs
Merge with upstream
2020-05-11 10:47:13 -04:00
Christian Paquin
dfb74080c7
Updated frodo's doc's source link (#748) 2020-05-09 11:59:36 -04:00
Christian Paquin
57bff919d2 Updated frodo's doc's source link 2020-05-08 11:07:09 -04:00
Christian Paquin
216cb1a930
Updated picnic to v2.2. (#746)
* Updated picnic to v2.2.

* Re-enabled optimizations with clang-9/10

* Integrated commit 9917e3 from Picnic, fixing a bug with 128 bit word loading.

* Removed hardcoded aligment macro for picnic.

* Remove references to now-unused USE_OPTIMIZATIONS.
2020-05-07 15:47:34 -04:00
Christian Paquin
17c03a1bd2
Merge pull request #747 from open-quantum-safe/sike-cmake-fix
Fixed SIKE non-portable optimized build.
2020-05-07 11:28:54 -04:00
xvzcf
9eb953a083 Fixed SIKE non-portable optimized build. 2020-05-07 09:26:59 -04:00
xvzcf
90798f9dc1
Fixes for issues 732 and 738 (#743)
* Removed parallelism from ubuntu-bionic-x86_64-asan CircleCI workflow.

* Modified Picnic CMakeLists.txt to forgo optimizations if Clang is the compiler.
2020-05-05 21:51:56 -04:00
Michael Baentsch
2bcc8ae038
Default alg setting brought in line with documentation (#744) 2020-05-04 09:43:36 -04:00
xvzcf
e69bdcbd32
Broadened OQS_BUILD_TESTS to OQS_BUILD_ONLY_LIB and removed side-effecting asserts. (#741) 2020-04-28 15:05:00 -04:00
Douglas Stebila
3bad81851f
Add AVX2 and AESNI versions of SPHINCS+ (#736)
* Add AVX2 and AESNI versions of SPHINCS+

Also remove all of the dead code that was included (probably due to
a name format change sometime)

* Don't include empty operating_system matcher

* Rerun copy_from_pqclean

Co-authored-by: Thom Wiggers <thom@thomwiggers.nl>
2020-04-27 21:22:38 -04:00
Nikita Karpey
44f4777a51
SIDH build fix. (#734) 2020-04-27 11:20:49 -04:00
Thom Wiggers
2dae6ea120
Update MQDSS to v2.1 (#725) 2020-04-24 14:24:36 -04:00
xvzcf
c103f7b4df
Fixed SIKE CMakeLists.txt. (#731) 2020-04-24 10:14:06 -04:00
xvzcf
faa7589e6f
Refactoring (#730)
* Refactored build and templating scripts.

* Added check for OQS_PORTABLE_BUILD to Frodo.

* Removed security_strength parameter from OQS_randombytes_nist_kat_init.
2020-04-23 15:34:36 -04:00
xvzcf
8950275409
Removed non-standard CMake build types and fixed other bugs. (#726)
* Removed non-standard CMake build types and introduced new variables to customize the build.

* Added handling for new build variables to all KEMS and signatures and updated CI.

* Added clang-9 test to CI.
2020-04-16 13:53:04 -04:00
Thom Wiggers
866f409de9
Add a basic .gitattributes file (#723)
This should force the handling of trialing whitespace and newlines a bit better.
2020-04-15 09:47:10 -04:00
Nikita Karpey
e91e334e47
SIKE build fix on ARM64 (#719) 2020-04-15 09:40:33 -04:00
Douglas Stebila
f8e74ba7c7
Reenable qTesla CI on ARM (#716) 2020-04-14 21:01:46 -04:00
xvzcf
d6788819d8
Re-enabled Picnic and qTESLA. (#715) 2020-04-14 10:52:52 -04:00
xvzcf
722ca648a1
Overhauled compiler-time CPU-extension detection. (#713)
Refactored .CMake/alg_support.cmake, and kem/ and sig/ CMakeLists.txt files.

Refactored copy_from_pqclean/ templating.

Added custom x64 CPU extension detection code and removed cpu_features.

Removed duplicate Kyber source directories.
2020-04-14 07:58:41 +02:00
Michael Baentsch
a00781ca46
add IBM Research attribution; limit Win-testing to mb-* branches (#711) 2020-04-09 13:45:53 -04:00
Michael Baentsch
7419141d94
CircleCI testing for Windows (#690)
* enable Windows testing on CircleCI

* full CCI enabled (incl. Win)

* trigger AppVeyor build
2020-04-08 10:36:24 -04:00
Christian Paquin
9466677ea4
Don't redefine NDEBUG; fix warning when building cmake release build. (#710) 2020-04-08 09:50:42 -04:00
Douglas Stebila
94e37fed6a
Cleanup a few quirks in copy_from_pqclean (#708)
* Delete accidentally added object files

* Sort filenames when generating CMakeLists

So that execution of copy_from_pqclean on different systems doesn't 
generate different outputs each time
2020-04-07 13:38:24 -04:00
Douglas Stebila
854f074808
Fix AddressSanitizer issues and enable in nightly runs (#707)
* Fix buffer overrun on Falcon KATs

* Fix memory leak in Picnic2

* Enable address sanitizer in nightly builds
2020-04-07 13:38:02 -04:00
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