diff options
Diffstat (limited to 'src/microhttpd/sha512_256.h')
-rw-r--r-- | src/microhttpd/sha512_256.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/microhttpd/sha512_256.h b/src/microhttpd/sha512_256.h index 43359dc7..31200c2e 100644 --- a/src/microhttpd/sha512_256.h +++ b/src/microhttpd/sha512_256.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of GNU libmicrohttpd | 2 | This file is part of GNU libmicrohttpd |
3 | Copyright (C) 2022 Karlson2k (Evgeny Grin) | 3 | Copyright (C) 2022 Evgeny Grin (Karlson2k) |
4 | 4 | ||
5 | GNU libmicrohttpd is free software; you can redistribute it and/or | 5 | GNU libmicrohttpd is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public | 6 | modify it under the terms of the GNU Lesser General Public |
@@ -68,18 +68,17 @@ | |||
68 | #define SHA512_256_DIGEST_STRING_SIZE ((SHA512_256_DIGEST_SIZE) * 2 + 1) | 68 | #define SHA512_256_DIGEST_STRING_SIZE ((SHA512_256_DIGEST_SIZE) * 2 + 1) |
69 | 69 | ||
70 | /** | 70 | /** |
71 | * Size of single processing block in bits. | 71 | * Size of SHA-512/256 single processing block in bits. |
72 | * This is the final digest size, not intermediate hash. | ||
73 | */ | 72 | */ |
74 | #define SHA512_256_BLOCK_SIZE_BITS 1024 | 73 | #define SHA512_256_BLOCK_SIZE_BITS 1024 |
75 | 74 | ||
76 | /** | 75 | /** |
77 | * Size of single processing block in bytes. | 76 | * Size of SHA-512/256 single processing block in bytes. |
78 | */ | 77 | */ |
79 | #define SHA512_256_BLOCK_SIZE (SHA512_256_BLOCK_SIZE_BITS / 8) | 78 | #define SHA512_256_BLOCK_SIZE (SHA512_256_BLOCK_SIZE_BITS / 8) |
80 | 79 | ||
81 | /** | 80 | /** |
82 | * Size of single processing block in words. | 81 | * Size of SHA-512/256 single processing block in words. |
83 | */ | 82 | */ |
84 | #define SHA512_256_BLOCK_SIZE_WORDS \ | 83 | #define SHA512_256_BLOCK_SIZE_WORDS \ |
85 | (SHA512_256_BLOCK_SIZE_BITS / SHA512_256_WORD_SIZE_BITS) | 84 | (SHA512_256_BLOCK_SIZE_BITS / SHA512_256_WORD_SIZE_BITS) |