<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bn/bn_primitives.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2023-06-21T07:48:41+00:00</updated>
<entry>
<title>Provide and use bn_clzw() in place of bn_word_clz().</title>
<updated>2023-06-21T07:48:41+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-06-21T07:48:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b0edbf3f98eba4b1effd31584dae0af06eb2deff'/>
<id>urn:sha1:b0edbf3f98eba4b1effd31584dae0af06eb2deff</id>
<content type='text'>
On some architectures, we can provide an optimised (often single
instruction) count-leading-zero implementation. In order to do this
effectively, provide bn_clzw() as a static inline that can be replaced
by an architecture specific version. The default implementation defers
to the bn_word_clz() function (which may also be architecture specific).

ok tb@
</content>
</entry>
<entry>
<title>Make BN_num_bits() independent of bn-&gt;top.</title>
<updated>2023-06-21T07:41:55+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-06-21T07:41:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=88e97173c6cf4f4ec8c6138cff25d7b1c51a54e9'/>
<id>urn:sha1:88e97173c6cf4f4ec8c6138cff25d7b1c51a54e9</id>
<content type='text'>
Provide bn_bitsize(), which performs a constant time scan of a BN in order
to determine the bit size of the BN value. Use this for BN_num_bits() such
that it is no longer dependent on the bn-&gt;top value.

ok tb@
</content>
</entry>
</feed>
