<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/opencrypto/cryptodev.c, branch release/12.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>Remove unused 32-bit compatibility structures from cryptodev.</title>
<updated>2021-09-16T11:20:48+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2020-06-30T15:57:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2ed47b49b822f97901c3dd433384ec781c4df2cb'/>
<id>2ed47b49b822f97901c3dd433384ec781c4df2cb</id>
<content type='text'>
The counters are exported by a sysctl and have the same width on all
platforms anyway.

Reviewed by:	cem, delphij, jhb
Sponsored by:	Rubicon Communications, LLC (Netgate)
Differential Revision:	https://reviews.freebsd.org/D25465

(cherry picked from commit a5ae70f5a0554235c499016bec3a721adbb1043a)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The counters are exported by a sysctl and have the same width on all
platforms anyway.

Reviewed by:	cem, delphij, jhb
Sponsored by:	Rubicon Communications, LLC (Netgate)
Differential Revision:	https://reviews.freebsd.org/D25465

(cherry picked from commit a5ae70f5a0554235c499016bec3a721adbb1043a)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 366844: Mark asymmetric cryptography via OCF deprecated for 14.0.</title>
<updated>2020-12-04T01:09:51+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2020-12-04T01:09:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=52f7c6741464d96216f730eaa0ae11c8152274d6'/>
<id>52f7c6741464d96216f730eaa0ae11c8152274d6</id>
<content type='text'>
Only one MIPS-specific driver implements support for one of the
asymmetric operations.  There are no in-kernel users besides
/dev/crypto.  The only known user of the /dev/crypto interface was the
engine in OpenSSL releases before 1.1.0.  1.1.0 includes a rewritten
engine that does not use the asymmetric operations due to lack of
documentation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only one MIPS-specific driver implements support for one of the
asymmetric operations.  There are no in-kernel users besides
/dev/crypto.  The only known user of the /dev/crypto interface was the
engine in OpenSSL releases before 1.1.0.  1.1.0 includes a rewritten
engine that does not use the asymmetric operations due to lack of
documentation.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r363374:</title>
<updated>2020-07-27T14:16:27+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2020-07-27T14:16:27+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=90f72e67af415dacc0e58042277ebbe4cde03c16'/>
<id>90f72e67af415dacc0e58042277ebbe4cde03c16</id>
<content type='text'>
crypto(9): Stop checking for failures from malloc(M_WAITOK).

PR:	240545
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
crypto(9): Stop checking for failures from malloc(M_WAITOK).

PR:	240545
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 356508: Use falloc_noinstall + finstall for crypto file descriptors.</title>
<updated>2020-05-05T04:37:05+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2020-05-05T04:37:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e3a82e730771f308b7da4c46fcc7e422f9f692d2'/>
<id>e3a82e730771f308b7da4c46fcc7e422f9f692d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 356561: Add stricter checking on mac key lengths.</title>
<updated>2020-01-20T11:54:00+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2020-01-20T11:54:00+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=6f1a0cedbef0da2632b17bdeafce5ad0c49773a2'/>
<id>6f1a0cedbef0da2632b17bdeafce5ad0c49773a2</id>
<content type='text'>
Negative lengths are always invalid.  The key length should also
be zero for hash algorithms that do not accept a key.

admbugs:	949
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Negative lengths are always invalid.  The key length should also
be zero for hash algorithms that do not accept a key.

admbugs:	949
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 356507,356520: Add a reference count to cryptodev sessions.</title>
<updated>2020-01-20T11:19:55+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2020-01-20T11:19:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=60fbfbe4cd40ba23439c2faa76300f289e9b00b6'/>
<id>60fbfbe4cd40ba23439c2faa76300f289e9b00b6</id>
<content type='text'>
356507:
Add a reference count to cryptodev sessions.

This prevents use-after-free races with crypto requests (which may
sleep) and CIOCFSESSION as well as races from current CIOCFSESSION
requests.

356520:
Remove no-longer-used function prototype.

admbugs:	949
Sponsored by:	Chelsio Communications
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
356507:
Add a reference count to cryptodev sessions.

This prevents use-after-free races with crypto requests (which may
sleep) and CIOCFSESSION as well as races from current CIOCFSESSION
requests.

356520:
Remove no-longer-used function prototype.

admbugs:	949
Sponsored by:	Chelsio Communications
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 351557: Adjust the deprecated warnings for /dev/crypto to be less noisy.</title>
<updated>2019-10-07T20:41:55+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2019-10-07T20:41:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=fc85a25dc689c5cfb4e5c47028eee55a1588d6eb'/>
<id>fc85a25dc689c5cfb4e5c47028eee55a1588d6eb</id>
<content type='text'>
Warn when actual operations are performed instead of when sessions are
created.  The /dev/crypto engine in OpenSSL 1.0.x tries to create
sessions for all possible algorithms each time it is initialized
resulting in spurious warnings.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Warn when actual operations are performed instead of when sessions are
created.  The /dev/crypto engine in OpenSSL 1.0.x tries to create
sessions for all possible algorithms each time it is initialized
resulting in spurious warnings.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 348970,348974:</title>
<updated>2019-08-21T22:42:08+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2019-08-21T22:42:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=01b476c8b8650e010c36be030797c74323998b78'/>
<id>01b476c8b8650e010c36be030797c74323998b78</id>
<content type='text'>
Make the warning intervals for deprecated crypto algorithms tunable.

348970:
Make the warning intervals for deprecated crypto algorithms tunable.

New sysctl/tunables can now set the interval (in seconds) between
rate-limited crypto warnings.  The new sysctls are:
- kern.cryptodev_warn_interval for /dev/crypto
- net.inet.ipsec.crypto_warn_interval for IPsec
- kern.kgssapi_warn_interval for KGSSAPI

348974:
Move declaration of warninterval out from under COMPAT_FREEBSD32.

This fixes builds of kernels without COMPAT_FREEBSD32.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make the warning intervals for deprecated crypto algorithms tunable.

348970:
Make the warning intervals for deprecated crypto algorithms tunable.

New sysctl/tunables can now set the interval (in seconds) between
rate-limited crypto warnings.  The new sysctls are:
- kern.cryptodev_warn_interval for /dev/crypto
- net.inet.ipsec.crypto_warn_interval for IPsec
- kern.kgssapi_warn_interval for KGSSAPI

348974:
Move declaration of warninterval out from under COMPAT_FREEBSD32.

This fixes builds of kernels without COMPAT_FREEBSD32.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC 348876: Add warnings to /dev/crypto for deprecated algorithms.</title>
<updated>2019-08-20T01:30:35+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2019-08-20T01:30:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1c08844fdf8bee7b5b3805d20730b7a30b922d68'/>
<id>1c08844fdf8bee7b5b3805d20730b7a30b922d68</id>
<content type='text'>
These algorithms are deprecated algorithms that will have no in-kernel
consumers in FreeBSD 13.  Specifically, deprecate the following
algorithms:
- ARC4
- Blowfish
- CAST128
- DES
- 3DES
- MD5-HMAC
- Skipjack

Relnotes:	yes
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These algorithms are deprecated algorithms that will have no in-kernel
consumers in FreeBSD 13.  Specifically, deprecate the following
algorithms:
- ARC4
- Blowfish
- CAST128
- DES
- 3DES
- MD5-HMAC
- Skipjack

Relnotes:	yes
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r344140,r344141,r344142,r344143,r344388,r344547</title>
<updated>2019-03-14T02:46:03+00:00</updated>
<author>
<name>Sean Eric Fagan</name>
<email>sef@FreeBSD.org</email>
</author>
<published>2019-03-14T02:46:03+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7f4deb98366ee78d84c76a310f48b59cb53f0bee'/>
<id>7f4deb98366ee78d84c76a310f48b59cb53f0bee</id>
<content type='text'>
r344140:
Add CBC-MAC authentication.

r344141:
Add AES-CCM encryption, and plumb into OCF.

r344142:
Pasting in a source control line missed the last quote.  Fixed.

r344143:
Fix another issue from r344141, having to do with size of a shift amount.
This did not show up in my testing.

r344388:
It turns out that setting the IV length is necessary with CCM in OpenSSL.
This adds that back.

r344547:
Fix another bug introduced during the review process of r344140:
the tag wasn't being computed properly due to chaning a &gt;= comparison
to an == comparison.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
r344140:
Add CBC-MAC authentication.

r344141:
Add AES-CCM encryption, and plumb into OCF.

r344142:
Pasting in a source control line missed the last quote.  Fixed.

r344143:
Fix another issue from r344141, having to do with size of a shift amount.
This did not show up in my testing.

r344388:
It turns out that setting the IV length is necessary with CCM in OpenSSL.
This adds that back.

r344547:
Fix another bug introduced during the review process of r344140:
the tag wasn't being computed properly due to chaning a &gt;= comparison
to an == comparison.
</pre>
</div>
</content>
</entry>
</feed>
