diff options
author | Denis Vlasenko | 2009-03-15 02:56:00 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-03-15 02:56:00 +0000 |
commit | 8ec8d5e3db47398d4799f1a7c6aa0ced043c3e5f (patch) | |
tree | 3d732930b270efaa77493cafb90c1690d6e85c95 /include | |
parent | e9afc468fac07f02c6e4ce160150e737928f8f07 (diff) | |
download | busybox-8ec8d5e3db47398d4799f1a7c6aa0ced043c3e5f.zip busybox-8ec8d5e3db47398d4799f1a7c6aa0ced043c3e5f.tar.gz |
sha: fix thinko in sha512; add FAST_FUNC to sha1/sha256
function old new delta
sha512_process_block128 1334 1336 +2
sha1_hash 112 111 -1
sha256_process_block64 446 440 -6
sha1_process_block64 494 484 -10
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/3 up/down: 2/-17) Total: -15 bytes
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index b6eab6f..bc47ce7 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -1324,7 +1324,7 @@ typedef struct sha1_ctx_t { uint32_t hash[8]; /* 5, +3 elements for sha256 */ uint64_t total64; uint8_t wbuffer[64]; /* NB: always correctly aligned for uint64_t */ - void (*process_block)(struct sha1_ctx_t*); + void (*process_block)(struct sha1_ctx_t*) FAST_FUNC; } sha1_ctx_t; void sha1_begin(sha1_ctx_t *ctx) FAST_FUNC; void sha1_hash(const void *data, size_t length, sha1_ctx_t *ctx) FAST_FUNC; |