diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-09 19:34:20 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-09-11 18:42:17 +0300 |
commit | 6cf8c2f33fd1534687044ec52cb18e86865d7f78 (patch) | |
tree | 5951d785583b94eafb8b7656d6febada3b9004a2 /src/include/microhttpd.h | |
parent | 898550e1aeb894d3f285a21f91d652a7db1feb11 (diff) | |
download | libmicrohttpd-6cf8c2f33fd1534687044ec52cb18e86865d7f78.tar.gz libmicrohttpd-6cf8c2f33fd1534687044ec52cb18e86865d7f78.zip |
Implemented SHA-512/256 hashing support
The full implementation, with support hashing of more than 2 EiB
(exbibytes), as described by specification.
Includes additional code path for more compact code.
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r-- | src/include/microhttpd.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 95c2bb4f..31d4c648 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -96,7 +96,7 @@ extern "C" | |||
96 | * they are parsed as decimal numbers. | 96 | * they are parsed as decimal numbers. |
97 | * Example: 0x01093001 = 1.9.30-1. | 97 | * Example: 0x01093001 = 1.9.30-1. |
98 | */ | 98 | */ |
99 | #define MHD_VERSION 0x00097537 | 99 | #define MHD_VERSION 0x00097538 |
100 | 100 | ||
101 | /* If generic headers don't work on your platform, include headers | 101 | /* If generic headers don't work on your platform, include headers |
102 | which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', | 102 | which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t', |
@@ -4429,6 +4429,15 @@ MHD_destroy_post_processor (struct MHD_PostProcessor *pp); | |||
4429 | #define MHD_SHA256_DIGEST_SIZE 32 | 4429 | #define MHD_SHA256_DIGEST_SIZE 32 |
4430 | 4430 | ||
4431 | /** | 4431 | /** |
4432 | * Length of the binary output of the SHA-512/256 hash function. | ||
4433 | * The value is the same as the #MHD_SHA256_DIGEST_SIZE. | ||
4434 | * @sa #MHD_digest_get_hash_size() | ||
4435 | * @note Available since #MHD_VERSION 0x00097538 | ||
4436 | * @ingroup authentication | ||
4437 | */ | ||
4438 | #define MHD_SHA512_256_DIGEST_SIZE 32 | ||
4439 | |||
4440 | /** | ||
4432 | * Base type of hash calculation. | 4441 | * Base type of hash calculation. |
4433 | * Used as part of #MHD_DigestAuthAlgo3 values. | 4442 | * Used as part of #MHD_DigestAuthAlgo3 values. |
4434 | * | 4443 | * |