Rename libecc to libseccure, updating all references (except comments)
This commit is contained in:
parent
16e4cbb34c
commit
7f43b1ee7d
2
_pyecc.h
2
_pyecc.h
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <Python.h>
|
||||
|
||||
#include "seccure/libecc.h"
|
||||
#include "seccure/libseccure.h"
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
LDFLAGS += -lgcrypt
|
||||
CFLAGS += -g -Wall -fPIC -O0 -Wstrict-prototypes -pthread -fno-strict-aliasing
|
||||
|
||||
default: binaries doc libecc.so
|
||||
default: binaries doc libseccure.so
|
||||
|
||||
binaries: seccure-key seccure-encrypt seccure-decrypt seccure-sign \
|
||||
seccure-verify seccure-signcrypt seccure-veridec seccure-dh \
|
||||
|
||||
OBJS = numtheory.o libecc.o ecc.o serialize.o protocol.o curves.o aes256ctr.o
|
||||
OBJS = numtheory.o libseccure.o ecc.o serialize.o protocol.o curves.o aes256ctr.o
|
||||
|
||||
doc: seccure.1 seccure.1.html
|
||||
|
||||
|
@ -33,8 +33,8 @@ seccure-key: seccure.o $(OBJS)
|
|||
$(CC) $(CFLAGS) -o seccure-key $(LDFLAGS) seccure.o $(OBJS)
|
||||
strip seccure-key
|
||||
|
||||
libecc.so: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl -o libecc.so $(OBJS)
|
||||
libseccure.so: $(OBJS)
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl -o libseccure.so $(OBJS)
|
||||
|
||||
seccure-encrypt: seccure-key
|
||||
ln -f seccure-key seccure-encrypt
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include "curves.h"
|
||||
#include "ecc.h"
|
||||
#include "libecc.h"
|
||||
#include "libseccure.h"
|
||||
#include "protocol.h"
|
||||
#include "serialize.h"
|
||||
#include "aes256ctr.h"
|
|
@ -50,7 +50,7 @@
|
|||
#include "protocol.h"
|
||||
#include "serialize.h"
|
||||
#include "aes256ctr.h"
|
||||
#include "libecc.h"
|
||||
#include "libseccure.h"
|
||||
|
||||
#define ANSI_CLEAR_LINE "\033[1K\r"
|
||||
#define VERSION "0.4"
|
||||
|
|
|
@ -9,7 +9,7 @@ SECCURE-VERIDEC = $(SECCURE-PATH)"seccure-veridec"
|
|||
|
||||
CFLAGS = -g -I../
|
||||
CFLAGS +=`pkg-config --cflags glib-2.0`
|
||||
LDFLAGS += -L../ -lecc
|
||||
LDFLAGS += -L../ -lseccure
|
||||
LDFLAGS += `pkg-config --libs glib-2.0`
|
||||
|
||||
ENCCURVE = "p128"
|
||||
|
@ -17,13 +17,13 @@ SIGCURVE = "p256"
|
|||
MACLEN = "64"
|
||||
|
||||
|
||||
default: encdec-test signveri-test signcrypt-test test_libecc
|
||||
default: encdec-test signveri-test signcrypt-test test_libseccure
|
||||
|
||||
test_libecc:
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) test_libecc.c -o test_libecc
|
||||
test_libseccure:
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) test_libseccure.c -o test_libseccure
|
||||
|
||||
clean:
|
||||
rm -f test_libecc public-encryption-key public-signature-key message.enc message.aux message.sig
|
||||
rm -f test_libseccure public-encryption-key public-signature-key message.enc message.aux message.sig
|
||||
|
||||
rebuild: clean default
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include <glib.h>
|
||||
|
||||
#include "libecc.h"
|
||||
#include "libseccure.h"
|
||||
|
||||
#define DEFAULT_DATA "This message will be signed\n"
|
||||
#define DEFAULT_SIG "$HPI?t(I*1vAYsl$|%21WXND=6Br*[>k(OR9B!GOwHqL0s+3Uq"
|
||||
|
@ -206,8 +206,6 @@ void __test_encrypt()
|
|||
g_assert(result != NULL);
|
||||
g_assert(result->data != NULL);
|
||||
|
||||
fprintf(stderr, "DATA %s DATA\n", (char *)(result->data));
|
||||
|
||||
if (result)
|
||||
ecc_free_data(result);
|
||||
}
|
Loading…
Reference in New Issue