From 7dca4b5841f54ff8743ae996bb34f331ac519471 Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Tue, 30 May 2023 10:23:38 -0400 Subject: [PATCH] libecrypt v2.1.0 --- Makefile | 6 +++--- include/ecrypt.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 28df43b..946fed4 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ include config.mk -all: src/libecrypt.c +all: $(CC) -c src/libecrypt.c -o src/libecrypt.o ar -rc src/libecrypt.a src/libecrypt.o -install: src/libecrypt.a include/libecrypt.h +install: install src/libecrypt.a $(PREFIX)/lib - install include/libecrypt.h $(PREFIX)/include + install include/ecrypt.h $(PREFIX)/include diff --git a/include/ecrypt.h b/include/ecrypt.h index 33585ae..6266e19 100644 --- a/include/ecrypt.h +++ b/include/ecrypt.h @@ -1,6 +1,7 @@ #ifndef LIBECRYPT_H_ #define LIBECRYPT_H_ -int ecrypt(PASSWD_LENGTH); +int ecrypt_gen(int N); +int ecrypt_check(char *firstkey, char *secondkey); #endif