Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp535164ybm; Fri, 29 May 2020 06:20:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPsEODKYj0+QgeYLbPLmuML6b6kPh8YYlwAgDnC3QFwLFqtIqSOuuznTI9D27zo3umwfL0 X-Received: by 2002:a17:906:7d91:: with SMTP id v17mr7801875ejo.463.1590758428309; Fri, 29 May 2020 06:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590758428; cv=none; d=google.com; s=arc-20160816; b=XU+Q+B9JAhta2x2KvjZ9xQefakysA3UdoNNdBsjyBuiec+YYmywa4tjtm+gTr+AtqE EXmtZxV7FN3dGGRCwpw96O4ht1F5D9L/1oXq0udoCBNLO0JOfa3VzkLEJJNxMziLHhqE dFeprOzPhdoYx3lgx0vXi8/pBH/PFoM5xr8kDa3TvnTAZKO1hJfiQ0y1SPC9ljjhvYdJ 8/lRVKp/Xg2t2EuWU+sLHW4ifByPhqkN0d6osljbLmDnLNh0qcp5H6kPv93keFeGIFjd U+3UmIyL4ajU/oTmA+NC2k4ZkbSuqzWPHVKp1PSEayO/C+O4m62m2zQGpBMJ9z9nFW1I MwLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=am/HLQqOcUraaePBGriB/p40zkz15c6dMdDlTyFrFPI=; b=oQhALEdMK1SwEE3tDCToYZ6VtT0OIr8rSKc5MbySwuz2edWchvvdVsSTZKL0m8PGGj qK9myJMC4lLSe5126LjZjeWe7Ydfw9dHrn6itUxWOpZfqy3snv1peNfnLrcAOOaQ82LM U3xXFTkUrdGg/XdmtRjbh3T85NMfq4id+/dtfmILh8RBM6MK2b6wq91yDyg9USMBUDNo UMM4Ofycw3jXenAl7Rci/g2E6ID2fy4sdFgkQDCyMJwJqfv85dAszOvl2onXXWiwihhA o4lySfqP7Ss8e5o17dtF24w1g+vDg0cZdNwhXqfHFHchsR3RtHR69yYKAt3ZxRg1frn1 uUwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 l6si5543176edr.243.2020.05.29.06.20.02; Fri, 29 May 2020 06:20:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726751AbgE2NT6 (ORCPT + 99 others); Fri, 29 May 2020 09:19:58 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:40796 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726712AbgE2NT6 (ORCPT ); Fri, 29 May 2020 09:19:58 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jeevR-0006hX-6C; Fri, 29 May 2020 23:19:54 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 29 May 2020 23:19:53 +1000 Date: Fri, 29 May 2020 23:19:53 +1000 From: Herbert Xu To: Ard Biesheuvel Cc: Linux Crypto Mailing List , Linux ARM , Eric Biggers , Stephan Mueller Subject: Re: [RFC/RFT PATCH 0/2] crypto: add CTS output IVs for arm64 and testmgr Message-ID: <20200529131953.GA9187@gondor.apana.org.au> References: <20200519190211.76855-1-ardb@kernel.org> <20200528073349.GA32566@gondor.apana.org.au> <20200529080508.GA2880@gondor.apana.org.au> <20200529115126.GA3573@gondor.apana.org.au> <20200529120216.GA3752@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, May 29, 2020 at 03:10:43PM +0200, Ard Biesheuvel wrote: > > OK, so the undocumented assumption is that algif_skcipher requests are > delineated by ALG_SET_IV commands, and that anything that gets sent to > the socket in between should be treated as a single request, right? I Correct. > think that makes sense, but do note that this deviates from Stephan's > use case, where the ciphertext stealing block swap was applied after > every call into af_alg, with the IV being inherited from one request > to the next. I think that case was invalid to begin with, I just hope > no other use cases exist where this unspecified behavior is being > relied upon. That does indeed sound broken. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt