<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/libbb/hash_md5_sha.c, branch cron_changes</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=cron_changes</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=cron_changes'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2026-01-28T08:03:02+00:00</updated>
<entry>
<title>libbb: code shrink</title>
<updated>2026-01-28T08:03:02+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2026-01-28T08:03:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=04eadd2f424f491b5c77f4a247dc0b6da3b9aef2'/>
<id>urn:sha1:04eadd2f424f491b5c77f4a247dc0b6da3b9aef2</id>
<content type='text'>
Fix some compiler warnings and move the CNG algorithm caches into
get_alg_handle().

Saves 32 bytes in the x86_64 build with CNG enabled.
</content>
</entry>
<entry>
<title>libbb: refactor CNG hashing implementation</title>
<updated>2026-01-27T12:45:11+00:00</updated>
<author>
<name>rfl890</name>
<email>rfl890mc@gmail.com</email>
</author>
<published>2026-01-26T09:29:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=74344deef28da6fa279eb12ab8ab4e84a59900ad'/>
<id>urn:sha1:74344deef28da6fa279eb12ab8ab4e84a59900ad</id>
<content type='text'>
The existing CNG implementation relied on multiple features only
implemented in "newer" Windows versions. This new implementation does
not use the aforementioned features and is therefore compatible with
systems running Windows Vista or higher.

function                                             old     new   delta
.rdata                                             87112   87288    +176
hmac_peek_hash                                        80     208    +128
get_alg_handle                                         -      96     +96
algorithm_provider_hmac_cache                          -      48     +48
algorithm_provider_cache                               -      48     +48
alg_id_mappings                                        -      48     +48
sha512_begin                                          16      48     +32
sha384_begin                                          16      48     +32
sha256_begin                                          16      48     +32
sha1_begin                                            16      48     +32
md5_begin                                             16      32     +16
hmac_hash_v                                           48      64     +16
hmac_end                                              48      64     +16
hmac_blocks.constprop.0                               96     112     +16
__imp_BCryptOpenAlgorithmProvider                      -       8      +8
__imp_BCryptDuplicateHash                              -       8      +8
BCryptOpenAlgorithmProvider                            -       8      +8
BCryptDuplicateHash                                    -       8      +8
------------------------------------------------------------------------------
(add/remove: 8/0 grow/shrink: 10/0 up/down: 768/0)            Total: 768 bytes
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2025-08-15T08:00:13+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-08-15T08:00:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=01ff9c492111cf7d51ad074629d6e72bc69fc149'/>
<id>urn:sha1:01ff9c492111cf7d51ad074629d6e72bc69fc149</id>
<content type='text'>
</content>
</entry>
<entry>
<title>sha384sum: new applet</title>
<updated>2025-07-30T16:39:46+00:00</updated>
<author>
<name>Andy Knowles</name>
<email>aknowles@galleonec.com</email>
</author>
<published>2025-07-30T16:29:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=dcbb69e0a5cce9058afc5a96b9862982ae17cb39'/>
<id>urn:sha1:dcbb69e0a5cce9058afc5a96b9862982ae17cb39</id>
<content type='text'>
function                                             old     new   delta
sha512384_end                                          -     198    +198
packed_usage                                       35021   35134    +113
init384                                                -      80     +80
sha384_begin                                           -      19     +19
sha384_end                                             -      10     +10
applet_names                                        2823    2833     +10
md5_sha1_sum_main                                    501     507      +6
sha3_end                                              54      59      +5
applet_main                                         1628    1632      +4
show_usage_if_dash_dash_help                          79      72      -7
hash_file                                            358     344     -14
sha512_end                                           197      10    -187
------------------------------------------------------------------------------
(add/remove: 4/0 grow/shrink: 5/3 up/down: 445/-208)          Total: 237 bytes

Signed-off-by: Andy Knowles &lt;aknowles@galleonec.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Call BCryptDestroyHash before freeing memory handle</title>
<updated>2025-07-30T07:20:05+00:00</updated>
<author>
<name>RFL890</name>
<email>rfl890mc@gmail.com</email>
</author>
<published>2025-07-30T02:59:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1f6926252ec11037b06e29791920e6c13d169520'/>
<id>urn:sha1:1f6926252ec11037b06e29791920e6c13d169520</id>
<content type='text'>
</content>
</entry>
<entry>
<title>win32: deduplicate die_if_error()</title>
<updated>2025-07-11T10:47:56+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-07-11T10:47:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b3ad13290344c2f40dc5bdc6053cc3cc73acfd9c'/>
<id>urn:sha1:b3ad13290344c2f40dc5bdc6053cc3cc73acfd9c</id>
<content type='text'>
There were two copies of the static function die_if_error().
Replace these with a single external function.

Saves 16 bytes.
</content>
</entry>
<entry>
<title>patch tls.c to work with CNG implementation</title>
<updated>2025-07-11T10:43:12+00:00</updated>
<author>
<name>RFL890</name>
<email>rfl890mc@gmail.com</email>
</author>
<published>2025-07-09T23:00:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b6f61951924d2188df1964cbd0d3264aaa12592a'/>
<id>urn:sha1:b6f61951924d2188df1964cbd0d3264aaa12592a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use Windows library for cryptographic checksums</title>
<updated>2025-06-09T12:23:49+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2025-06-09T12:23:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=596c443112d09506c3bf13ac98046a84b912e56c'/>
<id>urn:sha1:596c443112d09506c3bf13ac98046a84b912e56c</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>libbb: fix sha1 on !x86 if CONFIG_SHA1_HWACCEL=y</title>
<updated>2024-10-06T15:56:42+00:00</updated>
<author>
<name>Rudi Heitbaum</name>
<email>rudi@heitbaum.com</email>
</author>
<published>2024-09-29T17:57:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=bf57f732a5b6842f6fa3e0f90385f039e5d6a92c'/>
<id>urn:sha1:bf57f732a5b6842f6fa3e0f90385f039e5d6a92c</id>
<content type='text'>
fixes non i386 and x86 builds

libbb/hash_md5_sha.c: In function 'sha1_end':
libbb/hash_md5_sha.c:1316:35: error: 'sha1_process_block64_shaNI' undeclared
 1316 |          || ctx-&gt;process_block == sha1_process_block64_shaNI

Signed-off-by: Rudi Heitbaum &lt;rudi@heitbaum.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>tls: fix CONFIG_FEATURE_TLS_SHA1=y + CONFIG_SHA1_HWACCEL=y</title>
<updated>2024-07-12T17:30:14+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2024-07-12T17:30:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1ad2f5cd9fe5de0f19212924e100c6d87229c950'/>
<id>urn:sha1:1ad2f5cd9fe5de0f19212924e100c6d87229c950</id>
<content type='text'>
The check for result hash size was buggy for CONFIG_SHA1_HWACCEL=y.

While at it, document CPUID use a bit better.

function                                             old     new   delta
get_shaNI                                              -      28     +28
sha1_end                                              66      79     +13
sha256_begin                                          83      60     -23
sha1_begin                                           111      88     -23
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/2 up/down: 41/-46)             Total: -5 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
</feed>
