diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h index 4c9901027..3f566f8af 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1329,18 +1329,16 @@ void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC; | |||
1329 | void sha1_hash(const void *data, size_t length, sha1_ctx_t *ctx) FAST_FUNC; | 1329 | void sha1_hash(const void *data, size_t length, sha1_ctx_t *ctx) FAST_FUNC; |
1330 | void sha1_end(void *resbuf, sha1_ctx_t *ctx) FAST_FUNC; | 1330 | void sha1_end(void *resbuf, sha1_ctx_t *ctx) FAST_FUNC; |
1331 | typedef struct sha256_ctx_t { | 1331 | typedef struct sha256_ctx_t { |
1332 | unsigned wbuflen; | ||
1333 | uint32_t H[8]; | ||
1334 | uint64_t total64; | 1332 | uint64_t total64; |
1333 | uint32_t hash[8]; | ||
1335 | char wbuffer[64*2]; /* NB: always correctly aligned for uint64_t */ | 1334 | char wbuffer[64*2]; /* NB: always correctly aligned for uint64_t */ |
1336 | } sha256_ctx_t; | 1335 | } sha256_ctx_t; |
1337 | void sha256_begin(sha256_ctx_t *ctx) FAST_FUNC; | 1336 | void sha256_begin(sha256_ctx_t *ctx) FAST_FUNC; |
1338 | void sha256_hash(const void *buffer, size_t len, sha256_ctx_t *ctx) FAST_FUNC; | 1337 | void sha256_hash(const void *buffer, size_t len, sha256_ctx_t *ctx) FAST_FUNC; |
1339 | void sha256_end(void *resbuf, sha256_ctx_t *ctx) FAST_FUNC; | 1338 | void sha256_end(void *resbuf, sha256_ctx_t *ctx) FAST_FUNC; |
1340 | typedef struct sha512_ctx_t { | 1339 | typedef struct sha512_ctx_t { |
1341 | unsigned wbuflen; | ||
1342 | uint64_t H[8]; | ||
1343 | uint64_t total64[2]; | 1340 | uint64_t total64[2]; |
1341 | uint64_t hash[8]; | ||
1344 | char wbuffer[128*2]; /* NB: always correctly aligned for uint64_t */ | 1342 | char wbuffer[128*2]; /* NB: always correctly aligned for uint64_t */ |
1345 | } sha512_ctx_t; | 1343 | } sha512_ctx_t; |
1346 | void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; | 1344 | void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; |