From owner-dev-commits-src-branches@freebsd.org Sat Jan 30 00:39:43 2021 Return-Path: Delivered-To: dev-commits-src-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9C82F4FE6E5; Sat, 30 Jan 2021 00:39:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DSFhv3Lfxz4fR2; Sat, 30 Jan 2021 00:39:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5CFD842A6; Sat, 30 Jan 2021 00:39:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 10U0dhVt088467; Sat, 30 Jan 2021 00:39:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 10U0dhi5088466; Sat, 30 Jan 2021 00:39:43 GMT (envelope-from git) Date: Sat, 30 Jan 2021 00:39:43 GMT Message-Id: <202101300039.10U0dhi5088466@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: a455b23cf348 - stable/13 - qat.4: Minor tweaks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a455b23cf348885491f83c6a4734bb6fddf0d481 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-branches@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the stable branches of the FreeBSD src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2021 00:39:43 -0000 The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=a455b23cf348885491f83c6a4734bb6fddf0d481 commit a455b23cf348885491f83c6a4734bb6fddf0d481 Author: Mark Johnston AuthorDate: 2021-01-27 20:31:10 +0000 Commit: Mark Johnston CommitDate: 2021-01-30 00:39:15 +0000 qat.4: Minor tweaks - Document a constraint on the AAD size for AES-GCM. - Note that the list of supported platforms and add-on devices is not complete and indicate that QAT devices will show up in pciconf output. [1] PR: 252984 [1] Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit e1b50e8184fca00520774d43bd7bdd0ccbe9a1d2) --- share/man/man4/qat.4 | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/share/man/man4/qat.4 b/share/man/man4/qat.4 index 9e9491f22aea..92ee85ac64eb 100644 --- a/share/man/man4/qat.4 +++ b/share/man/man4/qat.4 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 5, 2020 +.Dd January 27, 2021 .Dt QAT 4 .Os .Sh NAME @@ -57,17 +57,29 @@ The driver implements .Xr crypto 4 support for some of the cryptographic acceleration functions of the Intel -QuickAssist device. +QuickAssist (QAT) device. The .Nm driver supports the QAT devices integrated with Atom C2000 and C3000 and Xeon -C620 and D-1500 chipsets, and the Intel QAT Adapter 8950. -It can accelerate AES in CBC, CTR, XTS (except for the C2000) and GCM modes, +C620 and D-1500 platforms, and the Intel QAT Adapter 8950. +Other platforms and adapters not listed here may also be supported. +QAT devices are enumerated through PCIe and are thus visible in +.Xr pciconf 8 +output. +.Pp +The +.Nm +driver can accelerate AES in CBC, CTR, XTS (except for the C2000) and GCM modes, and can perform authenticated encryption combining the CBC, CTR and XTS modes with SHA1-HMAC and SHA2-HMAC. The .Nm driver can also compute SHA1 and SHA2 digests. +The implementation of AES-GCM has a firmware-imposed constraint that the length +of any additional authenticated data (AAD) must not exceed 240 bytes. +The driver thus rejects +.Xr crypto 9 +requests that do not satisfy this constraint. .Sh SEE ALSO .Xr crypto 4 , .Xr ipsec 4 ,