aboutsummaryrefslogtreecommitdiffstats
path: root/libsha2_digest.3
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-02-10 15:58:27 +0100
committerMattias Andrée <maandree@kth.se>2019-02-10 15:58:27 +0100
commit6b7209128ee0a7aa22126ed7f4cc3d0c2fee267b (patch)
tree05bea4079bdd0ebc5f0dba72ac77dd568f40d8f4 /libsha2_digest.3
parentMinor fixes and tests (diff)
downloadlibsha2-6b7209128ee0a7aa22126ed7f4cc3d0c2fee267b.tar.gz
libsha2-6b7209128ee0a7aa22126ed7f4cc3d0c2fee267b.tar.bz2
libsha2-6b7209128ee0a7aa22126ed7f4cc3d0c2fee267b.tar.xz
Use lowest bits rather than highest bits in complete byte, document this, and add tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libsha2_digest.3')
-rw-r--r--libsha2_digest.38
1 files changed, 8 insertions, 0 deletions
diff --git a/libsha2_digest.3 b/libsha2_digest.3
index c31025c..dac48b4 100644
--- a/libsha2_digest.3
+++ b/libsha2_digest.3
@@ -31,6 +31,14 @@ least the return value of the
.BR libsha2_state_output_size (3)
function.
.PP
+If
+.I msglen
+is not a multiple of 8, the lowest
+.I msglen%8
+bits from the last by in
+.I message
+is used as the complete byte.
+.PP
The
.BR libsha2_behex_lower (3)
and