aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 14:32:29 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 14:32:29 +0100
commitc91f6038634418dff753c9f037afb6574b02a743 (patch)
treeeab332100804b77a06da9de7b0cba0feeeb95ccc
parentm (diff)
downloadlibsha1-1.1.4.tar.gz
libsha1-1.1.4.tar.bz2
libsha1-1.1.4.tar.xz
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--libsha1.72
-rw-r--r--libsha1.h6
-rw-r--r--libsha1.h.02
-rw-r--r--libsha1_algorithm_output_size.32
-rw-r--r--libsha1_behex_lower.32
-rw-r--r--libsha1_behex_upper.32
-rw-r--r--libsha1_digest.36
-rw-r--r--libsha1_hmac_digest.37
-rw-r--r--libsha1_hmac_init.32
-rw-r--r--libsha1_hmac_marshal.32
-rw-r--r--libsha1_hmac_state_output_size.32
-rw-r--r--libsha1_hmac_unmarshal.32
-rw-r--r--libsha1_hmac_update.32
-rw-r--r--libsha1_init.32
-rw-r--r--libsha1_marshal.32
-rw-r--r--libsha1_state_output_size.32
-rw-r--r--libsha1_sum_fd.32
-rw-r--r--libsha1_unhex.34
-rw-r--r--libsha1_unmarshal.32
-rw-r--r--libsha1_update.32
20 files changed, 27 insertions, 28 deletions
diff --git a/libsha1.7 b/libsha1.7
index 7fb504d..863f824 100644
--- a/libsha1.7
+++ b/libsha1.7
@@ -1,4 +1,4 @@
-.TH LIBSHA1 7 2022-07-07 libsha1
+.TH LIBSHA1 7 LIBSHA1
.SH NAME
libsha1 \- SHA-1 and SHA-0 hashing library
.SH DESCRIPTION
diff --git a/libsha1.h b/libsha1.h
index c841e85..d6dcadb 100644
--- a/libsha1.h
+++ b/libsha1.h
@@ -77,12 +77,12 @@ struct libsha1_state {
struct libsha1_hmac_state {
/**
- * State of the underlaying hash function
+ * State of the underlying hash function
*/
struct libsha1_state sha1_state;
/**
- * The output size of the underlaying
+ * The output size of the underlying
* hash algorithm, in bits
*/
size_t outsize;
@@ -310,7 +310,7 @@ void libsha1_hmac_update(struct libsha1_hmac_state *restrict, const void *restri
* @param data Data to feed into the algorithm
* @param n The number of bytes to feed into the algorithm
* @param output The output buffer for the hash, it will be as
- * large as for the underlaying hash algorithm
+ * large as for the underlying hash algorithm
*/
#if defined(__GNUC__)
__attribute__((__leaf__, __nonnull__, __nothrow__))
diff --git a/libsha1.h.0 b/libsha1.h.0
index 537b6e0..bf2f23d 100644
--- a/libsha1.h.0
+++ b/libsha1.h.0
@@ -1,4 +1,4 @@
-.TH LIBSHA1.H 0 2019-02-10 libsha1
+.TH LIBSHA1.H 0 LIBSHA1
.SH NAME
libsha1.h \- SHA-1 and SHA-0 library header
.SH SYNOPSIS
diff --git a/libsha1_algorithm_output_size.3 b/libsha1_algorithm_output_size.3
index f88d5f2..1593068 100644
--- a/libsha1_algorithm_output_size.3
+++ b/libsha1_algorithm_output_size.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_ALGORITHM_OUTPUT_SIZE 3 2019-02-10 libsha1
+.TH LIBSHA1_ALGORITHM_OUTPUT_SIZE 3 LIBSHA1
.SH NAME
libsha1_algorithm_output_size \- Get the size of the output for a SHA 1/0 algorithm
.SH SYNOPSIS
diff --git a/libsha1_behex_lower.3 b/libsha1_behex_lower.3
index 1d365c9..ef5a097 100644
--- a/libsha1_behex_lower.3
+++ b/libsha1_behex_lower.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_BEHEX_LOWER 3 2019-02-10 libsha1
+.TH LIBSHA1_BEHEX_LOWER 3 LIBSHA1
.SH NAME
libsha1_behex_lower \- Convert binary to lower case hexadecimal
.SH SYNOPSIS
diff --git a/libsha1_behex_upper.3 b/libsha1_behex_upper.3
index 82c0190..108d996 100644
--- a/libsha1_behex_upper.3
+++ b/libsha1_behex_upper.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_BEHEX_UPPER 3 2019-02-10 libsha1
+.TH LIBSHA1_BEHEX_UPPER 3 LIBSHA1
.SH NAME
libsha1_behex_upper \- Convert binary to upper case hexadecimal
.SH SYNOPSIS
diff --git a/libsha1_digest.3 b/libsha1_digest.3
index 6a1e62d..e11cd0c 100644
--- a/libsha1_digest.3
+++ b/libsha1_digest.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_DIGEST 3 2019-02-10 libsha1
+.TH LIBSHA1_DIGEST 3 LIBSHA1
.SH NAME
libsha1_digest \- Get the result of a SHA 1/0 hashing
.SH SYNOPSIS
@@ -31,11 +31,11 @@ least the return value of the
.BR libsha1_state_output_size (3)
function.
.PP
-If
+If
.I msglen
is not a multiple of 8, the lowest
.I msglen%8
-bits from the last by in
+bits from the last byte in
.I message
is used as the complete byte.
.PP
diff --git a/libsha1_hmac_digest.3 b/libsha1_hmac_digest.3
index 10478ab..5162aae 100644
--- a/libsha1_hmac_digest.3
+++ b/libsha1_hmac_digest.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_HMAC_DIGEST 3 2019-02-10 libsha1
+.TH LIBSHA1_HMAC_DIGEST 3 LIBSHA1
.SH NAME
libsha1_hmac_digest \- Get the result of a HMAC-SHA 1/0 hashing
.SH SYNOPSIS
@@ -31,11 +31,11 @@ least the return value of the
.BR libsha1_hmac_state_output_size (3)
function.
.PP
-If
+If
.I msglen
is not a multiple of 8, the lowest
.I msglen%8
-bits from the last by in
+bits from the last byte in
.I message
is used as the complete byte.
.PP
@@ -66,5 +66,4 @@ None.
.BR libsha1_behex_upper (3),
.BR libsha1_hmac_init (3),
.BR libsha1_hmac_state_output_size (3),
-.BR libsha1_hmac_sum_fd (3),
.BR libsha1_hmac_update (3)
diff --git a/libsha1_hmac_init.3 b/libsha1_hmac_init.3
index b1e2617..6ef3712 100644
--- a/libsha1_hmac_init.3
+++ b/libsha1_hmac_init.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_HMAC_INIT 3 2019-02-10 libsha1
+.TH LIBSHA1_HMAC_INIT 3 LIBSHA1
.SH NAME
libsha1_hmac_init \- Initialises hashing with an HMAC-SHA 1/0 algorithm
.SH SYNOPSIS
diff --git a/libsha1_hmac_marshal.3 b/libsha1_hmac_marshal.3
index b8f1505..22059e2 100644
--- a/libsha1_hmac_marshal.3
+++ b/libsha1_hmac_marshal.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_HMAC_MARSHAL 3 2019-02-10 libsha1
+.TH LIBSHA1_HMAC_MARSHAL 3 LIBSHA1
.SH NAME
libsha1_hmac_marshal \- Marshal an HMAC-SHA 1/0 hashing state
.SH SYNOPSIS
diff --git a/libsha1_hmac_state_output_size.3 b/libsha1_hmac_state_output_size.3
index 74a76fe..7cfad63 100644
--- a/libsha1_hmac_state_output_size.3
+++ b/libsha1_hmac_state_output_size.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_HMAC_STATE_OUTPUT_SIZE 3 2019-02-10 libsha1
+.TH LIBSHA1_HMAC_STATE_OUTPUT_SIZE 3 LIBSHA1
.SH NAME
libsha1_hmac_state_output_size \- Get the size of the output for a HMAC-SHA 1/0 algorithm
.SH SYNOPSIS
diff --git a/libsha1_hmac_unmarshal.3 b/libsha1_hmac_unmarshal.3
index a21e462..68b6ac7 100644
--- a/libsha1_hmac_unmarshal.3
+++ b/libsha1_hmac_unmarshal.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_HMAC_UNMARSHAL 3 2019-02-10 libsha1
+.TH LIBSHA1_HMAC_UNMARSHAL 3 LIBSHA1
.SH NAME
libsha1_hmac_unmarshal \- Unmarshal an HMAC-SHA 1/0 hashing state
.SH SYNOPSIS
diff --git a/libsha1_hmac_update.3 b/libsha1_hmac_update.3
index caff71c..1ede61e 100644
--- a/libsha1_hmac_update.3
+++ b/libsha1_hmac_update.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_HMAC_UPDATE 3 2019-02-10 libsha1
+.TH LIBSHA1_HMAC_UPDATE 3 LIBSHA1
.SH NAME
libsha1_hmac_update \- Feed data into a HMAC-SHA 1/0 algorithm
.SH SYNOPSIS
diff --git a/libsha1_init.3 b/libsha1_init.3
index 3c38394..fcfc284 100644
--- a/libsha1_init.3
+++ b/libsha1_init.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_INIT 3 2019-02-10 libsha1
+.TH LIBSHA1_INIT 3 LIBSHA1
.SH NAME
libsha1_init \- Initialises hashing with a SHA 1/0 algorithm
.SH SYNOPSIS
diff --git a/libsha1_marshal.3 b/libsha1_marshal.3
index 2b4a643..383fa03 100644
--- a/libsha1_marshal.3
+++ b/libsha1_marshal.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_MARSHAL 3 2019-02-10 libsha1
+.TH LIBSHA1_MARSHAL 3 LIBSHA1
.SH NAME
libsha1_marshal \- Marshal a SHA 1/0 hashing state
.SH SYNOPSIS
diff --git a/libsha1_state_output_size.3 b/libsha1_state_output_size.3
index 9058291..4dac54d 100644
--- a/libsha1_state_output_size.3
+++ b/libsha1_state_output_size.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_STATE_OUTPUT_SIZE 3 2019-02-10 libsha1
+.TH LIBSHA1_STATE_OUTPUT_SIZE 3 LIBSHA1
.SH NAME
libsha1_state_output_size \- Get the size of the output for a SHA 1/0 algorithm
.SH SYNOPSIS
diff --git a/libsha1_sum_fd.3 b/libsha1_sum_fd.3
index 1a14ec3..61c2e83 100644
--- a/libsha1_sum_fd.3
+++ b/libsha1_sum_fd.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_SUM_FD 3 2019-02-10 libsha1
+.TH LIBSHA1_SUM_FD 3 LIBSHA1
.SH NAME
libsha1_sum_fd \- Hash a file with a SHA 1/0 algorithm
.SH SYNOPSIS
diff --git a/libsha1_unhex.3 b/libsha1_unhex.3
index 8d92ee2..084af4a 100644
--- a/libsha1_unhex.3
+++ b/libsha1_unhex.3
@@ -1,6 +1,6 @@
-.TH LIBSHA1_UNHEX 3 2019-02-10 libsha1
+.TH LIBSHA1_UNHEX 3 LIBSHA1
.SH NAME
-libsha1_unhex \- Covert hexadecimal to binary
+libsha1_unhex \- Convert hexadecimal to binary
.SH SYNOPSIS
.nf
#include <libsha1.h>
diff --git a/libsha1_unmarshal.3 b/libsha1_unmarshal.3
index 4b8ea22..6dd34bf 100644
--- a/libsha1_unmarshal.3
+++ b/libsha1_unmarshal.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_UNMARSHAL 3 2019-02-10 libsha1
+.TH LIBSHA1_UNMARSHAL 3 LIBSHA1
.SH NAME
libsha1_unmarshal \- Unmarshal a SHA 1/0 hashing state
.SH SYNOPSIS
diff --git a/libsha1_update.3 b/libsha1_update.3
index febbcb9..d4e0eee 100644
--- a/libsha1_update.3
+++ b/libsha1_update.3
@@ -1,4 +1,4 @@
-.TH LIBSHA1_UPDATE 3 2019-02-10 libsha1
+.TH LIBSHA1_UPDATE 3 LIBSHA1
.SH NAME
libsha1_update \- Feed data into a SHA 1/0 algorithm
.SH SYNOPSIS