From dadf0cb089c36b0d49483b50cac97d017cd9389e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 24 Aug 2024 11:38:07 +0200 Subject: Add libhashsum_hasher.algorithm_string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libhashsum.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libhashsum.h') diff --git a/libhashsum.h b/libhashsum.h index 1e453b3..203ec10 100644 --- a/libhashsum.h +++ b/libhashsum.h @@ -262,6 +262,17 @@ struct libhashsum_hasher { */ enum libhashsum_algorithm algorithm; + /** + * A string describing the used hash + * algorithm and parameters + * + * This may be pointer to a buffer in + * `.state` + * + * @since 1.0 + */ + const char *algorithm_string; + /** * The number of bytes required for each * call to `.process_block` -- cgit v1.2.3-70-g09d2