9 typedef struct sha512_context_ {
10 uint64_t length, state[8];
12 unsigned char buf[128];
15 int sha512_init(sha512_context *md);
16 int sha512_final(sha512_context *md, void *out);
17 int sha512_update(sha512_context *md, const void *in, size_t inlen);
18 int sha512(const void *message, size_t message_len, void *out);