<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bn/bn.h, branch OPENBSD_7_9_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-12-05T17:25:55+00:00</updated>
<entry>
<title>libcrypto: remove BN_{DEC,HEX}_FMT1</title>
<updated>2025-12-05T17:25:55+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-12-05T17:25:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d2d87522f440af6431264cc158cc728d8c655bfb'/>
<id>urn:sha1:d2d87522f440af6431264cc158cc728d8c655bfb</id>
<content type='text'>
It appears that these were only ever used in bn_test.c...
</content>
</entry>
<entry>
<title>libcrypto: make most of the BN_* macro pollution internal</title>
<updated>2025-12-05T14:12:32+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-12-05T14:12:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f3f05f0cf8c30a990193e332e26fdd8e54b3f59b'/>
<id>urn:sha1:f3f05f0cf8c30a990193e332e26fdd8e54b3f59b</id>
<content type='text'>
This is a first sweep of reducing the number of terribly named macros
in bn.h More can go away. Those we need internally go to bn_local.h.
Annoyingly bn_internal.h uses some of them, so it includes bn_local.h
now. This can be cleaned up later.

ok jsing kenjiro
</content>
</entry>
<entry>
<title>Use 64 bit BN_ULONG on 64 bit Windows platforms.</title>
<updated>2025-11-07T13:41:40+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-11-07T13:41:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=235bf5dad98ea543384128e2d21e8d4801b6c36c'/>
<id>urn:sha1:235bf5dad98ea543384128e2d21e8d4801b6c36c</id>
<content type='text'>
64 bit Windows is a special LLP snowflake and it is currently incorrectly
using 32 bit BN_ULONG, since _LP64 is not defined. Enable 64 bit BN_ULONG
if _LP64 or _WIN64 is defined.

ok tb@
</content>
</entry>
<entry>
<title>Use more specific types for BN.</title>
<updated>2025-11-05T13:00:26+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2025-11-05T13:00:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=cfaf7540f6b19032df0f388ad6a4d0e0714671c6'/>
<id>urn:sha1:cfaf7540f6b19032df0f388ad6a4d0e0714671c6</id>
<content type='text'>
Be specific about width and use uint64_t/uint32_t, rather than using
unsigned int/long/long long, based on platform. Additionally use UINT64_C()
and UINT32_C() for constants, along with PRI*64/PRI*32 for formatting. This
makes the platform responsible for providing the correct types/defines -
all we then need to do is determine is if BN should use a 32 bit or 64 bit
configuration.

With input from and ok tb@
</content>
</entry>
<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>const correct BN_MONT_CTX_copy()</title>
<updated>2025-03-09T15:22:40+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-03-09T15:22:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5631334d720cef2b52503f79b8fc027aa70e1ac8'/>
<id>urn:sha1:5631334d720cef2b52503f79b8fc027aa70e1ac8</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>fix ugly whitespace</title>
<updated>2025-01-06T13:15:08+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-01-06T13:15:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=aa557c8a395187bd3a0627d68a4259871a47bdeb'/>
<id>urn:sha1:aa557c8a395187bd3a0627d68a4259871a47bdeb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Hide symbols in bn.h</title>
<updated>2024-04-10T14:58:06+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2024-04-10T14:58:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c1002fc07c1599164ea7518630da25bd606c9993'/>
<id>urn:sha1:c1002fc07c1599164ea7518630da25bd606c9993</id>
<content type='text'>
Mark them LCRYPTO_UNUSED appropriately and remove the LIBRESSL_INTERNAL
guards around them

ok tb@
</content>
</entry>
<entry>
<title>Make BN_mod_exp2_mont() and BN_mod_exp_mont_word() internal</title>
<updated>2024-03-02T09:27:31+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-02T09:27:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7542aebe05afee384f3e3d61ec0d1ea06fe2427c'/>
<id>urn:sha1:7542aebe05afee384f3e3d61ec0d1ea06fe2427c</id>
<content type='text'>
The former could be useful but nothing uses it. The latter is a
dangerous implementation detail of Montgomery exponentiation that
should never have been leaked out of the library. Fix this.

ok jsing
</content>
</entry>
<entry>
<title>Make BN_mod_exp_simple() internal</title>
<updated>2024-03-02T09:24:59+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-02T09:24:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5c948777cac23e8035e04e3971d7b5a676652af6'/>
<id>urn:sha1:5c948777cac23e8035e04e3971d7b5a676652af6</id>
<content type='text'>
This function is very slow and useful for testing purposes only. It
should never have been part of the public API. Remove it from there.

ok jsing
</content>
</entry>
</feed>
