aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2013-02-07 14:25:54 +0000
committerRon Yorston <rmy@pobox.com>2013-02-07 14:25:54 +0000
commitb604585914e032b28bef3e337a978e56a9069cda (patch)
treeb2ee0a3fb38d10397c602d0fe215ea3bbbf334c0 /include/libbb.h
parent0eda07c7ff8cf1fc11bc1bda5383f884d7adf031 (diff)
parentba76b7a40b929878833731f76306b1c977cc8650 (diff)
downloadbusybox-w32-b604585914e032b28bef3e337a978e56a9069cda.tar.gz
busybox-w32-b604585914e032b28bef3e337a978e56a9069cda.tar.bz2
busybox-w32-b604585914e032b28bef3e337a978e56a9069cda.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h
index a749c0b92..c5ff51398 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1532,7 +1532,7 @@ struct smaprec {
1532 procps_read_smaps(pid, total) 1532 procps_read_smaps(pid, total)
1533#endif 1533#endif
1534int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total, 1534int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total,
1535 void (*cb)(struct smaprec *, void *), void *data); 1535 void (*cb)(struct smaprec *, void *), void *data);
1536 1536
1537typedef struct procps_status_t { 1537typedef struct procps_status_t {
1538 DIR *dir; 1538 DIR *dir;
@@ -1655,8 +1655,12 @@ typedef struct sha512_ctx_t {
1655 uint64_t hash[8]; 1655 uint64_t hash[8];
1656 uint8_t wbuffer[128]; /* always correctly aligned for uint64_t */ 1656 uint8_t wbuffer[128]; /* always correctly aligned for uint64_t */
1657} sha512_ctx_t; 1657} sha512_ctx_t;
1658typedef struct sha3_ctx_t {
1659 uint64_t state[25];
1660 unsigned bytes_queued;
1661} sha3_ctx_t;
1658void md5_begin(md5_ctx_t *ctx) FAST_FUNC; 1662void md5_begin(md5_ctx_t *ctx) FAST_FUNC;
1659void md5_hash(md5_ctx_t *ctx, const void *data, size_t length) FAST_FUNC; 1663void md5_hash(md5_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC;
1660void md5_end(md5_ctx_t *ctx, void *resbuf) FAST_FUNC; 1664void md5_end(md5_ctx_t *ctx, void *resbuf) FAST_FUNC;
1661void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC; 1665void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC;
1662#define sha1_hash md5_hash 1666#define sha1_hash md5_hash
@@ -1667,6 +1671,9 @@ void sha256_begin(sha256_ctx_t *ctx) FAST_FUNC;
1667void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; 1671void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC;
1668void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; 1672void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC;
1669void sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC; 1673void sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC;
1674void sha3_begin(sha3_ctx_t *ctx) FAST_FUNC;
1675void sha3_hash(sha3_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC;
1676void sha3_end(sha3_ctx_t *ctx, void *resbuf) FAST_FUNC;
1670 1677
1671extern uint32_t *global_crc32_table; 1678extern uint32_t *global_crc32_table;
1672uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC; 1679uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC;