88 Commits

Author SHA1 Message Date
Douglas Stebila
2b76872bf8 Merge branch 'master' into ds-frodo-round2-msr 2019-06-27 14:22:56 -04:00
Douglas Stebila
e7a1b2d135
Add Dilithium filters (#503) 2019-06-27 14:16:05 -04:00
Douglas Stebila
6730a17173 Add Frodo to VS project 2019-06-27 10:12:27 -04:00
Douglas Stebila
9546fed9fc Remove Frodo from PQClean auto generation 2019-06-25 11:36:51 -04:00
Douglas Stebila
164c917d34 Typo 2019-06-19 10:43:33 -04:00
Douglas Stebila
c951cf63d5 Consistent Dilithium capitalization 2019-06-19 10:15:56 -04:00
Douglas Stebila
d0d3808785 Add Dilithium to Visual Studio project 2019-06-18 22:08:08 -04:00
Douglas Stebila
fe65a48a03 Add KEM header files to VS project 2019-06-14 15:33:56 -04:00
Douglas Stebila
78d8c817e5 KEM headers go in different spot in VS filters 2019-06-14 15:29:34 -04:00
Douglas Stebila
9a2697db22 Add KEM header files to VS filters 2019-06-14 15:25:36 -04:00
Douglas Stebila
b930c4a816 Create filters for familiies in Visual Studio project 2019-06-14 15:21:04 -04:00
Douglas Stebila
16ea923cec Replace NewHope with PQClean round 2 version, update PQClean KEMs 2019-06-13 20:34:35 -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
Douglas Stebila
1858e929b5 Increase stack size on Windows to fit larger Frodos 2019-05-17 16:45:53 +02:00
Douglas Stebila
cb7975d26f Try to generate VisualStudio files 2019-05-17 16:15:14 +02:00
Douglas Stebila
2cbbc8bca9 Remove manually added Kyber 2019-05-12 15:22:49 -04:00
Douglas Stebila
d112a8a1b0
Merge pull request #475 from open-quantum-safe/ds-frodo-round2
Add FrodoKEM Round 2
2019-05-05 17:47:20 -04:00
Christian Paquin
8198072ce7 Integrated Picnic round2. 2019-05-02 22:07:21 -04:00
Douglas Stebila
cfc4191926 Temporarily disable FrodoKEM 976 and 1344 on Windows 2019-05-01 16:28:17 -04:00
Christian Paquin
e7c4d36cc6 Merge branch 'ds-frodo-round2' of https://github.com/open-quantum-safe/liboqs into ds-frodo-round2
Merging conflicts.
2019-05-01 13:39:29 -04:00
Christian Paquin
6bd0bf7263 Added Frodo round2 to Visual Studio, temporarily disabling 976 and 1344 param sets. 2019-05-01 13:32:14 -04:00
Christian Paquin
4bbf309812 Modified OQS project to preserve the source hierarchy in output directory to avoid object file collisions. (#478) 2019-04-30 20:20:06 -04:00
Christian Paquin
f8eda4dce7 Temporarily removed Frodo round2 from Visual Studio build until properly integrated. 2019-04-26 08:17:20 -04:00
Douglas Stebila
ab2c96a65e
Replace the Kyber768 implementation in liboqs master with PQClean's implementation (#466)
* Initial import of PQClean's Kyber768 clean implementation

* Integrate PQClean's Kyber768 into liboqs master

* Exempt PQClean code from namespacing and prettyprint

* Build PQClean's Kyber768 on Windows

* Add PQClean shim headers to Windows build

* Include PQClean's shim headers on Windows

* Update Kyber768 implementation from PQClean 

Commit 
0fa56021d1

* Update algorithm datasheet for Kyber768 PQClean
2019-03-20 12:50:22 -04:00
Christian Paquin
a7da6ec8ea Updated Picnic to v1.3.1 (#457)
* Added example_kem/sig and speed_kem/sig to Visual Studio.

* Updated picnic to v1.3.1

* Renamed exposed picnic functions to satisfy OQS naming conventions.

* Replaced free functions with OQS's versions.

* Removed picnic's config.h do avoid conflict with OQS's.

* Updated Visual Studio project with latest Picnic files, and removed unused commented-out code.

* Removed some hardcoded picnic defines.

* Added oqs's common.h to aligned_alloc's includes.
2019-01-31 19:49:54 -05:00
Christian Paquin
01be6694ed Added Kyber to Windows build. (#453)
* Added Kyber to the liboqs Master branch

* Added OQS_MEM_cleanse calls to Kyber

* Updated file formatting with make prettyprint

* Added algorithm datasheet for Kyber

* Added Kyber KAT files

* Copied kyber header file to Visual Studio dir.

* Added kyber to Visual Studio
2018-12-21 13:07:51 -05:00
cryptojedi
1e36f1f000 Add Kyber to master branch (#448)
* Added Kyber to the liboqs Master branch

* Added OQS_MEM_cleanse calls to Kyber

* Updated file formatting with make prettyprint

* Added algorithm datasheet for Kyber

* Added Kyber KAT files

* Copied kyber header file to Visual Studio dir.
2018-12-20 17:00:03 -05:00
Christian Paquin
0f8b8d1fbb Adds functions to count the number of supported KEMs/sigs (#449)
* Added example_kem/sig and speed_kem/sig to Visual Studio.

* Added a function to get the number of supported KEM/sig mechanisms

Useful non-C wrappers who don't have access to the OQS_KEM/SIG_algs_length macro value in the kem/sig.h.
2018-12-17 09:55:24 -05:00
Douglas Stebila
d3a8f62045 Fix function names in SIKE 2018-10-19 16:13:16 -04:00
Douglas Stebila
c409ce6e78 Mark relevant functions with OQS_API 2018-10-19 15:54:28 -04:00
Christian Paquin
8e060a720a Fix Visual Studio DLL projects (#419)
* Added example_kem/sig and speed_kem/sig to Visual Studio.

* Updated the dll def file after OQS's refactoring, fixed test_kem's DLL projects config, and added ReleaseDLL config to appveyor.
2018-10-19 15:25:44 -04:00
Douglas Stebila
2f05262bf4 Rename NewHope to NewHopeNIST to be consistent with nist-branch 2018-10-09 21:49:11 -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
Christian Paquin
4f32761b5c Check KEM KAT files in appveyor (#406)
* Added example_kem/sig and speed_kem/sig to Visual Studio.

* Check generated KAT files in appveyor.
2018-10-09 19:49:30 -04:00
Shravan Mishra
95cdb90059 Master add kem newhopenist (#382)
* Add newhope kem

* kem newhope

* Fix code for KAT

* Fix KAT target

* Add datasheet

* Fix parameter set

* Fix parameter set

* Formatting changes

* Add newhope to window's build

* Further windows changes and pretty-print

* ifdef gcc attribute syntax for windows

* Pretty print

* Fixed newhope's Visual Studion inclusion.

* Added missing files.

* Remove rng.h

* Added kem_newhope.h to the installed headers.
2018-10-09 19:47:30 -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
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
9b27edb54e Remove KEX-related items from Visual Studio (#383)
* Removed KEX from Visual Studio.

* Removed further refs to KEX items in Visual Studio.
2018-09-21 12:54:11 +02:00
Shravan Mishra
4b3052b624 KAT check should run without OpenSSL (#386)
* Kat check should run without openssl

* Add rand_nist.c back

* Add MacOS build without OpenSSL to check KAT
2018-09-21 12:52:56 +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
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
Christian Paquin
9e6786dd13 Adds KEM API and frodokem to Visual Studio (#354)
* Added KEM API to Visual Studio build, and added frodokem.

* Fixed call to Windows' system randomness, and released crypto context at exit (issue 349).

* Added missing test_kem files.
2018-08-30 16:54:07 -04:00
Christian Paquin
6287e58ed6 Fixed Visual Studio build after master's API refactoring. (#352)
* Fixed Visual Studio build after master's API refactoring.

* Replaced deleted kex_frodo with kex_newhope in minimal_kex_oqs.
2018-08-30 11:10:42 -04:00
Douglas Stebila
f5df1c159f
Remove kex_lwe_frodo and add kem_frodokem to master-new-api (#302)
* Remove kex_lwe_frodo

* Add FrodoKEM

* Prettyprint

* Missing liboqs.a

* Fix errors because of disabling frodokem

* Fix sike OQS_KEM_ prefix related inconsistencies

* Fix naming inconsistensies
2018-07-24 22:42:49 -04:00
Douglas Stebila
08330aee8b Remove KEX_RLWE_BCNS15 2018-07-08 16:10:56 -04:00
Douglas Stebila
aed3059e31
Remove kex_rlwe_msrln16 (#286) 2018-05-16 13:58:23 -04:00