* refactoring
- Introduced typedef int OQS_status; in src/common/common.h and
refactored the
code accordingly. Now it's easy to figure out whether the function
returns
an error status or an int.
- Refactored hard-coded returns so now we return the OQS_status as
either
OQS_SUCCESS or OQS_ERROR. OQS_RAND_get_system_entropy() and all other
KEX/SIG API functions now return OQS_STATUS instead of int.
- Introduced src/common/oqs.h, which include all other necessary liboqs
headers. All standalone programs now only #include <oqs/oqs.h>
- src/kex.c:23, the UNUSED macro was re-defined differently from
oqs/common.h:25, so re-defined kex.c's UNUSED to UNUSED_KEX
- Got rid of PRINT_(PART)_HEX macros and introduced stand-alone
functions in
src/common.h (with definitions in src/common.c)
void OQS_print_hex_string(const char *label, uint8_t *str, size_t
len);
void OQS_print_part_hex_string(const char *label, uint8_t *str,
size_t len, size_t sub_len);
* commit
fixed stdint.h missing #include
* commit
* commit
* commit
* These files are part of the patch
* Modified patch
* added oqs.h in the Windows build
* VS build
* Fixed VS build
* fixed VS build
* Fixed test_rand VS project
added WINDOWS macro in the VS configuration for test_rand
* 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.
* Fixed Windows build after NTRU refactoring and Kyber addition.
* Removed duplicate variable.
* Un-commnented malloc.h, repairing SIDH on Windows.
* Prettyprint and fix malloc.h error on macOS.
* Enables Windows build.
* Modified CAPI call to avoid error when no key container is present for the user.
* Removed spurious white spaces.
* Enabled building Frodo on Windows using the Visual Studio solution.
* Replaced non-portable packed bit fields with bit masks.
* Removed commented-out code and defined macro that has been moved to preprocessor defs.
* Disabled AES NI when using x86 Visual Studio projects.
* Prettyprint.
* Removed warning Windows when using strdup, and removed the corresponding _strdup definition.
* Modified OQS projects to link statically with the system runtime, like the OpenSSL project does.
Otherwise we get link errors when including OQS in OpenSSL on Windows.