diff options
author | Mattias Andrée <maandree@kth.se> | 2024-08-24 11:38:07 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-08-24 11:38:07 +0200 |
commit | dadf0cb089c36b0d49483b50cac97d017cd9389e (patch) | |
tree | 70053cf96f04efea0da5fb5c3289352e7c74a1ce /libhashsum.h | |
parent | Make algorithms optional (diff) | |
download | libhashsum-dadf0cb089c36b0d49483b50cac97d017cd9389e.tar.gz libhashsum-dadf0cb089c36b0d49483b50cac97d017cd9389e.tar.bz2 libhashsum-dadf0cb089c36b0d49483b50cac97d017cd9389e.tar.xz |
Add libhashsum_hasher.algorithm_string
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libhashsum.h')
-rw-r--r-- | libhashsum.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libhashsum.h b/libhashsum.h index 1e453b3..203ec10 100644 --- a/libhashsum.h +++ b/libhashsum.h @@ -263,6 +263,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` * |