22 Commits

Author SHA1 Message Date
xvzcf
722ca648a1
Overhauled compiler-time CPU-extension detection. (#713)
Refactored .CMake/alg_support.cmake, and kem/ and sig/ CMakeLists.txt files.

Refactored copy_from_pqclean/ templating.

Added custom x64 CPU extension detection code and removed cpu_features.

Removed duplicate Kyber source directories.
2020-04-14 07:58:41 +02:00
Michael Baentsch
9507608882
Optimized build refactoring. (#683) 2020-04-01 11:33:59 -04:00
Nikita Karpey
438fecf289
Use cpu_features instead of __builtin_cpu (#654). 2020-03-24 15:12:06 -04:00
xvzcf
57f2bcf91f
Replaced add_compile_options(-fPIC) with set(CMAKE_POSITION_INDEPENDENT_CODE ON) (#672)
* Use POSITION_INDEPENDENT_CODE property instead of add_compile_options(-fPIC).

* Fixing CircleCI.
2020-03-19 20:07:58 -04:00
Douglas Stebila
4c3016f43e
Add Rainbow from PQClean (#662)
* Add Rainbow from PQClean

* Adapt CircleCI config to handle larger number of local files
2020-03-15 20:25:42 -04:00
Douglas Stebila
eaec7972ba
Add Classic McEliece from PQClean (#661)
* Add Classic McEliece from PQClean

* Enlarge stack size on Windows

* Enlarge stack size with Mingw/Cygwin
2020-03-15 08:54:55 -04:00
Douglas Stebila
795c1b7932
Add Falcon from PQClean (#660)
* More cleanup after replaced dashes in filenames

* Add Falcon from PQClean and sync with latest PQClean commits

* Try to fix type punning warning in Falcon

* Missed templating

* Formatting change
2020-03-14 10:56:42 -04:00
xvzcf
adcfe2744c Replaced dashes in filenames with underscores for consistency. 2020-03-11 15:06:26 -04:00
xvzcf
9f4cffbfda Moved the contents of src/crypto into src/common. 2020-03-11 15:06:26 -04:00
xvzcf
0d39a601b1
CMake refactoring. (#652)
* Overhauled the propagation of compiler flags

* Added "Dependency" CMake build type

* Removed src/common/CMakeLists.txt and src/crypto/CMakeLists.txt

* Set default build type to exclude CPU extension-based optimizations
2020-03-11 10:48:28 -04:00
Nikita Karpey
cd24c784a3
Improved support for Mingw-w64 (#648)
* Build fixed through Mingw-w64

* Initial try to build using appveyor and MSYS2
2020-03-10 11:06:52 -04:00
Nir Drucker
fc1bd942a3
Fixing BIKE CMAKE compilation when using Clang-3.9 and on an AVX512 platform (#655) 2020-03-10 11:06:33 -04:00
Douglas Stebila
63b4c6552b
Clear compiler warnings (#633)
* Fix clang on macOS warnings

* Clear gcc-9 on macOS warnings

* Work around gcc-4.9 warnings

* Disable one Picnic compiler warning

* Fix compiler warning on WSL
2020-03-05 11:01:10 -05: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
Michael Baentsch
8f78156dfa
Added generic optimized build type. (#631) 2020-02-27 15:03:41 -05:00
Nikita Karpey
785c9dc24e
Fixed detection processor architecture (#629) 2020-02-25 12:30:49 -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
xvzcf
56eece81d1
Improved CPU extension handling and updated README. (#622) 2020-02-20 11:17:25 -05:00
Douglas Stebila
410caa77a1
Make AddressSanitizer available (#617)
* Initial format with astyle

* Fix templating to match

* Remove old line

* Add address sanitizer to CI

* Undo merge commit screwup
2020-02-16 17:32:56 -05:00
xvzcf
1b99376625
CMake Bugfixes (#615)
* Python ctypes.cdll.LoadLibrary should be able to load liboqs now.

* Trying to address a TODO.
2020-02-16 13:58:34 -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