<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/secure, branch releng/14.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>OpenSSL: update to 3.0.12</title>
<updated>2023-10-26T17:02:36+00:00</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2023-10-24T18:55:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=930cec16d9ee11584a10130bef9be002113e31de'/>
<id>930cec16d9ee11584a10130bef9be002113e31de</id>
<content type='text'>
OpenSSL 3.0.12 addresses:

 * Fix incorrect key and IV resizing issues when calling
   EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2()
   with OSSL_PARAM parameters that alter the key or IV length
   ([CVE-2023-5363]).

Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit ad991e4c142ebabad7aef488ad97b189ecabb270)
(cherry picked from commit 575878a533823aa3e5bab715928d9cdffbc4dcbc)
(cherry picked from commit e833378cf9589171562ccad4c6ff59c3713770bd)

Approved by:	so
Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OpenSSL 3.0.12 addresses:

 * Fix incorrect key and IV resizing issues when calling
   EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2()
   with OSSL_PARAM parameters that alter the key or IV length
   ([CVE-2023-5363]).

Relnotes:	Yes
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit ad991e4c142ebabad7aef488ad97b189ecabb270)
(cherry picked from commit 575878a533823aa3e5bab715928d9cdffbc4dcbc)
(cherry picked from commit e833378cf9589171562ccad4c6ff59c3713770bd)

Approved by:	so
Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>libcrypto: Copy the arm64 header when building asm</title>
<updated>2023-10-25T19:56:40+00:00</updated>
<author>
<name>Andrew Turner</name>
<email>andrew@FreeBSD.org</email>
</author>
<published>2023-09-22T11:34:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8115f43c2892a5cc1460766f2697f358035a2e29'/>
<id>8115f43c2892a5cc1460766f2697f358035a2e29</id>
<content type='text'>
It may be needed when it's updated so is best to keep in sync with the
assembly files.

Reviewed by:	emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D41938

(cherry picked from commit c97a82d4a4a0288ed2a456f4ce41d57483724f17)
(cherry picked from commit 5b413daf3a3b67d2d499256907883a96d7c4d13c)

Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It may be needed when it's updated so is best to keep in sync with the
assembly files.

Reviewed by:	emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D41938

(cherry picked from commit c97a82d4a4a0288ed2a456f4ce41d57483724f17)
(cherry picked from commit 5b413daf3a3b67d2d499256907883a96d7c4d13c)

Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>libcrypto: Switch back to the generated assembly in sys/crypto/openssl</title>
<updated>2023-10-25T19:56:33+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-08-29T21:46:44+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=390ab2a4df608f1d645f9399a0c4e8e4830843fb'/>
<id>390ab2a4df608f1d645f9399a0c4e8e4830843fb</id>
<content type='text'>
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D41569

(cherry picked from commit 47d997021fbc7b662e9507deec1897d514d1224c)
(cherry picked from commit bf5069fb6a3fc8fbf08ed23a4fd958af48cf902f)

Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D41569

(cherry picked from commit 47d997021fbc7b662e9507deec1897d514d1224c)
(cherry picked from commit bf5069fb6a3fc8fbf08ed23a4fd958af48cf902f)

Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>libcrypto: Add buildasm and cleanasm targets</title>
<updated>2023-10-25T19:56:08+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-08-29T21:39:54+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1945b8632d6822f5ca37c76a4ba5854fc7dc8511'/>
<id>1945b8632d6822f5ca37c76a4ba5854fc7dc8511</id>
<content type='text'>
These targets generate all the assembly files in sys/crypto/openssl.

Reviewed by:	markj, emaste (earlier version)
Differential Revision:	https://reviews.freebsd.org/D41590

(cherry picked from commit 73653b72af65e294dcfedc43a8ea09b2137d72ed)
(cherry picked from commit ef81451d114ebae9f77e195534898b6c4061aa69)

Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These targets generate all the assembly files in sys/crypto/openssl.

Reviewed by:	markj, emaste (earlier version)
Differential Revision:	https://reviews.freebsd.org/D41590

(cherry picked from commit 73653b72af65e294dcfedc43a8ea09b2137d72ed)
(cherry picked from commit ef81451d114ebae9f77e195534898b6c4061aa69)

Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>libcrypto: Refactor Makefile.asm so it can be run outside of buildenv</title>
<updated>2023-10-25T19:55:55+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-08-29T21:39:36+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c66ae0b4e65809941ce2d2a1ad5c1c896a03ac93'/>
<id>c66ae0b4e65809941ce2d2a1ad5c1c896a03ac93</id>
<content type='text'>
Currently Makefile.asm relies on the current buildenv to set CFLAGS
for i386.  The current approach also leaves various temporary *.s
files around in the current directory.  To make this a bit better:

- Instead of using CFLAGS from buildenv for i386, define the actual
  flags the perl scripts need: -DOPENSSL_IA32_SSE2 to enable SSE2.

- Change i386 to have the perl scripts write to /dev/stdout to avoid
  creating temporaries.  Previously i386 was generating the temporary
  files in the OpenSSL contrib src.

- Cleanup temporary *.s files in the all target after generating the
  real *.S files for architectures which need them.

- Remove a duplicate rule for aes-armv4.S.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D41589

(cherry picked from commit c0fe6b9d7506d6ce6f9ec3688ee0cc5656a8707e)
(cherry picked from commit 14dc723496c1b2244a2b2ce29f9fd754494f4eea)

Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently Makefile.asm relies on the current buildenv to set CFLAGS
for i386.  The current approach also leaves various temporary *.s
files around in the current directory.  To make this a bit better:

- Instead of using CFLAGS from buildenv for i386, define the actual
  flags the perl scripts need: -DOPENSSL_IA32_SSE2 to enable SSE2.

- Change i386 to have the perl scripts write to /dev/stdout to avoid
  creating temporaries.  Previously i386 was generating the temporary
  files in the OpenSSL contrib src.

- Cleanup temporary *.s files in the all target after generating the
  real *.S files for architectures which need them.

- Remove a duplicate rule for aes-armv4.S.

Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D41589

(cherry picked from commit c0fe6b9d7506d6ce6f9ec3688ee0cc5656a8707e)
(cherry picked from commit 14dc723496c1b2244a2b2ce29f9fd754494f4eea)

Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>Makefile.asm: Simplify variable expansions in generated headers</title>
<updated>2023-10-25T19:55:00+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-08-29T21:38:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d649e347dfa7a238e1e0db0e9ef4bd4f96df2497'/>
<id>d649e347dfa7a238e1e0db0e9ef4bd4f96df2497</id>
<content type='text'>
The :R:S expressions removed the .pl extension only to add it back
again, so just trim them to using :T alone.

Reviewed by:	Pierre Pronchery &lt;pierre@freebsdfoundation.org&gt;, markj, emaste
Differential Revision:	https://reviews.freebsd.org/D41588

(cherry picked from commit 7406b6f9761c35eb53f91f54d1a687d96d638907)
(cherry picked from commit a3f973f2ea0909be26666d3dcac3c4c45562a678)

Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The :R:S expressions removed the .pl extension only to add it back
again, so just trim them to using :T alone.

Reviewed by:	Pierre Pronchery &lt;pierre@freebsdfoundation.org&gt;, markj, emaste
Differential Revision:	https://reviews.freebsd.org/D41588

(cherry picked from commit 7406b6f9761c35eb53f91f54d1a687d96d638907)
(cherry picked from commit a3f973f2ea0909be26666d3dcac3c4c45562a678)

Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>OpenSSL: update to 3.0.11</title>
<updated>2023-10-13T23:15:10+00:00</updated>
<author>
<name>Pierre Pronchery</name>
<email>pierre@freebsdfoundation.org</email>
</author>
<published>2023-10-09T19:00:25+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c4262d1b08e9427d65635170eb755b9db83cc294'/>
<id>c4262d1b08e9427d65635170eb755b9db83cc294</id>
<content type='text'>
OpenSSL 3.0.11 addresses:

    POLY1305 MAC implementation corrupts XMM registers on Windows (CVE-2023-4807)

Relnotes:	Yes
Pull request:	https://github.com/freebsd/freebsd-src/pull/852
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 6f1af0d7d2af54b339b5212434cd6d4fda628d80)
(cherry picked from commit bbecb0ff6c9e2fc05c096ce2ca5387df0d8e99fe)

Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OpenSSL 3.0.11 addresses:

    POLY1305 MAC implementation corrupts XMM registers on Windows (CVE-2023-4807)

Relnotes:	Yes
Pull request:	https://github.com/freebsd/freebsd-src/pull/852
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 6f1af0d7d2af54b339b5212434cd6d4fda628d80)
(cherry picked from commit bbecb0ff6c9e2fc05c096ce2ca5387df0d8e99fe)

Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>libcrypto: complete the support for the 0.9.8 API</title>
<updated>2023-09-24T16:18:28+00:00</updated>
<author>
<name>Pierre Pronchery</name>
<email>pierre@freebsdfoundation.org</email>
</author>
<published>2023-09-21T11:42:06+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=444eda0dda6407c56c80638f2218ce80e7c90a1f'/>
<id>444eda0dda6407c56c80638f2218ce80e7c90a1f</id>
<content type='text'>
When importing OpenSSL 3 in base, some but not all source files
implementing the deprecated 0.9.8 API were imported. With this change,
it becomes possible again to compile software targeting this API.

PR:		272220
Fixes:		b077aed33b7b ("Merge OpenSSL 3.0.9")
Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/851

(cherry picked from commit b15b39521644ebffdcc091bd283ed410b0ae9274)
(cherry picked from commit ab64f100ca5ddd37029695646003abaf49c3065e)

Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When importing OpenSSL 3 in base, some but not all source files
implementing the deprecated 0.9.8 API were imported. With this change,
it becomes possible again to compile software targeting this API.

PR:		272220
Fixes:		b077aed33b7b ("Merge OpenSSL 3.0.9")
Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/851

(cherry picked from commit b15b39521644ebffdcc091bd283ed410b0ae9274)
(cherry picked from commit ab64f100ca5ddd37029695646003abaf49c3065e)

Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>libcrypto: fix the FIPS provider on amd64</title>
<updated>2023-09-24T16:18:20+00:00</updated>
<author>
<name>Pierre Pronchery</name>
<email>pierre@freebsdfoundation.org</email>
</author>
<published>2023-09-04T17:57:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=f5892bbbaf54bfd40638359621265c47d1e419c3'/>
<id>f5892bbbaf54bfd40638359621265c47d1e419c3</id>
<content type='text'>
This corrects the list of source files required for the FIPS provider.

To test:

```
INSTALL PASSED
enter AES-128-CBC encryption password:
Verifying - enter AES-128-CBC encryption password:
U2FsdGVkX1+MGm7LbZou29UWU+KAyBX/PxF5T1pO9VM=
```

Reviewed by:	emaste
Fixes:		b077aed33b7b ("Merge OpenSSL 3.0.9")
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/837
Differential Revision: https://reviews.freebsd.org/D41720

(cherry picked from commit 8f37b3a142f2f7197896cd283c44c7e4fb64aaf3)
(cherry picked from commit abd9da936335eca88d670ad35a94ed67d911bdb1)

Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This corrects the list of source files required for the FIPS provider.

To test:

```
INSTALL PASSED
enter AES-128-CBC encryption password:
Verifying - enter AES-128-CBC encryption password:
U2FsdGVkX1+MGm7LbZou29UWU+KAyBX/PxF5T1pO9VM=
```

Reviewed by:	emaste
Fixes:		b077aed33b7b ("Merge OpenSSL 3.0.9")
Sponsored by:	The FreeBSD Foundation
Pull Request:	https://github.com/freebsd/freebsd-src/pull/837
Differential Revision: https://reviews.freebsd.org/D41720

(cherry picked from commit 8f37b3a142f2f7197896cd283c44c7e4fb64aaf3)
(cherry picked from commit abd9da936335eca88d670ad35a94ed67d911bdb1)

Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>libcrypto: link engines and the legacy provider to libcrypto</title>
<updated>2023-09-19T17:19:17+00:00</updated>
<author>
<name>Pierre Pronchery</name>
<email>pierre@freebsdfoundation.org</email>
</author>
<published>2023-09-15T15:14:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b7312b90289e7244c124da9845c0a3011ba8d936'/>
<id>b7312b90289e7244c124da9845c0a3011ba8d936</id>
<content type='text'>
OpenSSL's legacy provider module and engines need to link to
libcrypto.so, as it provides some of the actual implementations of
legacy routines.

This is a little tricky due to build order issues.  Introduce a small
hack (LIBCRYPTO_WITHOUT_SUBDIRS) that builds libcrypto.so in its usual
early phase without any OpenSSL provider modules or engines.  This is
intended to restore the test suite; a future change should remove the
hack and replace it with a better approach.

PR:		254853, 273528
Discussed with:	Folks at EuroBSDCon in Coimbra
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 1a18383a52bc373e316d224cef1298debf6f7e25)
(cherry picked from commit fd4b13acd90bdc107a072660d91baa163474ebef)

Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
OpenSSL's legacy provider module and engines need to link to
libcrypto.so, as it provides some of the actual implementations of
legacy routines.

This is a little tricky due to build order issues.  Introduce a small
hack (LIBCRYPTO_WITHOUT_SUBDIRS) that builds libcrypto.so in its usual
early phase without any OpenSSL provider modules or engines.  This is
intended to restore the test suite; a future change should remove the
hack and replace it with a better approach.

PR:		254853, 273528
Discussed with:	Folks at EuroBSDCon in Coimbra
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 1a18383a52bc373e316d224cef1298debf6f7e25)
(cherry picked from commit fd4b13acd90bdc107a072660d91baa163474ebef)

Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
</feed>
