mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-06 11:09:31 +00:00
15 lines
516 B
Diff
15 lines
516 B
Diff
|
Index: busybox-1.37.0/libbb/hash_md5_sha.c
|
||
|
===================================================================
|
||
|
--- busybox-1.37.0.orig/libbb/hash_md5_sha.c
|
||
|
+++ busybox-1.37.0/libbb/hash_md5_sha.c
|
||
|
@@ -1313,7 +1313,9 @@ unsigned FAST_FUNC sha1_end(sha1_ctx_t *
|
||
|
hash_size = 8;
|
||
|
if (ctx->process_block == sha1_process_block64
|
||
|
#if ENABLE_SHA1_HWACCEL
|
||
|
+# if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
|
||
|
|| ctx->process_block == sha1_process_block64_shaNI
|
||
|
+# endif
|
||
|
#endif
|
||
|
) {
|
||
|
hash_size = 5;
|