From owner-freebsd-arch@freebsd.org Mon Jan 15 00:08:37 2018 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8744E68BD9 for ; Mon, 15 Jan 2018 00:08:37 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8C65D74543 for ; Mon, 15 Jan 2018 00:08:37 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: by mailman.ysv.freebsd.org (Postfix) id 8BBC1E68BD7; Mon, 15 Jan 2018 00:08:37 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8B688E68BD6 for ; Mon, 15 Jan 2018 00:08:37 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F65574542; Mon, 15 Jan 2018 00:08:37 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id w0F08aOa037176 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 14 Jan 2018 16:08:36 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id w0F08aBH037175; Sun, 14 Jan 2018 16:08:36 -0800 (PST) (envelope-from jmg) Date: Sun, 14 Jan 2018 16:08:36 -0800 From: John-Mark Gurney To: John Baldwin Cc: Benjamin Kaduk , arch@freebsd.org Subject: Re: Ranting about OCF / crypto(9) Message-ID: <20180115000836.GU75576@funkthat.com> Mail-Followup-To: John Baldwin , Benjamin Kaduk , arch@freebsd.org References: <3790717.UIxaijsHl3@ralph.baldwin.cx> <20180111055620.GO72574@kduck.kaduk.org> <1848677.SMV3i9kbhA@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1848677.SMV3i9kbhA@ralph.baldwin.cx> X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Sun, 14 Jan 2018 16:08:36 -0800 (PST) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 00:08:37 -0000 John Baldwin wrote this message on Thu, Jan 11, 2018 at 09:41 -0800: > > > - Simple compression / decompression requests. While this isn't > > > "crypto", per se, I do think it is probably still simpler to > > > manage this via OCF than a completely separate interface. > > > > Probably, though perhaps less so after the removal of arbitrary > > stacking depths. And mixing compression with encryption has its own > > risks, of course. > > I probably think you wouldn't mix but would either do compression, auth, > hash, or auth+enc. NetBSD's /dev/crypto does support stacking > compression + auth + enc in a single ioctl, but it doesn't provide any > way to control the ordering so in practice I think it was just a way to > permit offloading compression alone. Never makes sense to do compression after enc, so it's really what order auth and enc should happen in.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."