Date: Tue, 27 Oct 2020 21:15:12 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: Mark Johnston <markj@freebsd.org> Cc: Neel Chauhan <neel@neelc.org>, "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>, "jhb@FreeBSD.org" <jhb@FreeBSD.org> Subject: Re: QAT driver Message-ID: <YTBPR01MB3966D1A13046294E5C10631DDD160@YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM> In-Reply-To: <20201027125508.GD31663@raichu> References: <20201026200059.GA66299@raichu> <723fbd7326df42ce30cd5e361db9c736@neelc.org> <20201027032720.GB31663@raichu> <YTBPR01MB39666C8CB2DA8292EA4E4033DD160@YTBPR01MB3966.CANPRD01.PROD.OUTLOOK.COM>, <20201027125508.GD31663@raichu>
next in thread | previous in thread | raw e-mail | index | archive | help
Mark Johnston wrote: >On Tue, Oct 27, 2020 at 04:32:40AM +0000, Rick Macklem wrote: [stuff snipped] >> Can it be made to work with the KERN_TLS in head? >> (KERN_TLS works fine for me using the ktls_ocf and aesni modules.) >> I think it is only head and requires the patched OpenSSL3 that jhb@ >> currently has. > >I hadn't looked at ktls_ocf.c before but at a glance it looks like it >can make use of any hardware or software opencrypto driver that supports >the requested algorithms. The qat(4) port implements the algorithms >referenced by ktls_ocf_try(). Well, if you were inspired to try it out, the basic doc for NFS-over-TLS is here: https://people.freebsd.org/~rmacklem/nfs-over-tls-setup.txt (Same file is in base/projects/nfs-over-tls on subversion.) For someone who is used to building/running head kernels, it should be pretty straightforward. You could become the first tester in the whole wide world;-) rick ps: Although the NFS code uses it in the kernel, I think that an application that uses OpenSSL's SSL_read()/SSL_write via a patched OpenSSL library, has the encrypt/decrypt done in the kernel and the userspace library code just does socket I/O with unencrypted data. pss: Hopefully jhb@ will correct me if I got this wrong. > I know nothing about it, except that it seems to work well, doing > the TLS application data records in the kernel for a TCP socket > enabled by the patched OpenSSL library. > I've cc'd jhb@, so hopefully he can let us know what it needs?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YTBPR01MB3966D1A13046294E5C10631DDD160>
