<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/hmac, branch OPENBSD_7_6</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_6</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_6'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2024-08-31T10:42:21+00:00</updated>
<entry>
<title>Zap HMAC_Init</title>
<updated>2024-08-31T10:42:21+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-08-31T10:42:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=49dd9dd6066796148cceffc28570ac4ba886e6f0'/>
<id>urn:sha1:49dd9dd6066796148cceffc28570ac4ba886e6f0</id>
<content type='text'>
Long deprecated, last users have been fixed.

ok beck jsing
</content>
</entry>
<entry>
<title>Add bounded attributes to hmac.h</title>
<updated>2024-07-09T07:57:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-07-09T07:57:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=aad46278badf2512dfdf3ab62ed34e70ca66b204'/>
<id>urn:sha1:aad46278badf2512dfdf3ab62ed34e70ca66b204</id>
<content type='text'>
ok beck
</content>
</entry>
<entry>
<title>Remove support for static buffers in HMAC/digests</title>
<updated>2024-06-01T07:36:17+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-06-01T07:36:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0cd26255605cab2a8643bb8585c4148069240e3c'/>
<id>urn:sha1:0cd26255605cab2a8643bb8585c4148069240e3c</id>
<content type='text'>
HMAC() and the one-step digests used to support passing a NULL buffer and
would return the digest in a static buffer. This design is firmly from the
nineties, not thread safe and it saves callers a single line. The few ports
that used to rely this were fixed with patches sent to non-hostile (and
non-dead) upstreams. It's early enough in the release cycle that remaining
uses hidden from the compiler should be caught, at least the ones that
matter.

There won't be that many since BoringSSL removed this feature in 2017.
https://boringssl-review.googlesource.com/14528

Add non-null attributes to the headers and add a few missing bounded
attributes.

ok beck jsing
</content>
</entry>
<entry>
<title>Add missing LCRYPTO_ALIAS()</title>
<updated>2024-03-30T10:10:58+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-30T10:10:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0077955942fa0ec11c1d7c17f1d83a38778062e6'/>
<id>urn:sha1:0077955942fa0ec11c1d7c17f1d83a38778062e6</id>
<content type='text'>
HMAC_CTX_reset() and HMAC_Init() had missing LCRYPTO_ALIAS().

ok beck jsing
</content>
</entry>
<entry>
<title>Simplify HMAC_CTX_new()</title>
<updated>2024-03-26T12:10:50+00:00</updated>
<author>
<name>joshua</name>
<email></email>
</author>
<published>2024-03-26T12:10:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8db9f9e666f34e36b4b40e5fb6cf87517050a56a'/>
<id>urn:sha1:8db9f9e666f34e36b4b40e5fb6cf87517050a56a</id>
<content type='text'>
There is no need to call HMAC_CTX_init() as the memory has already been
initialised to zero.

ok tb
</content>
</entry>
<entry>
<title>Use EVP_MD_CTX_legacy_clear() internally</title>
<updated>2024-02-18T15:45:42+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-02-18T15:45:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ff3e386de60f6149938edb124d31bc2fd7ae04f6'/>
<id>urn:sha1:ff3e386de60f6149938edb124d31bc2fd7ae04f6</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Replace .pkey_base_id with a .base_method pointer</title>
<updated>2024-01-04T17:01:26+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-01-04T17:01:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9f1cd2582409ac5778c5a0e28dfb77f18d122c98'/>
<id>urn:sha1:9f1cd2582409ac5778c5a0e28dfb77f18d122c98</id>
<content type='text'>
Every EVP_PKEY_ASN1_METHOD is either an ASN.1 method or an alias.
As such it resolves to an underlying ASN.1 method (in one step).
This information can be stored in a base_method pointer in allusion
to the pkey_base_id, which is the name for the nid (aka pkey_id aka
type) of the underlying method.

For an ASN.1 method, the base method is itself, so the base method
is set as a pointer to itself. For an alias it is of course a pointer
to the underlying method. Then obviously ameth-&gt;pkey_base_id is the
same as ameth-&gt;base_method-&gt;pkey_id, so rework all ASN.1 methods to
follow that.

ok jsing
</content>
</entry>
<entry>
<title>Rework and fix pkey_hmac_keygen()</title>
<updated>2023-12-28T22:00:56+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-12-28T22:00:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0ba1ffaa654066f019e25b3ff2c8b684e0bffa08'/>
<id>urn:sha1:0ba1ffaa654066f019e25b3ff2c8b684e0bffa08</id>
<content type='text'>
The usual: single exit, error check all functions even if they can't
actually fail. This one was flagged again.

ok jsing

CID 471706 (false positive)
</content>
</entry>
<entry>
<title>Ignore ENGINE at the API boundary</title>
<updated>2023-11-29T21:35:57+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-11-29T21:35:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=69bbc5fea4f411f0c0033ecb0fc5126c895ea82a'/>
<id>urn:sha1:69bbc5fea4f411f0c0033ecb0fc5126c895ea82a</id>
<content type='text'>
This removes the remaining ENGINE members from various internal structs
and functions. Any ENGINE passed into a public API is now completely
ignored functions returning an ENGINE always return NULL.

ok jsing
</content>
</entry>
<entry>
<title>Wire up truncated SHA-2, SHA-3 and related things</title>
<updated>2023-04-25T15:48:48+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2023-04-25T15:48:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8c449d8a1445a23c96b8b2f389e256ea32662e36'/>
<id>urn:sha1:8c449d8a1445a23c96b8b2f389e256ea32662e36</id>
<content type='text'>
from jsing
</content>
</entry>
</feed>
