diff options
| author | Ron Yorston <rmy@pobox.com> | 2025-06-09 13:23:49 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2025-06-09 13:23:49 +0100 |
| commit | 596c443112d09506c3bf13ac98046a84b912e56c (patch) | |
| tree | 896fd4d7e43a71a8a15dbcec17f6cafcbe622635 /Makefile.flags | |
| parent | 854c647da7a84cf2aaa2c9a84ff1ca353bdaf9cf (diff) | |
| download | busybox-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.flags | 2 |
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 | |||
| 164 | endif | 164 | endif |
| 165 | 165 | ||
| 166 | EXEEXT = .exe | 166 | EXEEXT = .exe |
| 167 | LDLIBS += ws2_32 | 167 | LDLIBS += ws2_32 bcrypt |
| 168 | endif | 168 | endif |
| 169 | 169 | ||
| 170 | ifneq ($(CONFIG_PLATFORM_MINGW32),y) | 170 | ifneq ($(CONFIG_PLATFORM_MINGW32),y) |
