diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-20 00:38:09 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-01-20 00:38:09 +0100 |
commit | 2cfcc9e9d74447cb770255d1d8cb6f3722df22ba (patch) | |
tree | 889818c8786569ad380a40cbe6839123141841f5 /include/libbb.h | |
parent | 9980707efc3735574f89ca3fbc686374c6225e3e (diff) | |
download | busybox-w32-2cfcc9e9d74447cb770255d1d8cb6f3722df22ba.tar.gz busybox-w32-2cfcc9e9d74447cb770255d1d8cb6f3722df22ba.tar.bz2 busybox-w32-2cfcc9e9d74447cb770255d1d8cb6f3722df22ba.zip |
sha3: code shrink
function old new delta
sha3_hash 155 101 -54
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index 606db7d0d..e52006020 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -1641,7 +1641,7 @@ typedef struct sha3_ctx_t { | |||
1641 | unsigned bytes_queued; | 1641 | unsigned bytes_queued; |
1642 | } sha3_ctx_t; | 1642 | } sha3_ctx_t; |
1643 | void md5_begin(md5_ctx_t *ctx) FAST_FUNC; | 1643 | void md5_begin(md5_ctx_t *ctx) FAST_FUNC; |
1644 | void md5_hash(md5_ctx_t *ctx, const void *data, size_t length) FAST_FUNC; | 1644 | void md5_hash(md5_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; |
1645 | void md5_end(md5_ctx_t *ctx, void *resbuf) FAST_FUNC; | 1645 | void md5_end(md5_ctx_t *ctx, void *resbuf) FAST_FUNC; |
1646 | void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC; | 1646 | void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC; |
1647 | #define sha1_hash md5_hash | 1647 | #define sha1_hash md5_hash |
@@ -1654,7 +1654,7 @@ void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; | |||
1654 | void sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC; | 1654 | void sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC; |
1655 | void sha3_begin(sha3_ctx_t *ctx) FAST_FUNC; | 1655 | void sha3_begin(sha3_ctx_t *ctx) FAST_FUNC; |
1656 | void sha3_hash(sha3_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; | 1656 | void sha3_hash(sha3_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; |
1657 | void sha3_end(sha3_ctx_t *ctx, uint8_t *resbuf) FAST_FUNC; | 1657 | void sha3_end(sha3_ctx_t *ctx, void *resbuf) FAST_FUNC; |
1658 | 1658 | ||
1659 | extern uint32_t *global_crc32_table; | 1659 | extern uint32_t *global_crc32_table; |
1660 | uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC; | 1660 | uint32_t *crc32_filltable(uint32_t *tbl256, int endian) FAST_FUNC; |