1005 Commits

Author SHA1 Message Date
Nir Drucker
8451069750 Using sllv instead of slli for compiling BIKE with GCC-6 (#598) 2020-01-28 09:23:07 -05:00
Douglas Stebila
d4cd8d44a1
Don't use cycle count register on Raspberry Pi (#583)
* Don't use cycle count register on Raspberry Pi

* Prettyprint
2020-01-27 19:50:23 -05:00
Hye Sung Jung
30435a74b7 Fix spelling errors (#596) 2020-01-27 19:21:19 -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
Nir Drucker
f39499aa8c Compiling BIKE without AVX512-BW fix (#593)
* BIKE needs AVX512 full support

* Missing inline when compiling with AVX2
2020-01-23 13:49:59 -05:00
Nir Drucker
afdff6e0f3 Updating BIKE's code (#576)
* 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.

* Updating BIKE's constant-time implementaion

* Fixing Makefile

* Missing declaration

* Merge

* Merge

* Missing cast

* Update license headers

* Missing include

* Update BIKE algorithm data sheet

* More details on implementation version

Based on email from Shay Gueron

Co-authored-by: Douglas Stebila <dstebila@users.noreply.github.com>
2020-01-22 21:13:00 -05:00
Michael Baentsch
8ef00c06d1 Centos testing added (#581) 2020-01-21 20:52:53 -05:00
Christian Paquin
bd671eb844 Disabled qtesla avx2 optimizations on darwin (#582)
* Disabled qtesla avx2 optimizations on darwin.

* Only use optimized qtesla kat file on linux
2020-01-21 20:36:36 -05:00
Christian Paquin
41825d7699
Merge pull request #575 from christianpaquin/cp-updated-sike-dec2019
Integrated SIKE's nov-dec 2019 updates
2020-01-07 10:35:11 -05:00
Christian Paquin
386372ba7d Harmonized example_sig with example_kem. (#577) 2019-12-19 14:01:04 -05:00
Christian Paquin
d68bacfa58 Fix nightly qtesla failure on gcc5 (#573) 2019-12-16 12:01:39 -05:00
Christian Paquin
baeeb44c21 Integrated commit a610f1 from cmake branch (PR556) fixing warnings when using stricter compile flags. 2019-12-11 17:34:28 -05:00
Christian Paquin
f7222d13f0 Prettyprint 2019-12-06 13:11:49 -05:00
Christian Paquin
bc448e43b2 Integrated recent changes in SIKE lib (from Nov 26th, 33a4bf commit), including a security patch. 2019-12-06 12:57:42 -05:00
Christian Paquin
b4b262281c
Merge pull request #570 from open-quantum-safe/ds-qtesla-needs-aes
OQS_SHA3_cshake128_simple4x only defined if both AES and AVX2 instructions available
2019-11-06 19:37:23 -05:00
Douglas Stebila
0810424f96 OQS_SHA3_cshake4x_simple only defined if both AES and AVX2 instructions available 2019-11-06 15:50:15 -05:00
Vlad Gheorghiu
c01d3ce5ef Update rand.h (#569)
* Update rand.h

* Update rand.h
2019-11-05 19:04:03 -05:00
Christian Paquin
4cb278e36a Adds avx2 implementation for qtesla (#553)
* Renamed qtesla portable folder, to better integrate avx2 files.

* Added avx2 support to qtesla

* Disabled KAT check for qtesla when avx2 is enabled.

* Commented the disabling of kat check for qtesla w/ avx2

* Fixed portable qtesla version and disabled avx2 on windows.

* Now reads use options from oqsconfig.h, accessible in CI tests.

* Skip config option check on windows.

* Moved cshake128x4 from qtesla dir to common sha3 dir.

* Added qtesla avx2 KATs, and use them when avx2 is enabled

* Prettyprint

* Fixed the qtesla avx2 condition check (needed a not xor)
2019-11-05 19:03:33 -05:00
xvzcf
785d6259c0
Merge pull request #561 from open-quantum-safe/kyber-90s
Add Kyber90s variants
2019-10-31 10:22:46 -04:00
Douglas Stebila
06507aaea5 Prettyprint 2019-10-23 22:36:51 -04:00
Douglas Stebila
01014db7d5 Add Kyber90s variants 2019-10-23 22:07:13 -04:00
Douglas Stebila
1834cd16f1 Update AES256 CTR to take 12- or 16-byte IV 2019-10-23 22:06:12 -04:00
Douglas Stebila
2808c4b5b3 Add AES256 CTR mode 2019-10-23 22:06:11 -04:00
Douglas Stebila
80a031ecd3 Remove indentation in Makefile 2019-10-23 22:05:11 -04:00
Douglas Stebila
c6e646f4c2 Sync with PQClean 2019-10-23 22:04:55 -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
Vlad Gheorghiu
255b836e47
Merge pull request #563 from open-quantum-safe/vsoftco-patch-1
Update .gitignore
2019-10-23 15:09:53 -04:00
Vlad Gheorghiu
f3a1a8bc52
Update .gitignore
So we don't get bothered by cmake builds (assuming we build in 'build' as it is customarily for CMake)
2019-10-23 13:33:55 -04:00
Douglas Stebila
8a920da6cc
Use C code for BIKE on macOS (#559)
* Use C code for BIKE on macOS

* Remove indentation in Makefile
2019-10-22 09:30:43 -04:00
Douglas Stebila
f44553c5ad Update release notes for BIKE Round 2 2019-10-17 15:26:06 -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
d5738a2b80 Update liboqs version to 0.2.1-dev 2019-10-17 09:41:49 -04:00
Douglas Stebila
e01d14eeee Update versions for 0.2.0 release 0.2.0 2019-10-08 18:44:34 -04:00
Douglas Stebila
f60f6c900a Update versions for 0.2.0-rc3 2019-10-01 16:53:08 -04:00
Douglas Stebila
ad1b44454d
Merge pull request #552 from christianpaquin/cp-add-cache-dir-to-gitignore
Added .cache to .gitignore.
2019-09-25 16:09:59 -04:00
Christian Paquin
20b9d6b841 Added .cache (created by python test framework) to .gitignore. 2019-09-25 15:08:55 -04:00
Douglas Stebila
98f83b8e81 Fix algorithm count for signature schemes 2019-09-25 14:06:23 -04:00
Douglas Stebila
0fd55565c4
Merge pull request #548 from christianpaquin/cp-qtesla-round2
Updated qTesla with round2 implementation
2019-09-24 16:13:53 -04:00
Christian Paquin
385817ac88 Moved qtesla refs outside OQS auto-generated blocks. 2019-09-24 15:17:55 -04:00
Douglas Stebila
90f90def3b No make parallelization in emulated CircleCI builds 2019-09-24 15:01:41 -04:00
Christian Paquin
71568f8fa0 Re-enabled qtestla sig arm tests. 2019-09-23 10:45:17 -04:00
Christian Paquin
be729e711d Export qtesla functions in DLL 2019-09-20 09:59:35 -04:00
Christian Paquin
780bc30ee5 Added qtesla to Visual Studio build 2019-09-19 22:10:52 -04:00
Christian Paquin
5be40221a5 prettyprint 2019-09-19 21:57:59 -04:00
Christian Paquin
8202cc2aff Merged commit dcaabb from qtesla upstream. 2019-09-19 21:41:45 -04:00
Christian Paquin
c24c926d90 Ran test_style.py. 2019-09-19 13:26:32 -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
25c9f8cf74
Merge pull request #547 from christianpaquin/cp-sidh-v3.2
Upgraded SIKE to v3.2
2019-09-17 10:13:06 -04:00
Douglas Stebila
d768b1f89a Update templates to match 2019-09-16 20:27:24 -04:00
Christian Paquin
0a82a58158 Updated Visual Studio project adding the SIKE compressed variants. 2019-09-12 12:44:20 -04:00