75 Commits

Author SHA1 Message Date
Douglas Stebila
5653455ff1 Don't skip build if running in CircleCI local 2020-03-11 09:28:26 -04:00
Nick Fulton
24eb40f121
Enable cross-compilation for Android (#627)
* Update CMakeLists.txt

Prevent breaking options on Android compilation

* Create build-android.sh

Created build script for Android cross-compilation.
2020-02-29 16:05:57 -05:00
xvzcf
9c01847b21
Refactored oqsconfig.h.cmake (#628)
* Added OQS_ prefix and assigned values to all #defines in oqsconfig.h.cmake

* Updated CI and templating scripts
2020-02-24 18:04:01 -05:00
Douglas Stebila
ca66375f30
Switch from clang-format to astyle (#613)
* Initial format with astyle

* Fix templating to match

* Fix files with missing newline at EOF

* Remove old line

* Remove old .clang-format spec

* Add prettyprint target to CMake
2020-02-15 23:34:31 -05:00
xvzcf
889a03bd15
Switched build system to CMake. (#556)
* Removed cross-compilation scripts and associated Travis CI workflows.
2020-02-14 14:03:29 -05:00
Douglas Stebila
fb45816569
Add ThreeBears and LEDAcrypt from PQClean (#589)
* Add SHA256 incremental state destroy function

Following https://github.com/PQClean/PQClean/pull/247

* Add ThreeBears from PQClean

* Parallelize make test

* Add KEMs and documentation for ThreeBears

* cSHAKE shims

* Add LEDAcryptKEM from PQClean

* Undo rebase quirk

* Undo rebase quirk
2020-01-31 07:36:27 -05:00
Douglas Stebila
28f7c668f1
OSX testing on CircleCI alternative (#597)
* Use OpenSSL's EVP_MD_CTX_new and _free

* OSX testing added (only on checkin, only on master)

* Alternative way of running stuff only on recent check-ins

* OR not AND

* Build OSX on commit temporarily

* Missing checkout

* Install missing Python module on OSX

* Remove macOS on Travis

Co-authored-by: Michael Baentsch <57787676+baentsch@users.noreply.github.com>
2020-01-30 22:40:01 -05:00
Douglas Stebila
02b57bf420
Sync with PQClean as of January 22, 2020 (#584)
* Sync with PQClean as of January 22, 2020

* Add SHA256 incremental state destroy function

Following https://github.com/PQClean/PQClean/pull/247

* Fix typo

* Update PQClean commit in algorithm data sheets

[skip ci]

* Single underscore in header inclusion guards
2020-01-23 18:44:04 -05:00
Douglas Stebila
01014db7d5 Add Kyber90s variants 2019-10-23 22:07:13 -04:00
Douglas Stebila
c6e646f4c2 Sync with PQClean 2019-10-23 22:04:55 -04:00
Nir Drucker
4a2a3cd059 BIKE Round 2 (#554)
* Supporting BIKE KEM reference code

* Hiding print global symbol when VERBOSE!=2

* Supporting USE_OPENSSL + OPENSSL_DIR

* Rename functions by using a legend instead of the FN() macro

* prettyprint

* Fixing the bug caused by OpenSSL GF2m_mod_inv API change in 1.1* see https://github.com/open-quantum-safe/openssl/issues/42 for more details.

* 1) Adding BIKE-1 Level-1/3 with the FO tranformation
2) Removing BIKE-2/3
3) Removing BIKE-1 Level-5
4) Renaming BIKE-1 Level-1/3 to BIKE-1-CPA

* Fixing tests

* Fixing the CPA KATs

* Supporting AVX512

* Enable BIKE in CircleCI

* Fixing ARM script with the new BIKE names.

* Don't include OpenSSL headers when the flag --without-openssl is provided

* Fixing duplicate symbol

* Typo in symbol name

* Removing the dependency on config.h

* Addressing comments from the review

* Update KEM algorithms length [skip ci]
2019-10-17 15:21:44 -04:00
Douglas Stebila
98f83b8e81 Fix algorithm count for signature schemes 2019-09-25 14:06:23 -04:00
Christian Paquin
71568f8fa0 Re-enabled qtestla sig arm tests. 2019-09-23 10:45:17 -04:00
Christian Paquin
92fda4ab70 Added qtesla round2, replacing heuristic param sets with the provably-secure ones. 2019-09-19 13:14:39 -04:00
Douglas Stebila
d768b1f89a Update templates to match 2019-09-16 20:27:24 -04:00
Christian Paquin
36b13ec53e Integrated the SIKE v3.2 library, containing the compressed variants. 2019-09-11 16:26:40 -04:00
Douglas Stebila
4d10e865c1 Temporarily remove Rainbow 2019-08-13 17:08:10 -04:00
Douglas Stebila
cc640c7973 Add new symbols to DLL 2019-08-12 09:31:05 -04:00
Douglas Stebila
2e0b6e443a Add function to check if SIGs enabled 2019-08-12 09:27:49 -04:00
Douglas Stebila
792bf04d13 Add function to check if KEMs enabled 2019-08-12 09:27:49 -04:00
Douglas Stebila
4f9f811a3d Fix compilation problems on ARM 2019-08-07 08:48:33 -04:00
Douglas Stebila
52adc6c9df Try removing some hacks for Travis ARM build 2019-08-07 08:48:33 -04:00
Douglas Stebila
4d492b9270 Add macros containing compilation information and print in test programs
Fixes #331
2019-08-02 22:03:13 -04:00
Douglas Stebila
1b48c57187 Add remaining signature KATs for schemes from PQClean 2019-08-02 10:46:03 -04:00
Douglas Stebila
9dcbb7bdb0 Generate kat_sig combine_message_signature from template 2019-08-02 09:50:21 -04:00
Douglas Stebila
91614924b6 Make test_kem and test_sig run one algorithm at a time 2019-08-01 13:36:41 -04:00
Douglas Stebila
ab970ae2c0 Switch KEM KAT checks to Python test suite 2019-08-01 11:53:15 -04:00
Douglas Stebila
d42462a90f Add Rainbow from PQClean 2019-07-31 19:59:10 -04:00
Douglas Stebila
c9e23de678 Spell the word SPHINCS correctly 2019-07-31 09:49:05 -04:00
Douglas Stebila
6bf57f89c9 Add SPHINCS+ SHA-256 variants 2019-07-31 09:49:05 -04:00
Douglas Stebila
8d17b22961 Add SPHINCS+ Haraka and SHAKE256 variants 2019-07-31 09:49:05 -04:00
Douglas Stebila
a1a50771e7 Missing hooks for SHA-2 implementation in build system 2019-07-30 13:01:08 -04:00
Douglas Stebila
11e09f4cbc Remove LEDAcrypt temporarily 2019-07-16 15:43:32 -04:00
Douglas Stebila
f9ab067dc5 Add LEDAkem 2019-07-15 22:41:08 -04:00
Douglas Stebila
e81af2e03f Typo 2019-07-15 22:41:08 -04:00
Douglas Stebila
3231c929be Update templates to use arbitrary implementation, not just _clean 2019-07-15 22:41:08 -04:00
Douglas Stebila
131580a029 Fix test program building/running on emulated arm 2019-07-05 19:25:38 -04:00
Douglas Stebila
5d97502e9c Consolidate configure options for OpenSSL 2019-07-05 15:12:32 -04:00
Douglas Stebila
eda92b0b4a
Merge pull request #513 from open-quantum-safe/ds-add-saber
Add SABER from PQClean
2019-07-04 17:29:06 -04:00
Douglas Stebila
a6c6be76fd Add SABER from PQClean 2019-07-04 13:43:27 -04:00
Douglas Stebila
5227cc7cd2 Add MQDSS from PQClean 2019-07-04 13:33:47 -04:00
Douglas Stebila
fd1321f09d Fix bug 2019-07-01 15:42:42 -04:00
Douglas Stebila
ea2dcb9db5 More naming fixes 2019-07-01 15:41:33 -04:00
Douglas Stebila
b64de5662c More consistent naming 2019-07-01 15:20:57 -04:00
Douglas Stebila
43676d9297 More consistent naming 2019-07-01 15:17:20 -04:00
Douglas Stebila
3c1838533c Signature templating in Visual Studio 2019-07-01 14:43:40 -04:00
Douglas Stebila
ee64cf8bf0 More work on signature templating 2019-07-01 14:34:11 -04:00
Douglas Stebila
350880a2b8 Partial work on signature templating 2019-07-01 14:19:27 -04:00
Douglas Stebila
fe6929dc61 Start getting ready for signature templating 2019-07-01 14:00:20 -04:00
Douglas Stebila
9546fed9fc Remove Frodo from PQClean auto generation 2019-06-25 11:36:51 -04:00