aboutsummaryrefslogtreecommitdiffstats
path: root/state_output_size.c
blob: d2cc5c19892350a5bd65e0948c9e887e04905205 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* See LICENSE file for copyright and license details. */
#include "common.h"


/**
 * Get the output size of the algorithm specified for a state
 * 
 * @parma   state  The state
 * @return         The number of bytes in the output, zero on error
 */
size_t
libsha2_state_output_size(const struct libsha2_state *restrict state)
{
	return libsha2_algorithm_output_size(state->algorithm);
}