1/*
2 * SHA-512 internal definitions
3 * Copyright (c) 2015, Pali Roh��r <pali.rohar@gmail.com>
4 *
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
7 */
8
9#ifndef SHA512_I_H
10#define SHA512_I_H
11
12#define SHA512_BLOCK_SIZE 128
13
14struct sha512_state {
15	u64 length, state[8];
16	u32 curlen;
17	u8 buf[SHA512_BLOCK_SIZE];
18};
19
20void sha512_init(struct sha512_state *md);
21int sha512_process(struct sha512_state *md, const unsigned char *in,
22		   unsigned long inlen);
23int sha512_done(struct sha512_state *md, unsigned char *out);
24
25#endif /* SHA512_I_H */
26