From d325e39c681c9d56bd981041603e650eb7b7a818 Mon Sep 17 00:00:00 2001 From: Joost Rijneveld Date: Wed, 13 Mar 2019 17:23:30 +0100 Subject: [PATCH] Add documentation for SHA2 blockwise functions --- common/sha2.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/sha2.h b/common/sha2.h index 60073956..ce6a8aff 100644 --- a/common/sha2.h +++ b/common/sha2.h @@ -4,6 +4,10 @@ #include #include +/* The incremental API allows hashing of individual input blocks; these blocks + must be exactly 64 bytes each. + Use the 'finalize' functions for any remaining bytes (possibly over 64). */ + void sha224_inc_init(uint8_t *state); void sha224_inc_blocks(uint8_t *state, const uint8_t *in, size_t inblocks); void sha224_inc_finalize(uint8_t *out, uint8_t *state, const uint8_t *in, size_t inlen);