<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bn, branch libressl-v4.2.1</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v4.2.1</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v4.2.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-09-07T06:28:03+00:00</updated>
<entry>
<title>Remove BN_DIV2W.</title>
<updated>2025-09-07T06:28:03+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-07T06:28:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=98287b7cd5d64488bbaf57088225f91bd8e8a7f9'/>
<id>urn:sha1:98287b7cd5d64488bbaf57088225f91bd8e8a7f9</id>
<content type='text'>
The BN_DIV2W define provides a code path for double word division via the C
compiler, which is only enabled on hppa. Simplify the code and mop this up.

ok tb@
</content>
</entry>
<entry>
<title>Re-enable bn_sqr_words() assembly.</title>
<updated>2025-09-07T05:21:29+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-07T05:21:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9283c4361ce1f1a39a1f03c588c3d1a3da64025e'/>
<id>urn:sha1:9283c4361ce1f1a39a1f03c588c3d1a3da64025e</id>
<content type='text'>
This is now only on amd64.
</content>
</entry>
<entry>
<title>Rename old assembly bn_sqr_words() to bn_sqr_word_wise().</title>
<updated>2025-09-07T03:56:37+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-07T03:56:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6dd87e766b900133746524ad2d5599160de6f5c8'/>
<id>urn:sha1:6dd87e766b900133746524ad2d5599160de6f5c8</id>
<content type='text'>
bn_sqr_words() does not actually compute the square of the words, it only
computes the square of each individual word - rename it to reflect reality.

Discussed with tb@
</content>
</entry>
<entry>
<title>Disable assembly bn_sqr_words() again for now.</title>
<updated>2025-09-02T14:18:38+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-02T14:18:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=99f066b0e074e44bab8174651b96c62ac333cc64'/>
<id>urn:sha1:99f066b0e074e44bab8174651b96c62ac333cc64</id>
<content type='text'>
The old assembly bn_sqr_words() does not actually square words in the
bignum sense. These will have to be renamed (once I come up with a name
for whatever it actually does) before we can roll forward again.

Found the hard way by Janne Johansson.
</content>
</entry>
<entry>
<title>Add const here as well...</title>
<updated>2025-09-01T15:39:59+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-01T15:39:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8262857db881f41bd13636dcc49f7f4b28ba9e08'/>
<id>urn:sha1:8262857db881f41bd13636dcc49f7f4b28ba9e08</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use bn_mul_words() from bn_mod_mul_words().</title>
<updated>2025-09-01T15:35:25+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-01T15:35:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=99d47c1078643352842f47b6330086d9affefb59'/>
<id>urn:sha1:99d47c1078643352842f47b6330086d9affefb59</id>
<content type='text'>
Use bn_mul_words() and bn_montgomery_reduce_words(), rather than using
bn_montgomery_multiply_words(). This provides better performance on
architectures that have assembly optimised bn_mul_words(), such as amd64.
</content>
</entry>
<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>Use bn_sqr_words() from bn_mod_sqr_words().</title>
<updated>2025-09-01T15:18:55+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-09-01T15:18:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a71d96fc5f06e3d4eaad85e2958a525f4f6fd26e'/>
<id>urn:sha1:a71d96fc5f06e3d4eaad85e2958a525f4f6fd26e</id>
<content type='text'>
Use bn_sqr_words() and bn_montgomery_reduce_words(), rather than using
bn_montgomery_multiply_words(). This provides better performance on
architectures that have assembly optimised bn_sqr_words(), such as amd64.

ok tb@
</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>
</feed>
