761 Commits

Author SHA1 Message Date
Douglas Stebila
40f196e891 Pretty print. 2016-09-22 16:39:06 -04:00
Christian Paquin
16e35cd19c Enables Windows build. (#7) 2016-09-22 16:38:26 -04:00
Douglas Stebila
c4aa3af1f4 Add named parameters to OQS_KEX constructor. (#6) 2016-09-15 17:19:50 -04:00
Douglas Stebila
61a7cef5b3 Add licensing information. 2016-09-01 16:56:37 -04:00
Douglas Stebila
b3c176dab0 Switch chacha20 to DJB's original implementation; update wrapper rand_urandom_chacha20. 2016-09-01 16:56:23 -04:00
Douglas Stebila
ae0b30de9f Add PRNG sample outputs to test_rand. 2016-09-01 16:55:33 -04:00
Alex Parent
b7cfda3e1b Fixes memory leak and moves allocation into stuct. (#5)
* Pretty-print.

* Fixes memory leak and moves allocation into stuct.

Memory leak was caused by a possible partial allocation of the arrays in
oqs_kex_rlwe_bcns15_fft_ctx.

Allocate fixed size arrays in the oqs_kex_rlwe_bcns15_fft_ctx struct
rather then calling an initialization function afterwords. Also specify
fixed array sizes in functions where possible.
2016-08-25 23:13:27 -04:00
Alex Parent
c999815b7c Simplify Makefile and allow for better incremental builds. (#3)
* Simplify Makefile and allow for better incremental builds.

Also add -std=gnu11 option since some older compilers default
to c99 which causes compilation to fail.

* Enable more warnings and fix some minor issues.

* Fixes a memory leak

Caused by method_name not being freed if
OQS_RAND_urandom_chacha20_ctx_new() fails. Also accounts for the fact
that strdup can fail and return NULL.
2016-08-25 13:22:11 -04:00
Douglas Stebila
d85fc67900 Add tests for measuring distance from random for key exchange output and PRNG (#2)
* Add tests for measuring distance from random for key exchange output and PRNG

* Use new_method in key exchange correctness tests.
2016-08-19 09:43:02 -07:00
Douglas Stebila
35ada5af71 Pretty-print. 2016-08-12 00:29:34 -02:30
Douglas Stebila
8d6f5aab05 Initial commit of liboqs containing rand, rand_urandom_chacha20, kex, and kex_rlwe_bcns15. 2016-08-11 23:19:01 -02:30