<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bn/arch/amd64, branch OPENBSD_7_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-09-01T15:33:23+00:00</updated>
<entry>
<title>Constify bn_mul_words().</title>
<updated>2025-09-01T15:33:23+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-01T15:33:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=edd4db8b24106490f82c1a694d4e2b35afe9c6cb'/>
<id>urn:sha1:edd4db8b24106490f82c1a694d4e2b35afe9c6cb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Provide bn_mul_words() on amd64.</title>
<updated>2025-09-01T15:15:44+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-01T15:15:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b788687c68f1df8051cd54ab960dd9f91c4671d8'/>
<id>urn:sha1:b788687c68f1df8051cd54ab960dd9f91c4671d8</id>
<content type='text'>
This uses s2n-bignum's bignum_mul() and provides significant performance
gains for a range of multiplication sizes.
</content>
</entry>
<entry>
<title>Reorder functions since they've been renamed.</title>
<updated>2025-08-31T09:34:51+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-08-31T09:34:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=db246afaad7e4bbe59bd2805c624374b2f5f8f7d'/>
<id>urn:sha1:db246afaad7e4bbe59bd2805c624374b2f5f8f7d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename bn_mul_words()/bn_mul_add_words().</title>
<updated>2025-08-30T07:54:27+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-08-30T07:54:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=694b88dc8ad458db9997e90128806a423fec09db'/>
<id>urn:sha1:694b88dc8ad458db9997e90128806a423fec09db</id>
<content type='text'>
Most bn_.*_words() functions operate on two word arrays, however
bn_mul_words() and bn_mul_add_words() operate on one word array and
multiply by a single word. Rename these to bn_mulw_words() and
bn_mulw_add_words() to reflect this, following naming scheme that we use
for primitives.

This frees up bn_mul_words() to actually be used for multiplying two word
arrays. Rename bn_mul_normal() to bn_mul_words(), which will then become
one of the possible assembly integration points.

ok tb@
</content>
</entry>
<entry>
<title>Rework bn_sqr() to use bn_sqr_words().</title>
<updated>2025-08-30T07:16:06+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-08-30T07:16:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3adccdb355e2f651255227b11a6324730cb85e48'/>
<id>urn:sha1:3adccdb355e2f651255227b11a6324730cb85e48</id>
<content type='text'>
Rework some of the squaring code so that it calls bn_sqr_words() and use
this as the integration point for assembly. Convert bn_sqr_normal() to
bn_sqr_words(), which is then used on architectures that do not provide
their own version.

This means that we resume using the assembly version of bn_sqr_words() on
i386, mips64 and powerpc, which can provide considerable performance gains.

ok tb@
</content>
</entry>
<entry>
<title>Use faster versions of bignum_{mul,sqr}_{4_8,6_12,8_16}() if possible.</title>
<updated>2025-08-14T15:29:17+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-08-14T15:29:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9bef27f78e41e8026f1d588e4e36e385061f3deb'/>
<id>urn:sha1:9bef27f78e41e8026f1d588e4e36e385061f3deb</id>
<content type='text'>
If ADX instructions are available, use the non-_alt version of s2n-bignum's
bignum_{mul,sqr}_{4_8,6_12,8_16}(), which are faster than the _alt
non-ADX versions.

ok tb@
</content>
</entry>
<entry>
<title>Provide amd64 specific versions of bn_mul_comba6() and bn_sqr_comba6().</title>
<updated>2025-08-14T15:22:54+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-08-14T15:22:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=409f4a640898671720faa6bd2e7a6111335968c8'/>
<id>urn:sha1:409f4a640898671720faa6bd2e7a6111335968c8</id>
<content type='text'>
These use s2n-bignum's bignum_mul_6_12_alt() and bignum_sqr_6_12_alt()
functions.

ok tb@
</content>
</entry>
<entry>
<title>Provide bn_mod_add_words() and bn_mod_sub_words() on amd64.</title>
<updated>2025-08-14T15:17:19+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-08-14T15:17:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=278945f44c7c245ab97c000f622ed5ad243818a1'/>
<id>urn:sha1:278945f44c7c245ab97c000f622ed5ad243818a1</id>
<content type='text'>
These use s2n-bignum's bignum_modadd() and bignum_modsub() routines.

ok tb@
</content>
</entry>
<entry>
<title>Revise include to match the name that we use.</title>
<updated>2025-08-12T10:23:40+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-08-12T10:23:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9daf30ef7ed52e5e01eb3ffbcf1ddc212007ba78'/>
<id>urn:sha1:9daf30ef7ed52e5e01eb3ffbcf1ddc212007ba78</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace SPDX-License-Identifier with actual license.</title>
<updated>2025-08-12T10:22:13+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-08-12T10:22:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7e34560faf4e16d6e3b23107fcf71ee8746112f2'/>
<id>urn:sha1:7e34560faf4e16d6e3b23107fcf71ee8746112f2</id>
<content type='text'>
</content>
</entry>
</feed>
