<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/bn/bn_print.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>2024-03-02T09:18:28+00:00</updated>
<entry>
<title>Remove BIO_{sn,v,vsn}printf(3)</title>
<updated>2024-03-02T09:18:28+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-02T09:18:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=624e55f48614f7c5aaa62d91eee54f0862c62db0'/>
<id>urn:sha1:624e55f48614f7c5aaa62d91eee54f0862c62db0</id>
<content type='text'>
Unsued printing functionality. If something should need this we can readily
add it back.

ok jsing
</content>
</entry>
<entry>
<title>Simplify indent handling in bn_print()</title>
<updated>2023-07-22T17:14:08+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-22T17:14:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=33ad44fd18e396d1567b966b15ffe32070ce2262'/>
<id>urn:sha1:33ad44fd18e396d1567b966b15ffe32070ce2262</id>
<content type='text'>
variant of a suggestion by jsing
</content>
</entry>
<entry>
<title>bn_print: string.h is no longer needed</title>
<updated>2023-07-10T02:29:28+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-10T02:29:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3a8b7e605e474f3f27046066194458fbf8885a22'/>
<id>urn:sha1:3a8b7e605e474f3f27046066194458fbf8885a22</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reimplement BN_print() and BN_print_fp()</title>
<updated>2023-07-09T18:37:58+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-09T18:37:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a42962dca443b7ca250bbb692c03696ccd25c545'/>
<id>urn:sha1:a42962dca443b7ca250bbb692c03696ccd25c545</id>
<content type='text'>
These can now use the internal version of BN_bn2hex() and be direct
wrappers of BIO_printf() and fprintf() as they should have been all
along.

ok jsing
</content>
</entry>
<entry>
<title>Simplify bn_print()</title>
<updated>2023-07-09T18:35:52+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-09T18:35:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=89005b6998fffff2d5e7946ac6ae69c057c69126'/>
<id>urn:sha1:89005b6998fffff2d5e7946ac6ae69c057c69126</id>
<content type='text'>
We no longer need to do weird things as taking the length of the hex
string and jumping over a sign we didn't need.

ok jsing
</content>
</entry>
<entry>
<title>Use an unsigned long long and corresponding formats</title>
<updated>2023-07-07T07:04:24+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-07T07:04:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=56638c25a15467889e31f4fb3e4f44b0adda03e9'/>
<id>urn:sha1:56638c25a15467889e31f4fb3e4f44b0adda03e9</id>
<content type='text'>
Fixes build on 32 bit.

Reported by claudio
</content>
</entry>
<entry>
<title>Insert leading octet if high bit of first nibble is 1</title>
<updated>2023-07-07T06:41:59+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-07T06:41:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7f4ccb06ac6b989489c1d2f43d6eb68c5ec184a1'/>
<id>urn:sha1:7f4ccb06ac6b989489c1d2f43d6eb68c5ec184a1</id>
<content type='text'>
The reason the function this replaces is called ASN1_bn_print() is that it
actually prints a representation of the ASN.1 encoding.

ok jsing
</content>
</entry>
<entry>
<title>Add bn_printf(), a replacement for ASN1_bn_print()</title>
<updated>2023-07-06T14:37:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-07-06T14:37:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ee3f95b4025c8b7b71816169b6d63a3d1e8c060f'/>
<id>urn:sha1:ee3f95b4025c8b7b71816169b6d63a3d1e8c060f</id>
<content type='text'>
ASN1_bn_print() will be removed in an upcoming bump. This adds an internal
API that covers the same functionality but doesn't require that the caller
pass in a sufficiently large scratch space that ASN1_bn_print() may or may
not use. In addition, this takes a format string, which allows us to ditch
some extra dances.

ok jsing
</content>
</entry>
<entry>
<title>Rename the largely misnamed bn_print.c to bn_convert.c</title>
<updated>2023-04-14T11:10:11+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-04-14T11:10:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=7ca808a18fa4df8ca8a7e98efb13a2489b0489b3'/>
<id>urn:sha1:7ca808a18fa4df8ca8a7e98efb13a2489b0489b3</id>
<content type='text'>
This file primarily contains the various BN_bn2*() and BN_*2bn() functions
(along with BN_print() and BN_options()). More function shuffling will
follow.

Discussed with tb@
</content>
</entry>
<entry>
<title>Avoid negative zero.</title>
<updated>2023-02-13T04:25:37+00:00</updated>
<author>
<name>jsing</name>
<email></email>
</author>
<published>2023-02-13T04:25:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=53aa84bf6a4cfaffa003a28a5651a7f30bd74400'/>
<id>urn:sha1:53aa84bf6a4cfaffa003a28a5651a7f30bd74400</id>
<content type='text'>
Whenever setting negative to one (or when it could potentially be one),
always use BN_set_negative() since it checks for a zero valued bignum and
will not permit negative to be set in this case. Since BN_is_zero()
currently relies on top == 0, call BN_set_negative() after top has been
set (or bn_correct_top() has been called).

This fixes a long standing issue where -0 and +0 have been permitted,
however multiple code paths (such as BN_cmp()) fail to treat these as
equivalent.

Prompted by Guido Vranken who is adding negative zero fuzzing to oss-fuzz.

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