From ed0296b9055713df0d910e4e7528ffe6fc539514 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 Feb 2019 20:21:19 +0100 Subject: First commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- state_output_size.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 state_output_size.c (limited to 'state_output_size.c') diff --git a/state_output_size.c b/state_output_size.c new file mode 100644 index 0000000..3b3d14d --- /dev/null +++ b/state_output_size.c @@ -0,0 +1,15 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + + +/** + * Get the output size of the algorithm specified for a state + * + * @param state The state + * @return The number of bytes in the output, zero on error + */ +size_t +libsha1_state_output_size(const struct libsha1_state *restrict state) +{ + return libsha1_algorithm_output_size(state->algorithm); +} -- cgit v1.2.3-70-g09d2