bglibs
sha512.h
1 #ifndef BGLIBS__SHA512__H__
2 #define BGLIBS__SHA512__H__
3 
4 #include "sysdeps.h"
5 
6 #define SHA512_DIGEST_LENGTH (512/8)
7 
8 struct SHA512_ctx {
9  uint64 H[8];
10  uint64 bytes;
11  uint8 M[256];
12 };
13 typedef struct SHA512_ctx SHA512_ctx;
14 
15 void SHA512_init (SHA512_ctx*);
16 void SHA512_update(SHA512_ctx*, const void*, unsigned long);
17 void SHA512_final (SHA512_ctx*, uint8*);
18 
19 #endif
obuf_putxw
int obuf_putxw(obuf *out, unsigned long data, unsigned width, char pad)
Definition: obuf_putunumw.c:28
obuf_endl
int obuf_endl(obuf *out)
Definition: obuf_endl.c:4
SHA512_ctx
Definition: sha512.h:8
outbuf
obuf outbuf
Definition: obuf_stdout.c:7