From owner-dev-commits-src-all@freebsd.org Wed Jan 27 20:32:21 2021 Return-Path: Delivered-To: dev-commits-src-all@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 6593B4E8D5A; Wed, 27 Jan 2021 20:32:21 +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 4DQwJP2FJ6z3LT0; Wed, 27 Jan 2021 20:32:21 +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 3E4A122F42; Wed, 27 Jan 2021 20:32:21 +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 10RKWL0Q014675; Wed, 27 Jan 2021 20:32:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 10RKWLhx014674; Wed, 27 Jan 2021 20:32:21 GMT (envelope-from git) Date: Wed, 27 Jan 2021 20:32:21 GMT Message-Id: <202101272032.10RKWLhx014674@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: e1b50e8184fc - main - 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/main X-Git-Reftype: branch X-Git-Commit: e1b50e8184fca00520774d43bd7bdd0ccbe9a1d2 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2021 20:32:21 -0000 The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=e1b50e8184fca00520774d43bd7bdd0ccbe9a1d2 commit e1b50e8184fca00520774d43bd7bdd0ccbe9a1d2 Author: Mark Johnston AuthorDate: 2021-01-27 20:31:10 +0000 Commit: Mark Johnston CommitDate: 2021-01-27 20:31:10 +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] MFC after: 3 days Sponsored by: Rubicon Communications, LLC ("Netgate") --- 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 ,