1252 Commits

Author SHA1 Message Date
Michael Baentsch
fe08f69c6e
Fix FreeBSD runtime ARM CPU feature detection (#1267) 2022-08-03 10:20:41 -04:00
Douglas Stebila
1e47e14556
Remove SIDH and SIKE (#1272)
Due to https://eprint.iacr.org/2022/975.

Fixes #1268.
2022-08-03 10:19:28 -04:00
Sebastian Ramacher
af76ca3b1f
Update to Picnic 3.0.16 (fixes #1253) (#1271)
This update fixes alignment issues when built with MSVC.
2022-08-02 09:43:21 -04:00
Michael Baentsch
4abd522492
update PR template to include oqs-provider (OSSL dependency) [skip ci] (#1269) 2022-08-01 19:58:53 -04:00
Christian Paquin
fb0edb7f85
Updated to SIKE v3.5.1 (#1231)
* Updated to SIKE v3.5.1

* Prettyprint

* Newline at the end of the file (to avoid error from -Wnewline-eof)

* Wrap logical not check in parenthesis, to avoid error from -Wlogical-not-parentheses

* Added empty functions to avoid unused errors on macOS

* Adding extra empty line at the end of assembly files to avoid newline-eof errors

* Fixing missing newlines at the end of the .S files

* Initialized some sike values

* Initialized a sike value

* Small edits

* Initialized some more SIKE variables

* sike cmake update

* include for windows

Co-authored-by: Basil Hess <bhe@zurich.ibm.com>
2022-07-30 08:40:05 -04:00
Douglas Stebila
478ccba970
Remove Rainbow level 1 (#1263)
Fixes #1260
2022-07-27 15:12:16 -04:00
Vitalio
2c687b1220
pqclean_hqc: Fix build on GCC-12 (#1254)
Make index variable `i` immediate by unrolling the loop.

Link: https://github.com/open-quantum-safe/liboqs/issues/1244
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
2022-07-25 16:22:02 -04:00
HY Chang(splasky)
664c6f331d
Fix memory leak detected by valgrind (#1250) 2022-07-17 15:35:35 -04:00
Basil Hess
e88cc366b5
Sync Kyber with upstream, enable Scan-Build with Kyber (#1252) 2022-07-11 11:53:20 +02:00
yin19941005
8ec55171b0
docs: Add valgrind as test dependencies in README.md (#1251)
* docs: add valgrind as dependencies in readme

Co-authored-by: Michael Leung <michael.leung@bloombase.com>
2022-07-08 08:50:41 +02:00
Michael Baentsch
1a1e91845c
disable msys2 testing (#1243) 2022-07-01 09:53:27 -04:00
Michael Baentsch
a8dad8d305
adding memory leak testing (#1234)
* adding memory leak testing for x86_64 on ubuntu

* document test exclusion of Classic-McEliece-8192128
2022-07-01 09:09:03 +02:00
Michael Baentsch
fbb34be899
adding scan-build test (#1240)
* adding scan-build test

* upgrade to clang-14

* excluding Kyber from scan-build test
2022-06-30 08:49:06 -04:00
Basil Hess
d402280283
Updated Dilithium sign.c patch with AES context release (2) (#1242) 2022-06-30 06:48:55 +02:00
Sebastian Ramacher
0efa4b97e0
Bump Picnic to 3.0.15 (#1241)
* Bump Picnic to 3.0.15
2022-06-29 09:01:59 +02:00
Michael Baentsch
7d7fd33879
improve Windows crosscompile handling (#1236) 2022-06-29 07:40:32 +02:00
Sebastian Ramacher
c0db3d9ce3
Update Picnic to 3.0.14 (fixes #1212) (#1237)
This commit also corrects incorrect information in picnic.yml
2022-06-28 09:58:15 -04:00
Basil Hess
a9629e0a48
Updated Dilithium sign.c patch with AES context release (#1238) 2022-06-28 09:57:57 -04:00
Basil Hess
719a84ecdd
Integrates pqcrystals with common-aes / extends common code AES CTR-API (#1221)
* Integrates pqcrystals (ref and avx2) with liboqs common AES code (for Kyber-90s and Dilithium-AES).
* Extends libOQS AES-CTR with Incremental API: OQS_AES256_CTR_inc_init, OQS_AES256_CTR_inc_iv, OQS_AES256_CTR_inc_ivu64, OQS_AES256_CTR_inc_stream_iv, OQS_AES256_CTR_inc_stream_blks.
* Adds some AES-CTR shim API.
* Faster AESNI CTR code (improved iv handling, 4x interleaved blocks for higher throughput).
* OpenSSL AES supporting CTR API.
* Updated pqcrystals patches (API, context releases).
* Removes redundant AES implementations from Kyber and Dilithium.
* Copy-from-upstream with updated patches.
* Uses internal AES on x86_64 (dist & AES) because of increased performance with the internal AESNI code.
* Adds AES-CTR benchmarks to speed_common
* Update CONFIGURE.md
2022-06-23 14:44:36 +02:00
Michael Baentsch
608ea188e3
Link documentation and code (#1229)
* move Wiki documentation to source code

* adding CONFIGURE.md to doxyconfig

Co-authored-by: Douglas Stebila <dstebila@users.noreply.github.com>
2022-06-22 09:59:30 -04:00
Michael Baentsch
d9c2cd2136
doxygen update (#1228)
* upgrade script to support doxygen 1.9.3

* update CI script for doc generation

* add license identifiers
2022-06-21 10:53:16 -04:00
Jason Goertzen
e37ad5b5d8
Added typecasts to ds benchmark to make clang happy (#1225) 2022-06-14 06:31:29 +02:00
Jason Goertzen
38d3014dc2
Adding aarch64 CPU feature detection for FreeBSD (#1210)
* Added FreeBSD cpu feature detection to common/common.c

* Updated common/common.c to use __FreeBSD__ instead of __FREEBSD__

* added FreeBSD support to SIKE's CmakeLists.txt

* Added FreeBSD cpu feature detection to common/common.c

* Updated common/common.c to use __FreeBSD__ instead of __FREEBSD__

* added FreeBSD support to SIKE's CmakeLists.txt

* Added in comment to common.c to keep consistent with other platforms

* Added FreeBSD cpu feature detection to common/common.c

* Updated common/common.c to use __FreeBSD__ instead of __FREEBSD__

* added FreeBSD support to SIKE's CmakeLists.txt

* Added in comment to common.c to keep consistent with other platforms

* Updated documentation to say FreeBSD is support on aarch64

* Updated docs to indicated that SIKE is supported on FreeBSD on aarch64
2022-06-07 20:28:23 -04:00
Michael Baentsch
b5484ce92e
workaround for picnic under msys2 (#1220) 2022-06-06 17:39:32 +02:00
Zane Beckwith
25f3e56b2e
Use SecRandomCopyBytes for system randomness on iOS (to allow building on iOS) (#1219)
* Use SecRandomCopyBytes on iOS for system randomness

* Link iOS Security Framework as a library dependency

* Fix style
2022-06-05 14:05:24 -04:00
Ted Eaton
feea2f3864
Issues and passes for aarch64 const time checks (#1214) 2022-05-25 10:47:34 -04:00
Douglas Stebila
fc7d89c074
Deal with some issues identified by clang scan-build (#1211)
* Fix memory leak detected by scan-build

* Remove unused statement (identified via clang scan-build)
2022-05-14 06:20:25 +02:00
Michael Baentsch
9dea0430ed
Correct OQS_DIST_BUILD for ARM (#1202)
* unify naming for OQS_DIST_ARM64_V8_BUILD

* Unified naming for OQS_DIST_ARM32_V7_BUILD

Co-authored-by: Jason Goertzen <Martyrshot@gmail.com>
2022-04-24 14:09:35 -04:00
Ted Eaton
be8fc96df7
Edits to key scheduling for AES on ARM to be constant time (#1200) 2022-04-08 11:22:16 -04:00
Michael Baentsch
e858c7a642
skip yamllint test for good (#1196)
* skip yamllint test for good

* remove yamllint completely
2022-03-22 10:13:07 -04:00
Jason Goertzen
55bc8cb38d
ARMv8 optimized Dilithium (#1194)
* Updated sig templates to add support for arch specific upstreams. Currently behaves as expected, but still need to test (and integrate) dilithium

* Fixed a couple of build errors, and started work on dilithium integration from pqclean. Currently failing kat tests

* Updated templating for both sig and kem to make them look a little better

* Renamed dilithium folders so they are consistent across pqclean and pqcrystals so that copy_from_upstream script will function correctly

* Added arm optimized version of dilithium[2|3|5]

* Updating other signature schemes CMakeLists.txt to be the output of the updated templates

* Arm optimized implementation of dilithium is added, with randomized signing patched into it. copy_from_upstream script is working properly. Still need to update the update_docs scripts before ready to merge

* Finished updating docs scripts and yml files. Builds pass, so should be ready for a merge

* Fixed template issue with multiple compile flags

* Updated doc generation scripts so that all '_' in scheme names are replaced with '\_'
2022-03-09 15:17:42 -05:00
Michael Baentsch
6639d3b465
adding warning re Rainbow to documentation [skip ci] (#1193) 2022-03-04 17:25:03 +01:00
Michael Baentsch
5894d9af56
create and install cmake import files (#1191)
* create and install cmake package import files

* add openssl cmake includes only where needed
2022-02-26 10:51:42 +01:00
Douglas Stebila
bcc94dad5e
Suppress constant time check for public matrix generation on Kyber AVX2 (#1189)
* Suppress constant time check for public matrix generation on Kyber AVX2

* Update tests/constant_time/kem/passes/kyber-90s

Co-authored-by: Basil Hess <basil.hess@gmail.com>

* Remove temporary CI job [skip ci]

Co-authored-by: Basil Hess <basil.hess@gmail.com>
2022-02-16 20:19:19 -05:00
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