204 Commits

Author SHA1 Message Date
Douglas Stebila
da44cbca68 Switch free check to Python test suite 2019-08-01 14:49:18 -04:00
Douglas Stebila
3ab9044f51 Prettyprint 2019-08-01 14:32:20 -04:00
Douglas Stebila
f1e2cfb3b9 Fix error handling in tests_style 2019-08-01 14:32:00 -04:00
Douglas Stebila
30d44b8ba4 Switch algorithm datasheets checks to Python test suite 2019-08-01 14:30:25 -04:00
Douglas Stebila
4443b99975 Missing import module 2019-08-01 14:18:45 -04:00
Douglas Stebila
e3a949a31a Filter some tests 2019-08-01 14:14:43 -04:00
Douglas Stebila
52ccd7729a Switch style checks to Python test suite 2019-08-01 14:13:39 -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
ba6027f4f4 Change how disabled KEMs are handled 2019-08-01 13:20:32 -04:00
Douglas Stebila
ab970ae2c0 Switch KEM KAT checks to Python test suite 2019-08-01 11:53:15 -04:00
Douglas Stebila
e0603f1295 Change global namespace check to a Python unit test 2019-08-01 11:07:11 -04:00
Douglas Stebila
cd744fa6b3 Fix execution bug 2019-07-30 22:41:34 -04:00
Douglas Stebila
e7ecb4263a Don't use subprocess.run 2019-07-30 22:41:20 -04:00
Douglas Stebila
d804a52f39 Install pytest for Travis 2019-07-30 21:04:27 -04:00
Douglas Stebila
ec1982eef0 Prettyprint 2019-07-30 20:55:42 -04:00
Douglas Stebila
f660424dea Add unit tests for SHA-2 API 2019-07-30 20:54:47 -04:00
Christian Paquin
1069667951 Set the picnic sig_len value before calling the low-level signing API, and removed this setting from the corresponding unit test. 2019-07-19 14:15:41 -04:00
Douglas Stebila
dce10891f3 Newer CPU feature detection 2019-07-09 09:58:16 -04:00
Douglas Stebila
d05ba23030 Use OpenSSL for AES when available 2019-07-08 17:07:19 -04:00
Douglas Stebila
131580a029 Fix test program building/running on emulated arm 2019-07-05 19:25:38 -04:00
Douglas Stebila
3394b7d42d Fix order in which test program dependencies are linked 2019-07-05 17:46:45 -04:00
Douglas Stebila
1d87689651 Always build test_aes and test_sha3 2019-07-05 15:18:04 -04:00
Douglas Stebila
f520ef7294 Don't build test_aes and test_sha3 all the time 2019-07-04 22:01:31 -04:00
Douglas Stebila
d9747e398e Switch SHA-3 to same implementation as in PQClean 2019-07-04 21:40:18 -04:00
Douglas Stebila
13b5bb5896 Fix macros so AES version compilation actually works 2019-06-20 20:58:16 -04:00
Douglas Stebila
cd006f698b Merge branch 'master' of github.com:open-quantum-safe/liboqs into cp-add-picnic-round2 2019-06-10 11:02:28 -04:00
Christian Paquin
3178f77bce Initialize the sig len value before calling the signature function to avoid failures in some cases.
Uncommented debugging code.
2019-05-22 11:39:26 -04:00
Christian Paquin
3688dd6b7d Temporarily disabled bad signature test case to investigate travis and appveyor failures 2019-05-21 12:20:48 -04:00
Duncan Jones
1084a8d57d Link main liboqs library to OpenSSL when enabled 2019-05-16 08:44:41 +01:00
Douglas Stebila
e365ea4f14
Rename OQS' config.h to oqsconfig.h and separate autoconf variables (#437)
* Create separate public oqsconfig.h

* Fix compiler flags for BIKE additional implementation

* No BIKE reference implementation macro
2018-11-01 11:11:31 -07:00
Ben Davies
c142c8e390 Fixed typo in sig name. (#434) 2018-10-30 14:04:31 -07:00
Douglas Stebila
85b1cbb5ec
Sync master with nist-branch, including sorting algorithms (#418)
* Sync master with nist-branch, including sorting algorithms

* Forgot to declare function before use
2018-10-14 15:31:22 -04:00
Douglas Stebila
84e8dcb119
Remove old OQS_RAND object and API (#403)
* Remove old RAND API, AES-CTR and ChaCha20-based RNGs, and test_rand.

* Fix build and API for shared libraries

* Fix problems from merge with master
2018-10-09 20:36:57 -04:00
shravan
1750a33901 Merge master 2018-10-03 22:27:31 -04:00
Shravan Mishra
3dbd609e92 Master rm kex (#402)
* Remove kex_ntru from master (issue #370).

* Remove KEX components (issue #372).

* Remove anything kex

* Tweaks to READMEs re: removal of KEX.
2018-10-03 21:16:49 -04:00
Douglas Stebila
b1cee208e6 Merge branch 'master' into master-sync-with-nist 2018-10-03 12:44:31 -04:00
Douglas Stebila
79d77d3617 Sync common signature files on master with nist-branch 2018-10-03 11:56:54 -04:00
Shravan Mishra
d6bfc7384c Shared library support added (#363)
* Shared library support added

* Ignore warnings regrading no symbols in object files on Mac

* Fix a typo

* Add libtool flag to bike

* Test

* Fix static build flag

* Whitespace

* Separate tests into two parts one exercising exposed api versus intertnal apis

* Openssl include fix

* Fix all-tests.sh

* test already builds kat_kem

* Indentation and variable name change
2018-10-03 11:36:15 -04:00
Douglas Stebila
a7a45c9238 Fix minor build failures 2018-10-03 11:27:47 -04:00
Douglas Stebila
7fa2f8bf95 Sync common headers on master with nist 2018-10-02 17:26:22 -04:00
Christian Paquin
76538fde13 Update to Visual Studio (Sept 2018) (#395)
* Added example_kem/sig and speed_kem/sig to Visual Studio.

* Added kat_kem to VS

* Re-added SIDH/SIKE to Visual Studio
2018-10-01 16:22:23 -04:00
Christian Paquin
dc9617f81f Refactored sig api following nist-branch (issue380) (#391)
* Fixed a typo in a comment

* Refactored sig API following nist-branch (also fixes issue 380)

* Fixed Windows compilation error in sig.c.

* Added Picnic to Windows' config, and changed defaul alg to Picnic (since qTesla is not yet supported on Windows)

* Moved sig_picnic and sig_qtesla under sig directory, to harmonize with kem api

* Use different default sig alg on Windows to fix Travis back-compat tests and platform gap.

* Further changes required for OQS to be properly used by applications

* Compare OQS functions's return values to OQS error codes in sig.c.

* Fixed typos in comments.

* Replaced minimal_oqs_sig with example_sig.

* Ensure travis tests fail on error

* Add try-catch block in all-tests.sh

* Ignore example_sig

* Point global-namespace-check to .libs/liboqs.a

* More precise error handling in global-namespace-check

* Warning colours in travis tests and error handling in free-check

* Error handling in style-check

* Clean up style-check

* Removed leftover minimal_sig_oqs ref and VS projects.

* Prettyprint

* Revert clang-format version check

* Re-revert clang-format style check

* Prettyprint

* Added speed_sig to master.

* Removed superfluous extern from sig schemes .h
2018-09-26 10:01:53 -04:00
Ben Davies
493e5ece37 Remove kex_code_mcbits (issue 371). (#384) 2018-09-21 15:48:17 +02:00
Christian Paquin
e2a467dc9e Refactored sig API (#379)
* Removed the OQS_RAND object from the sig API, to harmonize with the KEM API (issue 374)

* Updated sig API to match nist-branch's (except for the sign/open functions).
2018-09-18 18:09:11 +02:00
Christian Paquin
b4766939a9 Migrated SIDH to KEM API (issue 350) (#368)
* Exposed SIDH through KEM API.

* Removed old kex_sidh_msr refs

* Removed kex_sidh_msr refs from Visual Studio project

* Removed kex_sidh_msr from test_kex.

* Added sidh alg sheet

* Skip sidh in kat check (no kat files for sidh, unlike the related sike alg)

* Added return values to sidh KEM methods (to fix wrong default return values on mac).

* Addressed review comments on PR368.

* Removed text_kex from Visual Studio; no more KEX built by default on Windows.

* Removed test_kex from appveyor test.

* Removed minimal_kex from appveyor
2018-09-17 05:00:52 -04:00
Shravan Mishra
a23741082b
Merge pull request #358 from open-quantum-safe/master-remove-kex-newhope
Remove kex_rlwe_newhope
2018-09-14 11:34:47 -04:00
Douglas Stebila
8ae74ba3c4 Add AES 256 and refactor AES test vectors 2018-09-05 22:55:39 -04:00
Douglas Stebila
625c5c3cc8 Switch minimal_kex_oqs to use SIKE 2018-09-05 20:21:51 -04:00
Shravan Mishra
18365bf828 Add KAT checks (#348)
* Enable KAT-check

* Add check_kats script

* Add kat kem checks

* Make pretty print happy

* Update travis

* Update .gitignore

* Add kat-check to travis

* Fix path in  kat-check

* Add -lm for kat

* Update travis.yml

* If algorithm is not enabled then kat check should not throw errors

* Prevent code duplication

* Add new kat files and modified script from nist-branch for bike

* Don't fail if algorithm not enabled

* Add rand_nist.c to VisualStudio build (manually edited VS files)

* Remove rand_nist.c from windows build

* Disable rand nist for windowa

* Fix
2018-09-04 21:36:07 -04:00
Douglas Stebila
78a231247e Remove kex_rlwe_newhope 2018-09-04 16:09:29 -04:00