diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 12 |
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; |
1521 | void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC; | 1521 | void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC; |
1522 | void sha1_hash(const void *data, size_t length, sha1_ctx_t *ctx) FAST_FUNC; | 1522 | void sha1_hash(sha1_ctx_t *ctx, const void *data, size_t length) FAST_FUNC; |
1523 | void sha1_end(void *resbuf, sha1_ctx_t *ctx) FAST_FUNC; | 1523 | void sha1_end(sha1_ctx_t *ctx, void *resbuf) FAST_FUNC; |
1524 | typedef struct sha1_ctx_t sha256_ctx_t; | 1524 | typedef struct sha1_ctx_t sha256_ctx_t; |
1525 | void sha256_begin(sha256_ctx_t *ctx) FAST_FUNC; | 1525 | void 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; |
1533 | void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; | 1533 | void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; |
1534 | void sha512_hash(const void *buffer, size_t len, sha512_ctx_t *ctx) FAST_FUNC; | 1534 | void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; |
1535 | void sha512_end(void *resbuf, sha512_ctx_t *ctx) FAST_FUNC; | 1535 | void sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC; |
1536 | #if 1 | 1536 | #if 1 |
1537 | typedef struct md5_ctx_t { | 1537 | typedef 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 |
1553 | void md5_begin(md5_ctx_t *ctx) FAST_FUNC; | 1553 | void md5_begin(md5_ctx_t *ctx) FAST_FUNC; |
1554 | void md5_hash(const void *data, size_t length, md5_ctx_t *ctx) FAST_FUNC; | 1554 | void md5_hash(md5_ctx_t *ctx, const void *data, size_t length) FAST_FUNC; |
1555 | void md5_end(void *resbuf, md5_ctx_t *ctx) FAST_FUNC; | 1555 | void md5_end(md5_ctx_t *ctx, void *resbuf) FAST_FUNC; |
1556 | 1556 | ||
1557 | 1557 | ||
1558 | uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC; | 1558 | uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC; |