<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/crypto, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>i386: mark the stack as non-executable</title>
<updated>2026-04-17T04:44:18+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2026-04-17T04:41:49+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=62a19cd59b54a030c21a5529ed491ba2060140ca'/>
<id>62a19cd59b54a030c21a5529ed491ba2060140ca</id>
<content type='text'>
Sponsored by:		Netflix
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D56411
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sponsored by:		Netflix
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D56411
</pre>
</div>
</content>
</entry>
<entry>
<title>crypto/openssl: update artifacts to match 3.5.6 release artifacts</title>
<updated>2026-04-09T01:55:43+00:00</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2026-04-09T01:54:40+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5254e16213ff1bb136ef24e0b0fe30625ac53563'/>
<id>5254e16213ff1bb136ef24e0b0fe30625ac53563</id>
<content type='text'>
A new manpage and any associated links will be added in the next commit.

MFC after:      1 day (the security issues warrant a quick backport).
MFC with:	10a428653ee7216475f1ddce3fb4cbf1200319f8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A new manpage and any associated links will be added in the next commit.

MFC after:      1 day (the security issues warrant a quick backport).
MFC with:	10a428653ee7216475f1ddce3fb4cbf1200319f8
</pre>
</div>
</content>
</entry>
<entry>
<title>ccp: Don't name anonymous structure and union types</title>
<updated>2026-02-24T20:25:45+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-02-24T20:25:45+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8d3f41dbcb2a949b52660501d7efc6bb12850b09'/>
<id>8d3f41dbcb2a949b52660501d7efc6bb12850b09</id>
<content type='text'>
Keep the dword labels as comments instead.  Anonymous structs and
unions don't have type names in C11+.

Differential Revision:	https://reviews.freebsd.org/D55144
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Keep the dword labels as comments instead.  Anonymous structs and
unions don't have type names in C11+.

Differential Revision:	https://reviews.freebsd.org/D55144
</pre>
</div>
</content>
</entry>
<entry>
<title>OpenSSL: commit sys/crypto changes for 3.5.5</title>
<updated>2026-02-01T17:05:55+00:00</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2026-02-01T17:05:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e6c8997a8958c7aaec8e266d2eeefbfaa137e218'/>
<id>e6c8997a8958c7aaec8e266d2eeefbfaa137e218</id>
<content type='text'>
These files were changed as part of the 3.5.4 -&gt; 3.5.5 upgrade. Please
see the upstream release notes linked in
1731fc70f7344af08db49b06c63c963fa12ee354, et al, for more details.

MFC after:	6 days
MFC with:	1731fc70f7344af08db49b06c63c963fa12ee354
Fixes:	1731fc70f7344af08d ("OpenSSL: update vendor sources to match 3.5.5 content")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These files were changed as part of the 3.5.4 -&gt; 3.5.5 upgrade. Please
see the upstream release notes linked in
1731fc70f7344af08db49b06c63c963fa12ee354, et al, for more details.

MFC after:	6 days
MFC with:	1731fc70f7344af08db49b06c63c963fa12ee354
Fixes:	1731fc70f7344af08d ("OpenSSL: update vendor sources to match 3.5.5 content")
</pre>
</div>
</content>
</entry>
<entry>
<title>crypto: Update sha256 and sha512 ifuncs to use passed HWCAP flags</title>
<updated>2026-01-13T15:28:04+00:00</updated>
<author>
<name>Sarah Walker</name>
<email>sarah.walker2@arm.com</email>
</author>
<published>2026-01-13T14:25:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=27083693955d563f836fd1b6b1bc4e1a249d3b6b'/>
<id>27083693955d563f836fd1b6b1bc4e1a249d3b6b</id>
<content type='text'>
Reviewed by:	andrew
Sponsored by:   Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D54600
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	andrew
Sponsored by:   Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D54600
</pre>
</div>
</content>
</entry>
<entry>
<title>crypto: avoid warnings about too-long initializer strings</title>
<updated>2025-12-30T12:46:46+00:00</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2025-12-30T12:46:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=710ec409dffed3306ced253bba85dbdc7758510b'/>
<id>710ec409dffed3306ced253bba85dbdc7758510b</id>
<content type='text'>
Mark `sigma` and `tau` as `__non_string`, to avoid warnings from clang
21 similar to:

    sys/crypto/chacha20/chacha.c:53:31: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
       53 | static const char sigma[16] = "expand 32-byte k";
          |                               ^~~~~~~~~~~~~~~~~~
    sys/crypto/chacha20/chacha.c:54:29: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
       54 | static const char tau[16] = "expand 16-byte k";
          |                             ^~~~~~~~~~~~~~~~~~

MFC after:	3 days
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D54364
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mark `sigma` and `tau` as `__non_string`, to avoid warnings from clang
21 similar to:

    sys/crypto/chacha20/chacha.c:53:31: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
       53 | static const char sigma[16] = "expand 32-byte k";
          |                               ^~~~~~~~~~~~~~~~~~
    sys/crypto/chacha20/chacha.c:54:29: error: initializer-string for character array is too long, array size is 16 but initializer has size 17 (including the null terminating character); did you mean to use the 'nonstring' attribute? [-Werror,-Wunterminated-string-initialization]
       54 | static const char tau[16] = "expand 16-byte k";
          |                             ^~~~~~~~~~~~~~~~~~

MFC after:	3 days
Reviewed by:	markj
Differential Revision: https://reviews.freebsd.org/D54364
</pre>
</div>
</content>
</entry>
<entry>
<title>sys/crypto: import md5c.c C rewrite</title>
<updated>2025-10-24T10:16:58+00:00</updated>
<author>
<name>Robert Clausecker</name>
<email>fuz@FreeBSD.org</email>
</author>
<published>2025-10-04T21:59:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=90fa789cfab54294d4c3a0ac74e01747ce074386'/>
<id>90fa789cfab54294d4c3a0ac74e01747ce074386</id>
<content type='text'>
The reimplementation is a bit cleaner than the original code,
although it is also slightly slower. This shouldn't matter too
much as we will have asm code for the major platforms.

The code is unrolled when built in the kernel or user space, but
not when in libsa, as to reduce the code size.

Differential Revision:	https://reviews.freebsd.org/D45670
Reviewed by:	jrtc27, imp
Approved by:	markj (mentor)
MFC after:	1 month
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The reimplementation is a bit cleaner than the original code,
although it is also slightly slower. This shouldn't matter too
much as we will have asm code for the major platforms.

The code is unrolled when built in the kernel or user space, but
not when in libsa, as to reduce the code size.

Differential Revision:	https://reviews.freebsd.org/D45670
Reviewed by:	jrtc27, imp
Approved by:	markj (mentor)
MFC after:	1 month
</pre>
</div>
</content>
</entry>
<entry>
<title>sys: move sys/kern/md[45].c to sys/crypto</title>
<updated>2025-10-24T10:16:46+00:00</updated>
<author>
<name>Robert Clausecker</name>
<email>fuz@FreeBSD.org</email>
</author>
<published>2025-10-04T21:40:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=73a9b273d3d315716304c2cc237fef3141a93f2a'/>
<id>73a9b273d3d315716304c2cc237fef3141a93f2a</id>
<content type='text'>
Both files are used by kernel and userspace.
Move them to sys/crypto where they belong.

No functional changes intended.

In preparation of D45670.

Reviewed by:	markj
Approved by:	markj (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D52909
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both files are used by kernel and userspace.
Move them to sys/crypto where they belong.

No functional changes intended.

In preparation of D45670.

Reviewed by:	markj
Approved by:	markj (mentor)
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D52909
</pre>
</div>
</content>
</entry>
<entry>
<title>style(9): white space after ; and around binary operators</title>
<updated>2025-10-16T22:02:50+00:00</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2025-10-15T05:22:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0050289464fa56ec79e060b8d8378b9ff7145a0e'/>
<id>0050289464fa56ec79e060b8d8378b9ff7145a0e</id>
<content type='text'>
in for() loops.  Also, use 'while', where only the
conditional test of 'for' was used.

Reviewed by: sjg
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
in for() loops.  Also, use 'while', where only the
conditional test of 'for' was used.

Reviewed by: sjg
</pre>
</div>
</content>
</entry>
<entry>
<title>ossl: Add GCM support on powerpc64/powerpc64le (POWER8+)</title>
<updated>2025-09-11T16:08:05+00:00</updated>
<author>
<name>Timothy Pearson</name>
<email>tpearson@raptorengineering.com</email>
</author>
<published>2025-09-10T16:54:24+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5daf8ed625af70ebb7e4740ab98a6054e9e52329'/>
<id>5daf8ed625af70ebb7e4740ab98a6054e9e52329</id>
<content type='text'>
Separate ossl's existing AES-NI GCM implementation into a common
ossl_aes_gcm.c and add conditionals to switch between OpenSSL's AES-NI
and POWER8 GCM routines depending on the architecture. Since the
existing AVX-512 implementation is less agnostic, move it into a
separate ossl_aes_gcm_avx512.c.

Reviewed by:	markj
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D44274
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Separate ossl's existing AES-NI GCM implementation into a common
ossl_aes_gcm.c and add conditionals to switch between OpenSSL's AES-NI
and POWER8 GCM routines depending on the architecture. Since the
existing AVX-512 implementation is less agnostic, move it into a
separate ossl_aes_gcm_avx512.c.

Reviewed by:	markj
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D44274
</pre>
</div>
</content>
</entry>
</feed>
