sha: define SHA256_BUFFER_SIZE and SUM_SIZE.

This commit is contained in:
Scott Prager
2014-07-26 02:32:22 -04:00
parent 2e873c8767
commit 338dd10f33
2 changed files with 25 additions and 21 deletions

View File

@@ -5,10 +5,13 @@
#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