Commit Graph

296 Commits

Author SHA1 Message Date
hasufell e4bdeb1e79
DOC: fix doxygen comments 2014-09-13 18:26:47 +02:00
hasufell 398edc729d
POLY: fix substraction
Interestingly, the results and tests work with both variants.
However, this one is correct and matches the algorithm given in
NTRU Cryptosystems Tech Report #014.
2014-09-13 18:26:31 +02:00
hasufell 73a90cc3e9
DOC: minor fixes 2014-06-28 13:11:36 +02:00
hasufell a6071c609a
DOC: add doxygen to deps 2014-06-28 13:03:40 +02:00
hasufell e795cc332d
RND: rm obsolete include 2014-06-28 02:54:05 +02:00
hasufell b8fd0c0559
DOC: add 'make check' to instructions 2014-06-28 02:09:07 +02:00
hasufell fd978fcfec
FILE: improve error handling
This also fixes various valgrind warnings. We explicitly
check if we operate on a regular file instead of relying
on error handling of fopen/open.
2014-06-28 00:48:54 +02:00
hasufell 913a585279
POLY: fix segfault for non-invertible polynomials 2014-06-28 00:48:12 +02:00
hasufell 03f3901b81
ENC: fix possible memory error
LZ4_compress might add a null-byte, so we have to account for that.
2014-06-28 00:47:47 +02:00
hasufell 5e849d3d50
KEYGEN: improve error handling
Check for NULL-pointer arguments and add bool return value
which indicates whether any of the file operations failed.
2014-06-28 00:44:33 +02:00
hasufell 05582c4bed
KEYGEN: improve error handling, be less fault tolerant 2014-06-27 22:40:49 +02:00
hasufell cef08a4ae0
POLY: fix infinite loop for non-invertible polynomials 2014-06-27 22:40:08 +02:00
hasufell c9fcb7aa99
POLY: name labels consistently 2014-06-27 22:39:37 +02:00
hasufell 470a10d36b
BUILD: rm obsolete references 2014-06-27 16:06:23 +02:00
hasufell 772877e992
POLY: improve error handling 2014-06-27 16:05:50 +02:00
hasufell 1ed32d0193
FILE: improve error handling 2014-06-27 16:05:37 +02:00
hasufell 16677d8457
DOC: random doxygen improvements 2014-06-23 18:17:30 +02:00
hasufell 9a57b5e7c1
DOC: random doxygen improvements 2014-06-23 17:42:25 +02:00
hasufell e4b6ca84e5
ENC/DEC: implement compression via lz4
This speeds up encryption/decryption considerably, but also
causes complete failure for any non-recoverable char in a message,
since the decompression will fail then.

Also remove the double base64 encode/decode.
2014-06-22 22:44:03 +02:00
hasufell 018e4f68e4
ERR: improve doxygen doc 2014-06-22 22:23:37 +02:00
hasufell 8ca155efc0
ALL: rearrange out-parameters to consistently match flint logic 2014-06-22 22:20:07 +02:00
hasufell 3310533234
ASCII->POLY: rm obsolete comments 2014-06-19 17:20:06 +02:00
hasufell d1cc3bc524
KEYGEN: add const modifiers where possible 2014-06-09 18:41:03 +02:00
hasufell 56484e939a
ASCII->POLY: rm obsolete trailing NULL byte
Since we use memcpy in conjunction with a call to
get_int_to_bin_str().
2014-06-09 13:09:44 +02:00
hasufell df7386847f
DOC: improve doxygen intro pages 2014-06-09 02:17:21 +02:00
hasufell f76429b24b
DOC: fix various doxygen comments 2014-06-09 02:12:04 +02:00
hasufell 4fbb63e67f
DOC: run doxygen separately for internal/external API
Also only install the external API on gh-pages.
2014-06-09 02:11:52 +02:00
hasufell ad26c67f3d
ASCII->POLY: rm obsolete assignment 2014-06-09 00:10:44 +02:00
hasufell 5ff7c1bd1a
ASCII->POLY: improve performance wrt #6
It appears that the strcat call was the culprit here and
caused non-linear run-time growth of the encryption algorithm.

Replacing it with memcpy fixed this.
2014-06-09 00:10:44 +02:00
hasufell 3bce63f96a
POLY: fix doxygen comment 2014-06-09 00:10:43 +02:00
hasufell b52690d88e
POLY->ASCII: cleanup, rm REALLOCs 2014-06-09 00:10:43 +02:00
hasufell 7a7072675e
FILE: optimize allocation 2014-06-09 00:10:43 +02:00
hasufell 9d46af710f
RND: use more appropriate error macro 2014-06-09 00:10:43 +02:00
hasufell 46c93c5c7b
ENC: fix doxygen comments 2014-06-09 00:10:43 +02:00
hasufell 64b2ef04f9
POLY: fix doxygen comments 2014-06-09 00:10:42 +02:00
hasufell 1122dc6763
KEYGEN: fix doxygen comments 2014-06-09 00:10:42 +02:00
hasufell cffc6545ae
KEYGEN: be more verbose on error 2014-06-09 00:10:42 +02:00
hasufell edf7aaf229
ENC: be less fault tolerant 2014-06-09 00:10:42 +02:00
hasufell a35443a56a
DEC: be less fault tolerant 2014-06-09 00:10:42 +02:00
hasufell eef192f0cc
FILE: be more fault tolerant 2014-06-09 00:10:41 +02:00
hasufell 44896c0cb1
ERR: add more error/warning macros 2014-06-09 00:10:40 +02:00
hasufell 682b3a47d2
DOC: refactor, use dedicated doxygen folder, add Index Page 2014-06-09 00:10:39 +02:00
hasufell 544548f6db
DOC: improve function documentation 2014-06-09 00:10:38 +02:00
hasufell 063f837588
BUILD: fix install rules and doc generation
Also provide proper SONAME.
2014-06-09 00:10:38 +02:00
hasufell 12d9bbfa4e
STRING: add missing doxygen comment 2014-06-09 00:10:38 +02:00
hasufell 5db9b014c6
PARAMS: use forward declaration 2014-06-09 00:10:37 +02:00
hasufell cd6e477f31
ALL: add missing includes 2014-06-09 00:10:37 +02:00
hasufell f7131410bf
ALL: prefix all files with ntru_ 2014-06-09 00:10:37 +02:00
hasufell 58bf823e36
Rm obsolete file 2014-06-09 00:10:37 +02:00
hasufell 6dccef4dc9
ALL: rename context to params 2014-06-09 00:10:37 +02:00