diff options
| author | Andy Knowles <aknowles@galleonec.com> | 2025-07-30 18:29:48 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2025-07-30 18:39:46 +0200 |
| commit | dcbb69e0a5cce9058afc5a96b9862982ae17cb39 (patch) | |
| tree | 69dbf4bb962a20c86a7a9ca3e6c7802764cf2db1 /include/libbb.h | |
| parent | 628a7b2f4708037056a1432d7b6b1792c67e486a (diff) | |
| download | busybox-w32-dcbb69e0a5cce9058afc5a96b9862982ae17cb39.tar.gz busybox-w32-dcbb69e0a5cce9058afc5a96b9862982ae17cb39.tar.bz2 busybox-w32-dcbb69e0a5cce9058afc5a96b9862982ae17cb39.zip | |
sha384sum: new applet
function old new delta
sha512384_end - 198 +198
packed_usage 35021 35134 +113
init384 - 80 +80
sha384_begin - 19 +19
sha384_end - 10 +10
applet_names 2823 2833 +10
md5_sha1_sum_main 501 507 +6
sha3_end 54 59 +5
applet_main 1628 1632 +4
show_usage_if_dash_dash_help 79 72 -7
hash_file 358 344 -14
sha512_end 197 10 -187
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 5/3 up/down: 445/-208) Total: 237 bytes
Signed-off-by: Andy Knowles <aknowles@galleonec.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
| -rw-r--r-- | include/libbb.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 4f44680aa..7105bd479 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -2209,8 +2209,9 @@ enum { | |||
| 2209 | MD5_OUTSIZE = 16, | 2209 | MD5_OUTSIZE = 16, |
| 2210 | SHA1_OUTSIZE = 20, | 2210 | SHA1_OUTSIZE = 20, |
| 2211 | SHA256_OUTSIZE = 32, | 2211 | SHA256_OUTSIZE = 32, |
| 2212 | SHA384_OUTSIZE = 48, | ||
| 2212 | SHA512_OUTSIZE = 64, | 2213 | SHA512_OUTSIZE = 64, |
| 2213 | SHA3_OUTSIZE = 28, | 2214 | //SHA3-224_OUTSIZE = 28, |
| 2214 | /* size of input block */ | 2215 | /* size of input block */ |
| 2215 | SHA2_INSIZE = 64, | 2216 | SHA2_INSIZE = 64, |
| 2216 | }; | 2217 | }; |
| @@ -2227,6 +2228,7 @@ typedef struct sha512_ctx_t { | |||
| 2227 | uint64_t hash[8]; | 2228 | uint64_t hash[8]; |
| 2228 | uint8_t wbuffer[128]; /* always correctly aligned for uint64_t */ | 2229 | uint8_t wbuffer[128]; /* always correctly aligned for uint64_t */ |
| 2229 | } sha512_ctx_t; | 2230 | } sha512_ctx_t; |
| 2231 | typedef struct sha512_ctx_t sha384_ctx_t; | ||
| 2230 | typedef struct sha3_ctx_t { | 2232 | typedef struct sha3_ctx_t { |
| 2231 | uint64_t state[25]; | 2233 | uint64_t state[25]; |
| 2232 | unsigned bytes_queued; | 2234 | unsigned bytes_queued; |
| @@ -2244,6 +2246,9 @@ void sha256_begin(sha256_ctx_t *ctx) FAST_FUNC; | |||
| 2244 | void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; | 2246 | void sha512_begin(sha512_ctx_t *ctx) FAST_FUNC; |
| 2245 | void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; | 2247 | void sha512_hash(sha512_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; |
| 2246 | unsigned sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC; | 2248 | unsigned sha512_end(sha512_ctx_t *ctx, void *resbuf) FAST_FUNC; |
| 2249 | void sha384_begin(sha384_ctx_t *ctx) FAST_FUNC; | ||
| 2250 | #define sha384_hash sha512_hash | ||
| 2251 | unsigned sha384_end(sha384_ctx_t *ctx, void *resbuf) FAST_FUNC; | ||
| 2247 | void sha3_begin(sha3_ctx_t *ctx) FAST_FUNC; | 2252 | void sha3_begin(sha3_ctx_t *ctx) FAST_FUNC; |
| 2248 | void sha3_hash(sha3_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; | 2253 | void sha3_hash(sha3_ctx_t *ctx, const void *buffer, size_t len) FAST_FUNC; |
| 2249 | unsigned sha3_end(sha3_ctx_t *ctx, void *resbuf) FAST_FUNC; | 2254 | unsigned sha3_end(sha3_ctx_t *ctx, void *resbuf) FAST_FUNC; |
