1324714Scy/* 2324714Scy * SHA-512 internal definitions 3324714Scy * Copyright (c) 2015, Pali Roh��r <pali.rohar@gmail.com> 4324714Scy * 5324714Scy * This software may be distributed under the terms of the BSD license. 6324714Scy * See README for more details. 7324714Scy */ 8324714Scy 9324714Scy#ifndef SHA512_I_H 10324714Scy#define SHA512_I_H 11324714Scy 12324714Scy#define SHA512_BLOCK_SIZE 128 13324714Scy 14324714Scystruct sha512_state { 15324714Scy u64 length, state[8]; 16324714Scy u32 curlen; 17324714Scy u8 buf[SHA512_BLOCK_SIZE]; 18324714Scy}; 19324714Scy 20324714Scyvoid sha512_init(struct sha512_state *md); 21324714Scyint sha512_process(struct sha512_state *md, const unsigned char *in, 22324714Scy unsigned long inlen); 23324714Scyint sha512_done(struct sha512_state *md, unsigned char *out); 24324714Scy 25324714Scy#endif /* SHA512_I_H */ 26