diff options
author | Ron Yorston <rmy@pobox.com> | 2013-02-07 14:25:54 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2013-02-07 14:25:54 +0000 |
commit | b604585914e032b28bef3e337a978e56a9069cda (patch) | |
tree | b2ee0a3fb38d10397c602d0fe215ea3bbbf334c0 /include/libbb.h | |
parent | 0eda07c7ff8cf1fc11bc1bda5383f884d7adf031 (diff) | |
parent | ba76b7a40b929878833731f76306b1c977cc8650 (diff) | |
download | busybox-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.h | 11 |
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 |
1534 | int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total, | 1534 | int 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 | ||
1537 | typedef struct procps_status_t { | 1537 | typedef 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; |
1658 | typedef struct sha3_ctx_t { | ||
1659 | uint64_t state[25]; | ||
1660 | unsigned bytes_queued; | ||
1661 | } sha3_ctx_t; | ||
1658 | void md5_begin(md5_ctx_t *ctx) FAST_FUNC; | 1662 | void md5_begin(md5_ctx_t *ctx) FAST_FUNC; |
1659 | void md5_hash(md5_ctx_t *ctx, const void *data, size_t length) FAST_FUNC; | 1663 | void md5_hash(md5_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; |
1660 | void md5_end(md5_ctx_t *ctx, void *resbuf) FAST_FUNC; | 1664 | void md5_end(md5_ctx_t *ctx, void *resbuf) FAST_FUNC; |
1661 | void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC; | 1665 | void 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; | |||
1667 | void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; | 1671 | void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; |
1668 | void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; | 1672 | void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; |
1669 | void sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC; | 1673 | void sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC; |
1674 | void sha3_begin(sha3_ctx_t *ctx) FAST_FUNC; | ||
1675 | void sha3_hash(sha3_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; | ||
1676 | void sha3_end(sha3_ctx_t *ctx, void *resbuf) FAST_FUNC; | ||
1670 | 1677 | ||
1671 | extern uint32_t *global_crc32_table; | 1678 | extern uint32_t *global_crc32_table; |
1672 | uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC; | 1679 | uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC; |