<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libcrypto/evp/p_legacy.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>2026-01-30T13:57:13+00:00</updated>
<entry>
<title>EVP_SealInit(): clear random key on exit</title>
<updated>2026-01-30T13:57:13+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-01-30T13:57:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=06d332fd67117492593691579e28332dffe3eb74'/>
<id>urn:sha1:06d332fd67117492593691579e28332dffe3eb74</id>
<content type='text'>
ok jsing kenjiro
</content>
</entry>
<entry>
<title>EVP_{Open,Seal}Init(): remove redundant EVP_CIPHER_CTX_reset() calls</title>
<updated>2026-01-30T13:54:28+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-01-30T13:54:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=fdcc97e7af1a70232b9b2e46ae9336350095d9b1'/>
<id>urn:sha1:fdcc97e7af1a70232b9b2e46ae9336350095d9b1</id>
<content type='text'>
The subsequent EVP_{Decrypt,Encrypt}Init_ex() calls already do that.

pointed out by jsing
</content>
</entry>
<entry>
<title>EVP_SealInit(): minor cleanup.</title>
<updated>2026-01-30T13:51:44+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-01-30T13:51:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9e1ab34f681a4aaf84ec91a6d2b36c59c85b73d7'/>
<id>urn:sha1:9e1ab34f681a4aaf84ec91a6d2b36c59c85b73d7</id>
<content type='text'>
Explicitly compare pointers against NULL, turn the function into single
exit, add hint at why npubk &lt;= 0 or pubk == NULL are a success path:

The documentation briefly explains that EVP_OpenInit() and EVP_SealInit()
is able to initialize the EVP_CIPHER_CTX in two steps exactly like the
EVP_CipherInit_ex() API they wrap: the first call with non-NULL cipher
(aka type) only sets the cipher on the ctx, then it returns to allow
callers to customize the EVP_CIPHER_CTX, and a second call with
cipher == NULL skips the initialization and finishes the ctx setup
by setting key and iv.

Prompted by a report by Niels Dossche.

ok jsing kenjiro
</content>
</entry>
<entry>
<title>EVP_SealInit: do not return -1 on error</title>
<updated>2026-01-30T13:47:22+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-01-30T13:47:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d08c52f7b1df87a6d0b5aa0f42fdeee3f3c0e6b9'/>
<id>urn:sha1:d08c52f7b1df87a6d0b5aa0f42fdeee3f3c0e6b9</id>
<content type='text'>
It is documented that EVP_SealInit() returns 0 on error. So -1 is wrong.

Reported by Niels Dossche

ok jsing kenjiro
</content>
</entry>
<entry>
<title>EVP_OpenInit(): minor cleanup</title>
<updated>2026-01-30T13:42:46+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2026-01-30T13:42:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=941f37f21fb644009376b73f2065913887fa1bd0'/>
<id>urn:sha1:941f37f21fb644009376b73f2065913887fa1bd0</id>
<content type='text'>
Explicitly compare pointers against NULL, turn the function into single
exit and explain why priv == NULL is a success (hint: muppet API).

Prompted by a report by Niels Dossche.

ok jsing kenjiro
</content>
</entry>
<entry>
<title>Use err_local.h rather than err.h in most places</title>
<updated>2025-05-10T05:54:39+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2025-05-10T05:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=41e8f99dd1625a9f0c80ce9d4383e95b18e85709'/>
<id>urn:sha1:41e8f99dd1625a9f0c80ce9d4383e95b18e85709</id>
<content type='text'>
ok jsing
</content>
</entry>
<entry>
<title>Hide public symbols in evp.h</title>
<updated>2024-04-09T13:52:42+00:00</updated>
<author>
<name>beck</name>
<email></email>
</author>
<published>2024-04-09T13:52:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=9835bb3c82adc630df1f3aaa7dfbf7f0506b0bc4'/>
<id>urn:sha1:9835bb3c82adc630df1f3aaa7dfbf7f0506b0bc4</id>
<content type='text'>
largely mechanically done by the guentherizer 9000

ok tb@
</content>
</entry>
<entry>
<title>Check the return value of EVP_CIPHER_CTX_reset()</title>
<updated>2024-03-28T01:42:02+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-03-28T01:42:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ce00429616228a540fb507407c63d17c63a0bda5'/>
<id>urn:sha1:ce00429616228a540fb507407c63d17c63a0bda5</id>
<content type='text'>
The function call can't actually fail, but all other calls check its
return value.

ok joshua jsing
</content>
</entry>
<entry>
<title>Clean up use of EVP_CIPHER_CTX_{legacy_clear,cleanup} in EVP_OpenInit</title>
<updated>2024-03-26T05:22:50+00:00</updated>
<author>
<name>joshua</name>
<email></email>
</author>
<published>2024-03-26T05:22:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=98835cc766bfec13ffe0088cd081e96059a6da2c'/>
<id>urn:sha1:98835cc766bfec13ffe0088cd081e96059a6da2c</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>Use EVP_CIPHER_CTX_legacy_clear() internally</title>
<updated>2024-02-18T15:44:10+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2024-02-18T15:44:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f941ba215d7859bf6c6225e88cbbe13260428b8c'/>
<id>urn:sha1:f941ba215d7859bf6c6225e88cbbe13260428b8c</id>
<content type='text'>
ok jsing
</content>
</entry>
</feed>
