diff options
author | Rudi Heitbaum <rudi@heitbaum.com> | 2024-09-29 17:57:55 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2024-10-06 17:56:42 +0200 |
commit | bf57f732a5b6842f6fa3e0f90385f039e5d6a92c (patch) | |
tree | ceaf843dc2c7f3c006a6b97cbfcea5513872dd3e | |
parent | dff444bc375e6eb4c6775dbfc753ba71b46e9797 (diff) | |
download | busybox-w32-bf57f732a5b6842f6fa3e0f90385f039e5d6a92c.tar.gz busybox-w32-bf57f732a5b6842f6fa3e0f90385f039e5d6a92c.tar.bz2 busybox-w32-bf57f732a5b6842f6fa3e0f90385f039e5d6a92c.zip |
libbb: fix sha1 on !x86 if CONFIG_SHA1_HWACCEL=y
fixes non i386 and x86 builds
libbb/hash_md5_sha.c: In function 'sha1_end':
libbb/hash_md5_sha.c:1316:35: error: 'sha1_process_block64_shaNI' undeclared
1316 | || ctx->process_block == sha1_process_block64_shaNI
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | libbb/hash_md5_sha.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/hash_md5_sha.c b/libbb/hash_md5_sha.c index 57a801459..75a61c32c 100644 --- a/libbb/hash_md5_sha.c +++ b/libbb/hash_md5_sha.c | |||
@@ -1313,7 +1313,9 @@ unsigned FAST_FUNC sha1_end(sha1_ctx_t *ctx, void *resbuf) | |||
1313 | hash_size = 8; | 1313 | hash_size = 8; |
1314 | if (ctx->process_block == sha1_process_block64 | 1314 | if (ctx->process_block == sha1_process_block64 |
1315 | #if ENABLE_SHA1_HWACCEL | 1315 | #if ENABLE_SHA1_HWACCEL |
1316 | # if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) | ||
1316 | || ctx->process_block == sha1_process_block64_shaNI | 1317 | || ctx->process_block == sha1_process_block64_shaNI |
1318 | # endif | ||
1317 | #endif | 1319 | #endif |
1318 | ) { | 1320 | ) { |
1319 | hash_size = 5; | 1321 | hash_size = 5; |