From d84edd9500e6e22ba49c76dc93a7c0731755d008 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 Feb 2019 11:28:30 +0100 Subject: Fix libsha2_digest + minor improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- common.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'common.h') diff --git a/common.h b/common.h index 746cf36..e6e15d5 100644 --- a/common.h +++ b/common.h @@ -7,3 +7,15 @@ #include #include #include + + +/** + * Process a chunk using SHA-2 + * + * @param state The hashing state + * @param chunk The data to process + */ +#if defined(__GNUC__) +__attribute__((__nonnull__, __nothrow__)) +#endif +void libsha2_process(struct libsha2_state *restrict, const unsigned char *restrict); -- cgit v1.2.3-70-g09d2