1268 Commits

Author SHA1 Message Date
Jason Goertzen
5b8e2bd4d5
Resolves an issue when building sha2 using arm crypto extensions with gcc on Darwin. (#1184) 2022-02-01 16:04:24 -05:00
Michael Baentsch
fb8f0ffa18
weekly job moved to Sunday [skip ci] (#1183) 2022-01-28 12:56:29 -05:00
Michael Baentsch
3733dcaf46
syntax fix for weekly github run [skip ci] (#1182)
temporary daily run to test more quickly
2022-01-27 22:25:59 +01:00
Sebastian Ramacher
0a0adf1639
Update to picnic 3.0.11 (fixes #1178) (#1181) 2022-01-25 12:42:26 -05:00
Michael Baentsch
18b3fe39b2
disable BIKE on all 32bitters except x86 (#1180) 2022-01-22 10:27:46 -05:00
Jason Goertzen
4ec538e3c8
Fixed build issue on arm based macs when using gcc11 (#1177)
* Fixed a build issue when trying to use gcc11 on an arm based mac. Also updated kem templates so that any pqclean scheme that has a similar problem in the future can be fixed by just patching the assembly files

* adding M1 CI for gcc-11

Co-authored-by: Michael <57787676+baentsch@users.noreply.github.com>
2022-01-20 10:27:46 -05:00
Douglas Stebila
b9acf95ca3 Add VeriSign Inc. to README acknowledgements [skip ci] 2022-01-17 11:18:17 -05:00
Michael Baentsch
d5f28d02dd
skip sphincs,rainbow in shortened weekly testing (#1176) 2022-01-17 15:17:57 +01:00
Michael Baentsch
b632938f5b
extend timeout to 10h (#1175)
* extend timeout to 10h

* added .dsci.yml
2022-01-10 10:59:02 -05:00
Douglas Stebila
a34cabb4bf
Mark stack non-executable when compiling with clang or gcc (#1161)
* Mark stack non-executable when compiling with clang or gcc

Fixes #1159

* Change noexecstack option on gcc

* Use gcc noexecstack only on non-Darwin

* Check for non-executable stack in shared object builds on Linux
2022-01-09 11:30:10 -05:00
Sebastian Ramacher
9227b2a233
Update to Picnic 3.0.9 (#1167)
* Update to Picnic 3.0.10 (fixes #1165)

* Disable Picnic SIMD optimizations on Cygwin (fixes #1163)

* Set WITH_OPT only if required

* Revert "remove picnic from cygwin build (#1171)"

This reverts commit 5608b465748281c8f84a97858dbd9887e77d6bd3.

* Update supported CPU extensions for Picnic
2022-01-09 11:28:56 -05:00
Christian Paquin
2af8ad71e2
Updated constant_time suppression files after picnic update (#1174) 2022-01-04 14:54:02 -05:00
John Schanck
4d938b1d04
Update XKCP and avoid assembler .ifdef directives (#1173)
* copy_from_xkcp: Update to latest version and fix merge conflicts

* Add macOS gcc-11 CI job

Co-authored-by: Douglas Stebila <dstebila@uwaterloo.ca>
2022-01-03 07:25:23 +01:00
Michael Baentsch
fde936b56b
extend weekly run timeout [skip ci] (#1172) 2022-01-02 13:58:53 -05:00
Michael Baentsch
a38d3ff59c
adding constant time test as weekly github action (#1170)
* adding constant time test as weekly github action
2021-12-30 11:19:18 +01:00
Michael Baentsch
5608b46574
remove picnic from cygwin build (#1171)
* remove picnic from cygwin build
2021-12-29 07:08:59 +01:00
pkubaj
5ea49c2a44
Add support for powerpc64. (#1160)
This is 64-bit POWER big-endian. Since s390x (64-bit big-endian) and ppc64le
(64-bit POWER) are already supported, this shouldn't be an issue.
2021-12-23 18:03:25 -05:00
Michael Baentsch
6890afc2b2
XCode update (#1162)
* upgrading XCode in CCI

* remove python2 removal for XCode 13
2021-12-21 10:40:33 -05:00
Sebastian Ramacher
4479f50da8
Update Picnic to 3.0.7 (#1158)
* Define PICNIC_EXPORT instead of PICNIC_STATIC

PICNIC_STATIC builds some internal functions only required for testing.

* Handle SSE2/AVX2/NEON in Picnic similar to other schemes

* Update to Picnic 3.0.8
2021-12-20 11:01:10 -05:00
Douglas Stebila
2f4f301b18 Switch version to 0.7.2-dev [skip ci] 2021-12-20 11:01:00 -05:00
Douglas Stebila
a39d08e00a liboqs 0.7.1 0.7.1 2021-12-16 13:34:53 -05:00
Michael Baentsch
ed19084847
add trigger for oqs-provider CI (#1157) 2021-12-15 15:54:35 -05:00
ax1
7b54997181
docs: set license MIT for Falcon Signature (#1156)
https://github.com/open-quantum-safe/liboqs/blob/main/docs/algorithms/sig/falcon.md states **license CC0-1.0**

But the license in the header file at https://falcon-sign.info/impl/falcon.h.html is  ** license MIT** , the same at https://github.com/PQClean/PQClean/blob/master/crypto_sign/falcon-1024/clean/LICENSE
2021-12-14 13:05:27 -05:00
Michael Baentsch
ae6c7b4798
Output documented build options (#1155)
* explaining all config options in system_info output
2021-12-13 15:33:19 +01:00
Jason Goertzen
abf1080ddd
Added spdx headers to noregress.[py|sh] (#1154) 2021-12-12 21:39:21 -05:00
Michael Baentsch
ca0cd60a1b
release performance regression test (#1152)
* performance regression test script [skip ci]

* parameterized no-regress testing [skip ci]
2021-12-11 13:51:15 -05:00
Douglas Stebila
0a61d5d066 0.7.1-rc1 [skip ci] 0.7.1-rc1 2021-12-09 14:23:49 -05:00
Douglas Stebila
bcfd007766
Tweaks to benchmarking code (#1150)
- Fix bug in standard deviation calculation
- Cast values to protect against overflows
2021-12-09 14:05:46 -05:00
Michael Baentsch
3b7b8d7816
aarch64 dist build (#1148)
* aarch64 dist generator run

* removing undocumented OQS_DIST_ARM64_V8_BUILD

* re-activate ARMV8 specific dist build
2021-12-09 11:47:45 -05:00
Douglas Stebila
c97706c6b3
Option to use PMU for benchmarking on ARM (#1147)
* Add CMake option and compiler flag for using ARM PMU in speed

* Enabling use of ARM PMU for benchmarking when compiler flag is enabled (#1141)

* Enabling use of ARM PMU for benchmarking when compiler flag is enabled

* Adding documentation in code on how to enable PMU

Co-authored-by: Ted Eaton <ted@eeaton.ca>
2021-12-08 12:28:14 -05:00
Michael Baentsch
8e22871ff6
NIST copyright clarification (#1142)
* added NIST license clarification

* corrected style
2021-12-05 14:18:54 -05:00
Ted Eaton
cf6535dc52
Adding a speed_common script to benchmark OQS AES and hash algorithms (#1144)
* Adding a speed_common script to benchmark OQS AES and hash algorithms
2021-12-05 08:02:58 +01:00
Michael Baentsch
188e6a38b2
enable ARM64 optimizations when using MINIMAL_BUILD option (#1139) 2021-12-01 07:08:07 +01:00
Michael Baentsch
6888e9ea95
add downlevel compiler warning (#1137)
* add downlevel compiler warning

* correct warning message

* warning added to code generator script

* implement PR feedback
2021-11-30 09:25:37 -05:00
Jason Goertzen
71b570c59c
Adding arm64_v8 optimized versions of saber. (#1131)
* Added aarch64 optimized version of saber, lightsaber, and firesaber from pqclean

* Updated to latest commit of pqclean which fixes saber aarch64.

* Updated saber docs as per @dstebila's comment

* Removed duplicate lines from README.md

* Fixed local issue for duplicate lines in README.md. This is the output of the update docs script after fixing my local issue
2021-11-27 15:24:05 -05:00
Christian Paquin
f067882704
Added supported-platforms compile guards in the SIKE CMakeLists (#1136)
* Added supported-platforms compile guards in the SIKE CMakeLists

* Disable SIKE globally on unsupported platforms
2021-11-26 09:02:22 -05:00
Michael Baentsch
8c5bab6a26
more code style checks (#1135)
* more code style checks in one run
2021-11-24 07:18:50 +01:00
Michael Baentsch
8df1a81dd7
skip more ClassicMcEliece weekly CI constant time tests [skip ci] (#1134) 2021-11-22 09:39:30 -05:00
Michael Baentsch
f5d7afae47
LF everywhere (#1133) 2021-11-22 09:35:07 -05:00
Douglas Stebila
14d64d379d
Fix gcc 11 error for Kyber on arm64 (#1127)
* Set new version of Kyber ARM to use from PQClean

* Result of running copy_from_upstream

* Removed the need for pqclean aarch64 patches

* Updating doc generation to be a little more careful about when required flags is an empty list

Co-authored-by: Jason Goertzen <Martyrshot@gmail.com>
2021-11-19 16:40:04 -05:00
Michael Baentsch
2c98b97fa4
adding ntruhps40961229 ntruhrss1373
clean code only added (https://github.com/PQClean/PQClean/pull/427)
2021-11-19 06:43:43 +01:00
Jason Goertzen
769412623c
Adding multiple upstream support to doc generation (#1123)
* Fix an issue where run_tests tried to run tests from upstream. Fix by @DStebila

* No longer checking spdx on files copied from upstream

* Added compiler checking for gcc. Must be at least 9.4.0.

* Added pqclean's aarch64 optimized kyber implementation to liboqs

* stripping asimd flag for ARM64_V8 as it isn't needed and will cause errors when trying to specify it during compilation

* Updated kyber docs

* Updated kyber markdown so that no-secret-dependent-branching-checked-by-valgrind correctly says false for the new aarch64 implementation

* Added automated updating of legacy yaml format, and added some yaml files which don't get automatically updated

* Fixed a bug where optimized upstreams would use the primary upstream's supported platform

* Fixed a bug with copy_from_upstream.py's verify function where it would always use the default upstream location when comparing with diff

* Added reporting for implementations that are in upstream but aren't yet integrated into liboqs

* Added support to ignore implementations from upstream in copy_from_upstream.yml. This is to prevent implementations that haven't been integrated into LIBOQS yet from being pulled in by copy_from_upstream.py. It also silences the warning when verifying.

* Adding updated ymls and md files for docs

* copy_from_upstream.py now also calls update_docs_from_yaml.py
2021-11-18 06:56:19 +01:00
Christian Paquin
ba5b61a779
Added Keccak constant time exclusion for Picnic AVX2 (#1124) 2021-11-16 11:03:04 -05:00
Jason Goertzen
0807ecf9af
Adding support for multiple upstream to copy_from_upstream, as well as pqclean's aarch64 kyber implementation (#1117)
* currently there is a bug where pytest doesn't work but the individual tests work... looking into it still.

* Fix an issue where run_tests tried to run tests from upstream. Fix by @DStebila

* No longer checking spdx on files copied from upstream

* pqclean's aarch64 kyber implementation is now being pulled from. Still need to clean things up.

* pqclean kyber fragment was left behind. It's now added

* Added compiler checking for gcc. Must be at least 9.4.0. Need to track down clang and appleclang

* Need to figure out how to handle commen dependencies from multiple upstreams

* Cleaned up copy_from_upstream.py a bit

* Added pqclean's aarch64 optimized kyber implementation to liboqs

* Added pqclean's aarch64 optimized kyber implementation to liboqs

* Fixed an isssue where 'empty' conditionals were added to kem_scheme.c files when there were no required flags

* reverting sabre to version prior to updated copy_from_upstream script

* stripping asimd flag for ARM64_V8 as it isn't needed and will cause errors when trying to specify it during compilation

* Fixed an issue where empty conditionals would appear when no required flags were specified

* Updated kyber docs

* Updated kyber docs with better formatting

* Adding updated kyber documentation

* Reverting documentation that was erroniously updated while updating kyber.

* Reverted ntruprime too far back by mistake

* Updated kyber doc's yml no-secret-dependent-branching-checked-by-valgrind to false

* Updated kyber markdown so that no-secret-dependent-branching-checked-by-valgrind correctly says false for the new aarch64 implementation
2021-11-10 14:22:49 -05:00
Christian Paquin
c366e19805
Updated valgrind constant time exception for picnic (new code, and updated some line numbers) (#1121) 2021-11-09 10:08:46 -05:00
Christian Paquin
70c822b590
Skip non-enabled algs in constant time tests (#1120)
* Skip non-enabled algs in constant time tests

* Deleted previous test skipping code (replaced with common function)

* Added back SKIP_ALGS checks, for enabled-but-skipped algs.
2021-11-08 12:27:20 -05:00
Christian Paquin
468533abea
Updated Picnic to v3.0.5 (#1116)
* Updated Picnic to v3.0.5
2021-10-30 07:52:56 +02:00
Michael Baentsch
6175da8246
Add S/NTRUP1277 (#1111)
* adds S/NTRUP1277

* disable McEliece for OSX shared CCI runs

* known sntrup constant_time issue suppressed
2021-10-22 09:31:47 -04:00
Basil Hess
5c2e13062c
Disable BIKE build on s390x (big endian) (#1115) 2021-10-21 20:57:07 -04:00
Douglas Stebila
d071f2bc8c
Add powerpc64le name as alternative to ppc64le (#1112)
* Add powerpc64le name as alternative to ppc64le

FreeBSD uses powerpc64le name for 64-bit POWER little endian.

* Remove parentheses

Co-authored-by: pkubaj <pkubaj@FreeBSD.org>
2021-10-19 08:48:51 -04:00