aboutsummaryrefslogtreecommitdiff
path: root/libbb/Config.src
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2025-06-12 13:03:20 +0000
committerGitHub <noreply@github.com>2025-06-12 13:03:20 +0000
commit143f43d75e5f210c5876c2f73bb842e4f08110a6 (patch)
tree8ae55c1e2e14f1a826866940ea3f189051a2b1ed /libbb/Config.src
parent854c647da7a84cf2aaa2c9a84ff1ca353bdaf9cf (diff)
parent3fac1fbf2c3daf805629f0ecb10b3d268d2a6f5d (diff)
downloadbusybox-w32-143f43d75e5f210c5876c2f73bb842e4f08110a6.tar.gz
busybox-w32-143f43d75e5f210c5876c2f73bb842e4f08110a6.tar.bz2
busybox-w32-143f43d75e5f210c5876c2f73bb842e4f08110a6.zip
Merge pull request #498 from rfl890/master
Add a Windows CNG backend for hash_md5_sha
Diffstat (limited to 'libbb/Config.src')
-rw-r--r--libbb/Config.src10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbb/Config.src b/libbb/Config.src
index 61b4601d6..ed6521c33 100644
--- a/libbb/Config.src
+++ b/libbb/Config.src
@@ -37,6 +37,14 @@ config PASSWORD_MINLEN
37 help 37 help
38 Minimum allowable password length. 38 Minimum allowable password length.
39 39
40config FEATURE_USE_CNG_API
41 bool "Use the Windows CNG API for checksums (Windows 10+ only)"
42 default n
43 depends on PLATFORM_MINGW32
44 help
45 Use the in-built Windows CNG API for checksums.
46 This reduces code size, but is only supported on Windows 10+.
47
40config MD5_SMALL 48config MD5_SMALL
41 int "MD5: Trade bytes for speed (0:fast, 3:slow)" 49 int "MD5: Trade bytes for speed (0:fast, 3:slow)"
42 default 1 # all "fast or small" options default to small 50 default 1 # all "fast or small" options default to small
@@ -67,6 +75,7 @@ config SHA1_SMALL
67config SHA1_HWACCEL 75config SHA1_HWACCEL
68 bool "SHA1: Use hardware accelerated instructions if possible" 76 bool "SHA1: Use hardware accelerated instructions if possible"
69 default y 77 default y
78 depends on !FEATURE_USE_CNG_API
70 help 79 help
71 On x86, this adds ~590 bytes of code. Throughput 80 On x86, this adds ~590 bytes of code. Throughput
72 is about twice as fast as fully-unrolled generic code. 81 is about twice as fast as fully-unrolled generic code.
@@ -74,6 +83,7 @@ config SHA1_HWACCEL
74config SHA256_HWACCEL 83config SHA256_HWACCEL
75 bool "SHA256: Use hardware accelerated instructions if possible" 84 bool "SHA256: Use hardware accelerated instructions if possible"
76 default y 85 default y
86 depends on !FEATURE_USE_CNG_API
77 help 87 help
78 On x86, this adds ~1k bytes of code. 88 On x86, this adds ~1k bytes of code.
79 89