1 | #ifndef NVIM_SHA256_H |
---|---|
2 | #define NVIM_SHA256_H |
3 | |
4 | #include <stdint.h> // for uint32_t |
5 | #include <stddef.h> |
6 | |
7 | #include "nvim/types.h" // for char_u |
8 | |
9 | #define SHA256_BUFFER_SIZE 64 |
10 | #define SHA256_SUM_SIZE 32 |
11 | |
12 | typedef struct { |
13 | uint32_t total[2]; |
14 | uint32_t state[8]; |
15 | char_u buffer[SHA256_BUFFER_SIZE]; |
16 | } context_sha256_T; |
17 | |
18 | #ifdef INCLUDE_GENERATED_DECLARATIONS |
19 | # include "sha256.h.generated.h" |
20 | #endif |
21 | #endif // NVIM_SHA256_H |
22 |