aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/sha256.h
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2014-07-26 02:32:22 -0400
committerScott Prager <splinterofchaos@gmail.com>2015-01-02 18:07:01 -0500
commit338dd10f332be8c094ed9bb0d38454eb85eecf47 (patch)
treeb47f8287ed5f70eb04c2e58b27aebae9f6a8675a /src/nvim/sha256.h
parent2e873c8767056e75e8e44d878caf5673df06f423 (diff)
downloadrneovim-338dd10f332be8c094ed9bb0d38454eb85eecf47.tar.gz
rneovim-338dd10f332be8c094ed9bb0d38454eb85eecf47.tar.bz2
rneovim-338dd10f332be8c094ed9bb0d38454eb85eecf47.zip
sha: define SHA256_BUFFER_SIZE and SUM_SIZE.
Diffstat (limited to 'src/nvim/sha256.h')
-rw-r--r--src/nvim/sha256.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nvim/sha256.h b/src/nvim/sha256.h
index 1ab283027a..a118826542 100644
--- a/src/nvim/sha256.h
+++ b/src/nvim/sha256.h
@@ -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