7 Commits

Author SHA1 Message Date
Vlad Gheorghiu
ab5185239e refactored if defined WINDOWS to if defined _WIN32 2018-01-30 16:44:25 -05:00
Vlad Gheorghiu
20348ca55d Vsoftco refactor oqs success (#219)
* 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
2018-01-30 10:30:26 -05:00
Douglas Stebila
98e683e019
Move UNUSED attribute definition into common header (#205) 2018-01-02 20:14:00 -05:00
Vladimir Valyukh
b9854b400f Arm compilation (#170)
* liboqs crosscompiles for android

* andriod compilation cleanup

* andriod compilation cleanup wip

* cc working, TODO: merge back what was removed..

* put back error output

* renamed android-build.sh to configure-android

* android compilation done

* removed the use of generic SIDH implementation if optimizied version was available

* added correct CFLAGS for android

* added ARM64 assembly optimizations for sidh

* sidh arm assembly opitimizations wip

* ARM64 optimimizations for SIDH done

* added android build documentation

* fixed prettyprint issue

* removed asm opimizations for darwin
2017-09-11 09:44:49 -04:00
Christian Paquin
498756396e Add sig api with picnic (#120)
* Added sig API and Picnic signature algs.

* Removed ifdef around Picnic defines, to avoid modifying calling apps.

* Some clean-ups: updated Picnic reference in Readme, made download script executable, added TODO in test_sig.

* Removed const-removing cast since Picnic API now uses const.

* Revamped test_sig, cleaned-up sig and sig_picnic.

* Enables setting location of picnic params through an env variable (vs. hardcoded).

* Minor change.

* Enable travis test for picnic

* Fix yml error

* Fix yml error

* Fix apt package error

* Fix include for picnic

* Exit on first error

* Setup picnic external

* Fix a typo

* c99 mode for picnic matrices file in picnic

* update .gitignore

* Remove warnings from picnic

* Typo

* Another typo

* add picnic build for mac

* formatting

* Updated README after Picnic refactoring.

* Update and uniformization of README.md

* Minor typos in README.md

* Fix merge mistake.

* Fix M4RI_DIR path

* Undo README changes.

* Removing merge artifacts

* File not being used anywhere
2017-07-31 21:32:00 -04:00
Tancrède Lepoint
c1568a137d Clang format instead of astyle (#84)
* replacing astyle by clang-format #56

* sh instead of bash

* sudo required now...

* prettyprint with clang-format

* debugging clang format

* order of include mattered in newhope

* trying again

* order in mcbits too

* includes in mcbits

* Trying again

* Change makefile for clangformat

* removing conditionals in makefile

* Order of include in mcbits:

* CLANGFORMAT for linux and macOS

* CLANGFORMAT for linux and macOS

* CLANGFORMAT for linux and macOS

* Warning of clang
2017-01-11 09:52:10 -05:00
Alex Parent
8901962d40 Add function for zeroing memory. 2016-11-20 15:14:06 -05:00