<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/dsa/dsa_key.c, 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>2024-05-11T06:43:50+00:00</updated>
<entry>
<title>Remove unused DSA methods</title>
<updated>2024-05-11T06:43:50+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-11T06:43:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d65dad3857706a874393df2d73159b69e36efaf6'/>
<id>urn:sha1:d65dad3857706a874393df2d73159b69e36efaf6</id>
<content type='text'>
There are no accessors to set them, so this has been involved in a bunch
of dead logic ever since we made DSA opaque a few years ago.

ok jsing
</content>
</entry>
<entry>
<title>Inline dsa_builtin_keygen() in DSA_generate_key()</title>
<updated>2024-05-10T04:53:55+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-05-10T04:53:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fc826293b619b943f515be4890db7a12d407fe43'/>
<id>urn:sha1:fc826293b619b943f515be4890db7a12d407fe43</id>
<content type='text'>
ok djm
</content>
</entry>
<entry>
<title>Make the bn_rand_interval() API a bit more ergonomic</title>
<updated>2023-08-03T18:53:56+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-08-03T18:53:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=44ff07e01874ea8be0c72bf9d20cb7f13b76cca8'/>
<id>urn:sha1:44ff07e01874ea8be0c72bf9d20cb7f13b76cca8</id>
<content type='text'>
Provide bn_rand_in_range() which is a slightly tweaked version of what was
previously called bn_rand_range().

The way bn_rand_range() is called in libcrypto, the lower bound is always
expressible as a word. In fact, most of the time it is 1, the DH code uses
a 2, the MR tests in BPSW use 3 and an exceptinally high number appears in
the Tonelli-Shanks implementation where we use 32. Converting these lower
bounds to BIGNUMs on the call site is annoying so let bn_rand_interval()
do that internally and route that through bn_rand_in_range(). This way we
can avoid using BN_sub_word().

Adjust the bn_isqrt() test to use bn_rand_in_range() since that's the
only caller that uses actual BIGNUMs as lower bounds.

ok jsing
</content>
</entry>
<entry>
<title>hide symbols in dsa</title>
<updated>2023-07-08T14:28:15+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2023-07-08T14:28:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ed57ee23c30661b8054a17346a8e19be71fd9ede'/>
<id>urn:sha1:ed57ee23c30661b8054a17346a8e19be71fd9ede</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Simplify BIGNUM handling in dsa_builtin_keygen().</title>
<updated>2023-01-11T04:35:26+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-01-11T04:35:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=eb6711ff03a552477038555c20ec570d7d13bc2b'/>
<id>urn:sha1:eb6711ff03a552477038555c20ec570d7d13bc2b</id>
<content type='text'>
Rather than having complicated "attempt to reuse" dances, always allocate
priv_key/pub_key, then free and assign on success.

ok tb@
</content>
</entry>
<entry>
<title>Make internal header file names consistent</title>
<updated>2022-11-26T16:08:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-26T16:08:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=81d98bf600a381a625eb11b39a725b08c0ba547f'/>
<id>urn:sha1:81d98bf600a381a625eb11b39a725b08c0ba547f</id>
<content type='text'>
Libcrypto currently has a mess of *_lcl.h, *_locl.h, and *_local.h names
used for internal headers. Move all these headers we inherited from
OpenSSL to *_local.h, reserving the name *_internal.h for our own code.
Similarly, move dtls_locl.h and ssl_locl.h to dtls_local and ssl_local.h.
constant_time_locl.h is moved to constant_time.h since it's special.

Adjust all .c files in libcrypto, libssl and regress.

The diff is mechanical with the exception of tls13_quic.c, where
#include &lt;ssl_locl.h&gt; was fixed manually.

discussed with jsing,
no objection bcook
</content>
</entry>
<entry>
<title>Fix whitespace</title>
<updated>2022-11-19T06:33:00+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-11-19T06:33:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=6048203d2b8ec4f0ea078c70eaa40d6beb109502'/>
<id>urn:sha1:6048203d2b8ec4f0ea078c70eaa40d6beb109502</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Prepare the move of DSA_SIG, DSA_METHOD and DSA to dsa_locl.h by</title>
<updated>2022-01-07T09:35:36+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2022-01-07T09:35:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=72ddf309b6ca09529e5603af312e92fbefe2d810'/>
<id>urn:sha1:72ddf309b6ca09529e5603af312e92fbefe2d810</id>
<content type='text'>
including the local header where it will be needed.

discussed with jsing
</content>
</entry>
<entry>
<title>Initialize priv_key and pub_key on first use instead of at the top.</title>
<updated>2018-11-09T23:45:19+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2018-11-09T23:45:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c9310e29e5625d199fa876322e1794805e1f26e2'/>
<id>urn:sha1:c9310e29e5625d199fa876322e1794805e1f26e2</id>
<content type='text'>
ok beck jsing mestre
</content>
</entry>
<entry>
<title>unrevert the use of bn_rand_interval().</title>
<updated>2018-11-06T07:02:33+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2018-11-06T07:02:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b1f2fa8da88f8be2fe7d6d9d2b8308537fcfb408'/>
<id>urn:sha1:b1f2fa8da88f8be2fe7d6d9d2b8308537fcfb408</id>
<content type='text'>
ok beck jsing
</content>
</entry>
</feed>
