59 Commits

Author SHA1 Message Date
Douglas Stebila
01014db7d5 Add Kyber90s variants 2019-10-23 22:07:13 -04:00
xvzcf
4e6b694507 Issue 557: Miscellaneous fixes (#562)
* Added -Wstrict-prototypes flag and fixed resulting errors.

* Removed double underscores from header guards.

* Changed EVP_MD_CTX_create to EVP_MD_CTX_new and EVP_MD_CTX_destroy to EVP_MD_CTX_free.

* Fixed comments.

* Changed Kyber function signatures.

* Revert "Changed EVP_MD_CTX_create to EVP_MD_CTX_new and EVP_MD_CTX_destroy to EVP_MD_CTX_free."

This reverts commit f09b5e49d73b16b56d332fbcfc3b671966032fd4.
2019-10-23 22:01:37 -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
Christian Paquin
92fda4ab70 Added qtesla round2, replacing heuristic param sets with the provably-secure ones. 2019-09-19 13:14:39 -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
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
2e2fdb89eb Add basic SHA-2 implementation 2019-07-30 13:01:08 -04:00
Christian Paquin
e6fde7ff3e Set SIKE makefile options from OQS configure. 2019-07-18 16:32:27 -04:00
Douglas Stebila
5f383ebe56 Remove BMI2 detection 2019-07-09 09:58:16 -04:00
Douglas Stebila
dce10891f3 Newer CPU feature detection 2019-07-09 09:58:16 -04:00
Douglas Stebila
39122076be BIKE additional implementation dependent on AES instructions 2019-07-08 17:52:30 -04:00
Douglas Stebila
a25ade84b0 Detect AES operations 2019-07-08 17:41:06 -04:00
Douglas Stebila
1d3ff68bae Remove AES-NI build option 2019-07-08 17:12:29 -04:00
Douglas Stebila
d05ba23030 Use OpenSSL for AES when available 2019-07-08 17:07:19 -04:00
Douglas Stebila
c5a2611ff6 Fix error in enable/disable detection 2019-07-05 17:23:39 -04:00
Douglas Stebila
9d61d2e136 Improved OpenSSL detection; start using OpenSSL for SHA-3 if available 2019-07-05 17:04:19 -04:00
Douglas Stebila
f52e2ced5c Reorganize configure enable/disable macros 2019-07-05 15:43:29 -04:00
Douglas Stebila
5d97502e9c Consolidate configure options for OpenSSL 2019-07-05 15:12:32 -04:00
Douglas Stebila
745e630dae Remove libsodium reference 2019-07-05 14:19:24 -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
Christian Paquin
b073ecc5de Merge remote-tracking branch 'origin/master' into cp-sike-round2
Merge with master.
2019-07-02 00:30:38 -04:00
Douglas Stebila
43676d9297 More consistent naming 2019-07-01 15:17:20 -04:00
Douglas Stebila
350880a2b8 Partial work on signature templating 2019-07-01 14:19:27 -04:00
Christian Paquin
f492161d99 Merge remote-tracking branch 'origin/master' into cp-sike-round2
Merge with upstream master.
2019-06-28 16:59:34 -04:00
Christian Paquin
ae49150581 Initial integration of SIDH/SIKE v2. Still need to enable optimizations and all platforms. 2019-06-28 16:31:40 -04:00
Douglas Stebila
9546fed9fc Remove Frodo from PQClean auto generation 2019-06-25 11:36:51 -04:00
Douglas Stebila
c951cf63d5 Consistent Dilithium capitalization 2019-06-19 10:15:56 -04:00
Douglas Stebila
223ced1de7 Merge remote-tracking branch 'oqs/master' into PQClean_Dilithium 2019-06-18 20:28:22 -04:00
Douglas Stebila
16ea923cec Replace NewHope with PQClean round 2 version, update PQClean KEMs 2019-06-13 20:34:35 -04:00
dimisik
e8d1dbaed8 Integrates Dilithium 2019-06-13 16:39: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
dc12209ad7 Add Kyber round 2 from PQClean 2019-05-12 15:36:05 -04:00
Douglas Stebila
2cbbc8bca9 Remove manually added Kyber 2019-05-12 15:22:49 -04:00
Douglas Stebila
75cd636110 Add NTRU Round 2 2019-05-12 15:18:16 -04:00
Douglas Stebila
2d9dec989b Auto-generate more KEM files for PQClean implementations 2019-05-12 14:52:59 -04:00
Christian Paquin
8198072ce7 Integrated Picnic round2. 2019-05-02 22:07:21 -04:00
Douglas Stebila
8fe4928dd6 Add FrodoKEM-976 and 1344 to build system 2019-04-14 16:24:03 -04:00
Douglas Stebila
19251c41ad Remove FrodoKEM round 1 and start adding FrodoKEM round 2 2019-04-13 15:24:52 -04:00
Tobias Heider
7005a1d07f Add support for building on OpenBSD (#471) 2019-03-26 21:13:11 -04: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
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
Douglas Stebila
2f05262bf4 Rename NewHope to NewHopeNIST to be consistent with nist-branch 2018-10-09 21:49:11 -04:00
oittaa
654e2e5af3 Use getentropy() if available (#407)
* Check if getentropy exists in configure.ac

* Use getentropy in rand.c if available

* rand.c: try to fix broken osx

* Use /dev/urandom with broken operating systems

* Enable getentropy on macOS

* Don't include <sys/random.h> on Windows

* getentropy needs different header on old Linux versions

* Move getentropy check to different autoconf file
2018-10-09 20:36:26 -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