12 Commits

Author SHA1 Message Date
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
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
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
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
Christian Paquin
eb46360fae Added 32-bit projects to Visual Studio, and moved scheme defines to winconfig.h file. 2018-02-01 17:05:52 -05:00
Christian Paquin
31581805de Added minimal kex and sig projects to visual studio and appveyor, and updated DLL exports with new OQS functions. 2018-01-31 19:42:06 -05:00
Christian Paquin
db6639687d Added Picnic sig to Visual Studio. 2018-01-25 10:23:53 -05:00
Nikolaus Thümmel
8bc8cd9db8 Added VisualStudio DLL build configurations (#182)
* Added VisualStudio DLL build configurations

Add inline preprocessor definition to VisualStudio project file - this allows compilation with older versions of VisualStudio (e.g. 2013) which do not support the C99 inline keyword
Removed newhope.c from VisualStudio build files, as it is already included in kex_rlwe_newhope.c and will lead to multiple symbol definition errors in shared library builds
Add ENABLE_CODE_MCBITS guard to kex_code_mcbits.c to protect against missing symbol definition errors in VisualStudio shared library builds
Added VisualStudio shared library exports file dll.def, including the necessary core functions to use oqs from applications
Also export free when building Windows DLLs - this is important as the correct runtime library has to be used to free memory allocated by the OQS library. Applications may be using multiple runtime libraries or memory managers, calling the wrong free will result in memory corruption or segfault

* Add missing newline at end of file.
2017-10-24 09:31:35 -04:00
Christian Paquin
40ffb4eb38 Updated Windows build (added sig, fixed warnings, 2017 update) (#169)
* Updated Visual Studio solution to 2017 version, fixed build warnings (issue #159), added signature and Picnic support.

* commit

treat warnings as errors

* Fix ENABLED_PICNIC macro in sig_picnic.

* Prettyprint

* Try to fix Travis error or macOS.
2017-10-18 16:50:24 -04:00
Christian Paquin
16e35cd19c Enables Windows build. (#7) 2016-09-22 16:38:26 -04:00