libecrypt v2.1.0

This commit is contained in:
Liam Waldron 2023-05-30 10:23:38 -04:00
parent 455b3481fd
commit 7dca4b5841
2 changed files with 5 additions and 4 deletions

View File

@ -1,9 +1,9 @@
include config.mk include config.mk
all: src/libecrypt.c all:
$(CC) -c src/libecrypt.c -o src/libecrypt.o $(CC) -c src/libecrypt.c -o src/libecrypt.o
ar -rc src/libecrypt.a 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 src/libecrypt.a $(PREFIX)/lib
install include/libecrypt.h $(PREFIX)/include install include/ecrypt.h $(PREFIX)/include

View File

@ -1,6 +1,7 @@
#ifndef LIBECRYPT_H_ #ifndef LIBECRYPT_H_
#define LIBECRYPT_H_ #define LIBECRYPT_H_
int ecrypt(PASSWD_LENGTH); int ecrypt_gen(int N);
int ecrypt_check(char *firstkey, char *secondkey);
#endif #endif