diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2015-01-02 18:31:10 -0500 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2015-01-02 18:31:10 -0500 |
| commit | d61111530541f74df89c010e5edfb633a412dc72 (patch) | |
| tree | b47f8287ed5f70eb04c2e58b27aebae9f6a8675a /src/nvim/sha256.h | |
| parent | 91b378d349425d0ad435c06fc341de5aa2f7b5c9 (diff) | |
| parent | 338dd10f332be8c094ed9bb0d38454eb85eecf47 (diff) | |
| download | rneovim-d61111530541f74df89c010e5edfb633a412dc72.tar.gz rneovim-d61111530541f74df89c010e5edfb633a412dc72.tar.bz2 rneovim-d61111530541f74df89c010e5edfb633a412dc72.zip | |
Merge pull request #925 from splinterofchaos/sha256
sha256.c: clint, -Wconversion, stdbool, and other improvements.
Diffstat (limited to 'src/nvim/sha256.h')
| -rw-r--r-- | src/nvim/sha256.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nvim/sha256.h b/src/nvim/sha256.h index c8ffa94cc4..a118826542 100644 --- a/src/nvim/sha256.h +++ b/src/nvim/sha256.h @@ -1,10 +1,17 @@ #ifndef NVIM_SHA256_H #define NVIM_SHA256_H +#include <stdint.h> // for uint32_t + +#include "nvim/types.h" // for char_u + +#define SHA256_BUFFER_SIZE 64 +#define SHA256_SUM_SIZE 32 + typedef struct { uint32_t total[2]; uint32_t state[8]; - char_u buffer[64]; + char_u buffer[SHA256_BUFFER_SIZE]; } context_sha256_T; #ifdef INCLUDE_GENERATED_DECLARATIONS |
