aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 034016f4a..1031cad8b 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1519,8 +1519,8 @@ typedef struct sha1_ctx_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;
1521void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC; 1521void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC;
1522void sha1_hash(const void *data, size_t length, sha1_ctx_t *ctx) FAST_FUNC; 1522void sha1_hash(sha1_ctx_t *ctx, const void *data, size_t length) FAST_FUNC;
1523void sha1_end(void *resbuf, sha1_ctx_t *ctx) FAST_FUNC; 1523void sha1_end(sha1_ctx_t *ctx, void *resbuf) FAST_FUNC;
1524typedef struct sha1_ctx_t sha256_ctx_t; 1524typedef struct sha1_ctx_t sha256_ctx_t;
1525void sha256_begin(sha256_ctx_t *ctx) FAST_FUNC; 1525void sha256_begin(sha256_ctx_t *ctx) FAST_FUNC;
1526#define sha256_hash sha1_hash 1526#define sha256_hash sha1_hash
@@ -1531,8 +1531,8 @@ typedef struct sha512_ctx_t {
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;
1534void sha512_hash(const void *buffer, size_t len, sha512_ctx_t *ctx) FAST_FUNC; 1534void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC;
1535void sha512_end(void *resbuf, sha512_ctx_t *ctx) FAST_FUNC; 1535void sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC;
1536#if 1 1536#if 1
1537typedef struct md5_ctx_t { 1537typedef struct md5_ctx_t {
1538 uint32_t A; 1538 uint32_t A;
@@ -1551,8 +1551,8 @@ typedef struct md5_ctx_t {
1551} md5_ctx_t; 1551} md5_ctx_t;
1552#endif 1552#endif
1553void md5_begin(md5_ctx_t *ctx) FAST_FUNC; 1553void md5_begin(md5_ctx_t *ctx) FAST_FUNC;
1554void md5_hash(const void *data, size_t length, md5_ctx_t *ctx) FAST_FUNC; 1554void md5_hash(md5_ctx_t *ctx, const void *data, size_t length) FAST_FUNC;
1555void md5_end(void *resbuf, md5_ctx_t *ctx) FAST_FUNC; 1555void md5_end(md5_ctx_t *ctx, void *resbuf) FAST_FUNC;
1556 1556
1557 1557
1558uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC; 1558uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC;