Commit 2a79ba97 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add symbolic SHA256_LEN for the size of the digest.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3807 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7d2ce9f6
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
#include <stdint.h> #include <stdint.h>
#define SHA256_LEN 32
typedef struct SHA256Context { typedef struct SHA256Context {
uint32_t state[8]; uint32_t state[8];
uint64_t count; uint64_t count;
...@@ -39,7 +41,7 @@ typedef struct SHA256Context { ...@@ -39,7 +41,7 @@ typedef struct SHA256Context {
void SHA256_Init(SHA256_CTX *); void SHA256_Init(SHA256_CTX *);
void SHA256_Update(SHA256_CTX *, const void *, size_t); void SHA256_Update(SHA256_CTX *, const void *, size_t);
void SHA256_Final(unsigned char [32], SHA256_CTX *); void SHA256_Final(unsigned char [SHA256_LEN], SHA256_CTX *);
void SHA256_Test(void); void SHA256_Test(void);
#endif /* !_SHA256_H_ */ #endif /* !_SHA256_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment