Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp488319pxu; Fri, 4 Dec 2020 08:05:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJybxKst4cpzdc9t6UEUYI7sTscQlcxB5cyyHO7nmQWfG4qjNAQ6qGRYW6uvgKus6VUxxQtJ X-Received: by 2002:a17:906:3153:: with SMTP id e19mr8102879eje.17.1607097957654; Fri, 04 Dec 2020 08:05:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607097957; cv=none; d=google.com; s=arc-20160816; b=uNS/BJ0KIcPJ3QSR5o/AMvzhQooKReEeNUKZtRFtWVi2DdXb/Cg33bkwXf1ZWs8CIE J4S6S9Sa98PnCdKnDNwil9RmU4MR8ix4Hig0phXqSot+AFsSTx88+7eodsiTS4tbxifl rIaiZq72QtZ3t/0BZZ8YpwOtMnJRlXnFiIe/yZTXleCKOUVPJ7Yln6Hpm99lA8iri2MJ 4b61rUzHFYXjo+oShWx2NyGN7kHLUE9LOIyPWA/aCLBn7Vc/t5g/DFPOsGJryktCkJPf SHhNdWwXnKUAj6Q795GfOnqz9/jOB05i9+HuW/DGjj5MWg+JCKbKZ/R4YHtVQHiyBTfT 7zcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=ERIkl1BDXlF5O6syA29Bwhswr1FuTLeR381zvqC+rxM=; b=raxirmauSKcftRYmbGS4F73yMWm3T/sARoH2gxL2t4IlOW7BPDVs0xP8WDrfuzwt8O l6gI3rReAkfIANtu4Iq+wyNtsVWSkhPo0fxiSK1zgdzacfq6OravVjg90rttM0FdGqNe I48A+3nyCbAGTeTVOf7jBjF/103P1nmYL74Gs6g+Nu2N4XdCToGm4OYJSW6qEWpq8rK6 gs50cxuANKfT7yp1LCsLHqXkJutMjDuoyDuScd5THiEwdWFoLtF7T5apOdtU7Ml+qgmM XJsgs3nzotoNAwmohkrc75Vr7nKHd2wWSCRYl40vxBnBnFMmYBiOXAFJ9OzOnScvsCf2 FRyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=b1JQi9U8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o27si3210627edz.10.2020.12.04.08.05.32; Fri, 04 Dec 2020 08:05:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fieldses.org header.s=default header.b=b1JQi9U8; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729625AbgLDQE3 (ORCPT + 99 others); Fri, 4 Dec 2020 11:04:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728355AbgLDQE3 (ORCPT ); Fri, 4 Dec 2020 11:04:29 -0500 Received: from fieldses.org (fieldses.org [IPv6:2600:3c00:e000:2f7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074A7C0613D1; Fri, 4 Dec 2020 08:03:49 -0800 (PST) Received: by fieldses.org (Postfix, from userid 2815) id DF8FC6F73; Fri, 4 Dec 2020 11:03:47 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.11.0 fieldses.org DF8FC6F73 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fieldses.org; s=default; t=1607097827; bh=ERIkl1BDXlF5O6syA29Bwhswr1FuTLeR381zvqC+rxM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b1JQi9U80NaedGr7RHRaQCnG5xEb1uwUKyGuRYMKooN+bXDIHFlQ/Cln4KMm+3YMB 2RA6oh05GDlF4ZCKlCkKbUcS+97xKciT+0QrSFC4ldMYSkYip8ldKOr/vTiipIM9RZ eVl7dWRSgWW1tfpFPNJL17gbMtkai9ahTAXcshoQ= Date: Fri, 4 Dec 2020 11:03:47 -0500 From: Bruce Fields To: David Howells Cc: Chuck Lever , CIFS , Linux NFS Mailing List , Herbert Xu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Trond Myklebust , linux-crypto@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org Subject: Re: Why the auxiliary cipher in gss_krb5_crypto.c? Message-ID: <20201204160347.GA26933@fieldses.org> References: <20201204154626.GA26255@fieldses.org> <2F96670A-58DC-43A6-A20E-696803F0BFBA@oracle.com> <160518586534.2277919.14475638653680231924.stgit@warthog.procyon.org.uk> <118876.1607093975@warthog.procyon.org.uk> <122997.1607097713@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <122997.1607097713@warthog.procyon.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, Dec 04, 2020 at 04:01:53PM +0000, David Howells wrote: > Bruce Fields wrote: > > > > Reading up on CTS, I'm guessing the reason it's like this is that CTS is the > > > same as the non-CTS, except for the last two blocks, but the non-CTS one is > > > more efficient. > > > > CTS is cipher-text stealing, isn't it? I think it was Kevin Coffman > > that did that, and I don't remember the history. I thought it was > > required by some spec or peer implementation (maybe Windows?) but I > > really don't remember. It may predate git. I'll dig around and see > > what I can find. > > rfc3961 and rfc3962 specify CTS-CBC with AES. OK, I guess I don't understand the question. I haven't thought about this code in at least a decade. What's an auxilary cipher? Is this a question about why we're implementing something, or how we're implementing it? --b.