aboutsummaryrefslogblamecommitdiffstats
path: root/state_output_size.c
blob: 85da7c20baecd9abf5be8e6eac10ab4a46cfc3a1 (plain) (tree)
1
2
3
4
5
6
7
8






                                                             
                            






                                                                     
/* 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
libsha2_state_output_size(const struct libsha2_state *restrict state)
{
	return libsha2_algorithm_output_size(state->algorithm);
}