aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
blob: e6e15d5a41e65729cd4c19c8ad8c42c0a1d4d214 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* See LICENSE file for copyright and license details. */
#include "libsha2.h"

#include <sys/stat.h>
#include <alloca.h>
#include <errno.h>
#include <stddef.h>
#include <string.h>
#include <unistd.h>


/**
 * Process a chunk using SHA-2
 * 
 * @param  state  The hashing state
 * @param  chunk  The data to process
 */
#if defined(__GNUC__)
__attribute__((__nonnull__, __nothrow__))
#endif
void libsha2_process(struct libsha2_state *restrict, const unsigned char *restrict);