Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 16 | Rev 38 | ||
|---|---|---|---|
| Line 27... | Line 27... | ||
| 27 | 27 | ||
| 28 | // prototypes of exported functions |
28 | // prototypes of exported functions |
| 29 | void SHA512_Init (SHA512_CTX *context); |
29 | void SHA512_Init (SHA512_CTX *context); |
| 30 | void SHA512_Update (SHA512_CTX *context, void *data, size_t len); |
30 | void SHA512_Update (SHA512_CTX *context, void *data, size_t len); |
| 31 | void SHA512_Final (uint8_t digest[SHA512_DIGEST_LENGTH], SHA512_CTX *context); |
31 | void SHA512_Final (uint8_t digest[SHA512_DIGEST_LENGTH], SHA512_CTX *context); |
| 32 |
|
32 | const char *SHA512 (void *data, size_t data_len, uint8_t *digest); // computes a SHA-512 in one pass (shortcut for SHA512_Init(), SHA512_Update() N times and SHA512_Final()) |
| 33 | 33 | ||
| 34 | 34 | ||
| 35 | #ifdef __cplusplus |
35 | #ifdef __cplusplus |
| 36 | } |
36 | } |
| 37 | #endif |
37 | #endif |