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.
This commit is contained in:
2014-06-09 22:11:07 +02:00
parent 0abcfee7f1
commit e4b6ca84e5
8 changed files with 106 additions and 26 deletions

View File

@@ -34,7 +34,7 @@ PQC_HEADERS = \
# libs
LIBS += -L. -lgmp -lmpfr -lflint $(shell $(PKG_CONFIG) --libs glib-2.0) -lm
LIBS += -L. -llz4 -lgmp -lmpfr -lflint $(shell $(PKG_CONFIG) --libs glib-2.0) -lm
# includes
INCS = -I. -I/usr/include/flint $(shell $(PKG_CONFIG) --cflags glib-2.0)