33 #define SHA256_BLOCK_LENGTH 64
34 #define SHA256_DIGEST_LENGTH 32
35 #define SHA256_DIGEST_STRING_LENGTH (SHA256_DIGEST_LENGTH * 2 + 1)
40 apr_uint32_t state[8];
41 apr_uint64_t bitcount;
42 apr_byte_t buffer[SHA256_BLOCK_LENGTH];
48 void apr__SHA256_Update(
SHA256_CTX *,
const apr_byte_t *,
size_t);
49 void apr__SHA256_Final(apr_byte_t [SHA256_DIGEST_LENGTH],
SHA256_CTX *);
50 char* apr__SHA256_End(
SHA256_CTX *,
char [SHA256_DIGEST_STRING_LENGTH]);
51 char* apr__SHA256_Data(
const apr_byte_t *,
size_t,
52 char [SHA256_DIGEST_STRING_LENGTH]);
APR Platform Definitions.