ASCII->POLY: refactor

Use base64 (via glib) instead of plain char cast.

Remove ascii_to_poly() since it's unreliable (we don't
really know how many polynomials we will need
for a string).
This commit is contained in:
2014-05-28 01:09:52 +02:00
parent 8b9134628c
commit 9f6b7319bb
5 changed files with 151 additions and 169 deletions

View File

@@ -34,7 +34,7 @@ else
PQC_LIBS = libpqc.a
endif
# CUNIT_LIBS = -lcunit
LIBS += -L. -lgmp -lmpfr -lm
LIBS += -L. -lgmp -lmpfr -lm $(shell $(PKG_CONFIG) --libs glib-2.0)
# objects
PQC_OBJS = poly.o mem.o encrypt.o decrypt.o keypair.o ascii_poly.o file.o \
@@ -44,7 +44,7 @@ PQC_HEADERS = err.h poly.h context.h encrypt.h decrypt.h keypair.h \
# CUNIT_OBJS = cunit.o
# includes
INCS = -I.
INCS = -I. $(shell $(PKG_CONFIG) --cflags glib-2.0)
ifndef UNBUNDLE
LIBFLINT = ../external/flint-2.4.3/libflint.a