bglibs: sha512.h Source File

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
SHA512_ctx
Definition: sha512.h:8