From 52cee14bdda0191b996fa50f902d7aad53480333 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 7 Jul 2022 15:14:08 +0200 Subject: Add libsha2.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 6 ++++++ libsha2.7 | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 libsha2.7 diff --git a/Makefile b/Makefile index bc47b8c..76278fc 100644 --- a/Makefile +++ b/Makefile @@ -61,6 +61,9 @@ MAN3 =\ libsha2_unmarshal.3\ libsha2_update.3 +MAN7 =\ + libsha2.7 + LOBJ = $(OBJ:.o=.lo) SRC = $(OBJ:.o=.c) @@ -94,6 +97,7 @@ install: mkdir -p -- "$(DESTDIR)$(PREFIX)/include" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man0" mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man3" + mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man7" cp -- libsha2.a "$(DESTDIR)$(PREFIX)/lib" cp -- libsha2.$(LIBEXT) "$(DESTDIR)$(PREFIX)/lib/libsha2.$(LIBMINOREXT)" $(FIX_INSTALL_NAME) "$(DESTDIR)$(PREFIX)/lib/libsha2.$(LIBMINOREXT)" @@ -102,6 +106,7 @@ install: cp -- libsha2.h "$(DESTDIR)$(PREFIX)/include" cp -- $(MAN0) "$(DESTDIR)$(MANPREFIX)/man0" cp -- $(MAN3) "$(DESTDIR)$(MANPREFIX)/man3" + cp -- $(MAN7) "$(DESTDIR)$(MANPREFIX)/man7" uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/lib/libsha2.a" @@ -111,6 +116,7 @@ uninstall: -rm -f -- "$(DESTDIR)$(PREFIX)/include/libsha2.h" -cd -- "$(DESTDIR)$(MANPREFIX)/man0" && rm -f -- $(MAN0) -cd -- "$(DESTDIR)$(MANPREFIX)/man3" && rm -f -- $(MAN3) + -cd -- "$(DESTDIR)$(MANPREFIX)/man7" && rm -f -- $(MAN7) clean: -rm -f -- *.o *.lo *.su *.a *.$(LIBEXT) *.gcda *.gcno *.gcov test diff --git a/libsha2.7 b/libsha2.7 new file mode 100644 index 0000000..b78db0a --- /dev/null +++ b/libsha2.7 @@ -0,0 +1,26 @@ +.TH LIBSHA2 7 2022-07-07 libsha1 +.SH NAME +libsha2 \- SHA-2 hashing library +.SH DESCRIPTION +.B libsha1 +is an implementation of the SHA-2 family hashing functions: +SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256; +with support for state marshalling and HMAC. +.SH SEE ALSO +.BR libsha2.h (0), +.BR libsha2_algorithm_output_size (3), +.BR libsha2_behex_lower (3), +.BR libsha2_behex_upper (3), +.BR libsha2_digest (3), +.BR libsha2_hmac_digest (3), +.BR libsha2_hmac_init (3), +.BR libsha2_hmac_marshal (3), +.BR libsha2_hmac_unmarshal (3), +.BR libsha2_hmac_update (3), +.BR libsha2_init (3), +.BR libsha2_marshal (3), +.BR libsha2_state_output_size (3), +.BR libsha2_sum_fd (3), +.BR libsha2_unhex (3), +.BR libsha2_unmarshal (3), +.BR libsha2_update (3) -- cgit v1.2.3-70-g09d2