aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index f406fc6f1..d05b2d48a 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1514,7 +1514,7 @@ void FAST_FUNC read_base64(FILE *src_stream, FILE *dst_stream, int flags);
1514 1514
1515typedef struct sha1_ctx_t { 1515typedef struct sha1_ctx_t {
1516 uint32_t hash[8]; /* 5, +3 elements for sha256 */ 1516 uint32_t hash[8]; /* 5, +3 elements for sha256 */
1517 uint64_t total64; 1517 uint64_t total64; /* must be directly after hash[] */
1518 uint8_t wbuffer[64]; /* NB: always correctly aligned for uint64_t */ 1518 uint8_t wbuffer[64]; /* NB: always correctly aligned for uint64_t */
1519 void (*process_block)(struct sha1_ctx_t*) FAST_FUNC; 1519 void (*process_block)(struct sha1_ctx_t*) FAST_FUNC;
1520} sha1_ctx_t; 1520} sha1_ctx_t;
@@ -1527,7 +1527,7 @@ void sha256_begin(sha256_ctx_t *ctx) FAST_FUNC;
1527#define sha256_end sha1_end 1527#define sha256_end sha1_end
1528typedef struct sha512_ctx_t { 1528typedef struct sha512_ctx_t {
1529 uint64_t hash[8]; 1529 uint64_t hash[8];
1530 uint64_t total64[2]; 1530 uint64_t total64[2]; /* must be directly after hash[] */
1531 uint8_t wbuffer[128]; /* NB: always correctly aligned for uint64_t */ 1531 uint8_t wbuffer[128]; /* NB: always correctly aligned for uint64_t */
1532} sha512_ctx_t; 1532} sha512_ctx_t;
1533void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; 1533void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC;