aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2025-06-09 13:23:49 +0100
committerRon Yorston <rmy@pobox.com>2025-06-09 13:23:49 +0100
commit596c443112d09506c3bf13ac98046a84b912e56c (patch)
tree896fd4d7e43a71a8a15dbcec17f6cafcbe622635 /Makefile.flags
parent854c647da7a84cf2aaa2c9a84ff1ca353bdaf9cf (diff)
downloadbusybox-w32-cng_backend.tar.gz
busybox-w32-cng_backend.tar.bz2
busybox-w32-cng_backend.zip
Use Windows library for cryptographic checksumscng_backend
Add a new feature to libbb, FEATURE_USE_CNG_API, which enables the use of the Cryptography API: Next Generation library to calculate checksums. It is disabled by default except in the mingw64u default config, as the API requires Windows 10+ to function. Usage of this API provides a size benefit and delegates hardware optimizations to the operating system cryptography library. Based on GitHub PR #498 by rfl890. Saves 4064 bytes in the mingw64u case.
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index bf094ec5e..a26e61e7b 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -164,7 +164,7 @@ endif
164endif 164endif
165 165
166EXEEXT = .exe 166EXEEXT = .exe
167LDLIBS += ws2_32 167LDLIBS += ws2_32 bcrypt
168endif 168endif
169 169
170ifneq ($(CONFIG_PLATFORM_MINGW32),y) 170ifneq ($(CONFIG_PLATFORM_MINGW32),y)