a4cb87b751
* busybox-1.37.0-fix-conditional-for-sha1_process_block64_shaNI.patch OBS-URL: https://build.opensuse.org/package/show/Base:System/busybox?expand=0&rev=132
14 lines
573 B
Diff
14 lines
573 B
Diff
diff -up busybox-1.37.0/libbb/hash_md5_sha.c.shaNI-fix busybox-1.37.0/libbb/hash_md5_sha.c
|
|
--- busybox-1.37.0/libbb/hash_md5_sha.c.shaNI-fix 2024-09-27 09:57:09.601487627 -0400
|
|
+++ busybox-1.37.0/libbb/hash_md5_sha.c 2024-09-27 09:57:49.167153221 -0400
|
|
@@ -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;
|