aboutsummaryrefslogtreecommitdiff
path: root/scripts
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 /scripts
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 'scripts')
-rwxr-xr-xscripts/mk_mingw64u_defconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mk_mingw64u_defconfig b/scripts/mk_mingw64u_defconfig
index 19124d735..5561a0900 100755
--- a/scripts/mk_mingw64u_defconfig
+++ b/scripts/mk_mingw64u_defconfig
@@ -32,6 +32,7 @@ set_build_opts \
32 CONFIG_LAST_SUPPORTED_WCHAR=1114111 \ 32 CONFIG_LAST_SUPPORTED_WCHAR=1114111 \
33 CONFIG_UNICODE_COMBINING_WCHARS=y \ 33 CONFIG_UNICODE_COMBINING_WCHARS=y \
34 CONFIG_UNICODE_WIDE_WCHARS=y \ 34 CONFIG_UNICODE_WIDE_WCHARS=y \
35 CONFIG_FEATURE_USE_CNG_API=y \
35 < "$configs"/mingw64_defconfig \ 36 < "$configs"/mingw64_defconfig \
36 > "$configs"/mingw64u_defconfig 37 > "$configs"/mingw64u_defconfig
37 38