Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1197717ybi; Wed, 19 Jun 2019 15:37:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyireYfGp3oXzFHn/6YY6saL7fovQaHL8N6zEV8sYF+8ea68+LPeFBPyHgIVktaqdn7Scxj X-Received: by 2002:a17:90a:9201:: with SMTP id m1mr13666119pjo.38.1560983860134; Wed, 19 Jun 2019 15:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560983860; cv=none; d=google.com; s=arc-20160816; b=orY8U4tfUoht0YF9OctWlRH+vbbZ+8khLuhpIFXvgZHkjisBgPg53EvbMZRewYiOh+ 3UKH3uLJKhq71fQj7sJMfu/2Ex/MPWXuCDmswxUts+4RpBF7SbgKhdu4i1YaQp26729P JqMH03JAeKaiN2TaV01pG0ztNjL3glCBsu1M80BgOqyKqHMtlox9hd+mLKXm5ZvSKJXP 3s7spwOP3lMiV3b4LOzSP9l9+STcS+VVhz63znuMyMov4EHHQKIF2/cbFp+wx71E8Q/R v18X1RuJ54olv5J2jQLvRSBcqCxAX4pExQ7iIY5aFlBaLT3YdDWlpBKjVZnzjx1NGcGl Hcmg== 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:dkim-signature; bh=P/Fs8UK0D3CRKr3i2vuNTj9tVgXZ51YOElYf3JrBDpQ=; b=rrkNXocHVnsi0egCZVv9smOS8yPeDFCx5gXxQri3nU89FO+CiG6Nrw7vISUoOA1QJj 1t8Iz5dVcstP6fBkWZBkBORbaiOqkBiVLrEe/moXsusbuqd0uM/5qatzS4X+R8BsOH55 0NH6CpTegPRYXM+G/7krFoHCum+PINPYuaizr0XdDKJwR6Mrc/QNl9BK55lAamMa1b6N fU/oy3J5D43QHXD6yfuGECwSj0vSD3m4Laquk6r4OZw03ZymQ6Mj2YbGTVFwxnnkkrzY Gm5W3eHWKXS6hNpNavKFxe6uf1ufVr6K6PR1P2tnMyiEXNBl63/XwqCzw0dttJcAHaH9 SRYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DHXGsRof; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g16si16000225plo.211.2019.06.19.15.37.19; Wed, 19 Jun 2019 15:37:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DHXGsRof; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726496AbfFSWhO (ORCPT + 99 others); Wed, 19 Jun 2019 18:37:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:47534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726322AbfFSWhO (ORCPT ); Wed, 19 Jun 2019 18:37:14 -0400 Received: from gmail.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 41C39215EA; Wed, 19 Jun 2019 22:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560983833; bh=7+Xk6jM1swrTvpZVNL3BFK9YYli9gbq2RRURsP3i9Rs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DHXGsRof2r9UQuUm4dZLiBOni5/eVdITgvyd+JYMYPVTNdcKY9XNj73BqIL7hk04t xCGAu1FHPGiAzlfHHiUQgSmT8B9trWf739BKVVktDhoLEyGTI3FMBlUMiLt/8c6tNC V3ySfHm4ThvmVAx6lYQS3Y+9t6jqnfkjk8lGPkTs= Date: Wed, 19 Jun 2019 15:37:11 -0700 From: Eric Biggers To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, Herbert Xu , dm-devel@redhat.com, linux-fscrypt@vger.kernel.org, Gilad Ben-Yossef , Milan Broz Subject: Re: [PATCH v3 6/6] crypto: arm64/aes - implement accelerated ESSIV/CBC mode Message-ID: <20190619223710.GC33328@gmail.com> References: <20190619162921.12509-1-ard.biesheuvel@linaro.org> <20190619162921.12509-7-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190619162921.12509-7-ard.biesheuvel@linaro.org> 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 Wed, Jun 19, 2019 at 06:29:21PM +0200, Ard Biesheuvel wrote: > Add an accelerated version of the 'essiv(cbc(aes),aes,sha256)' > skcipher, which is used by fscrypt, and in some cases, by dm-crypt. > This avoids a separate call into the AES cipher for every invocation. > > Signed-off-by: Ard Biesheuvel I'm not sure we should bother with this, since fscrypt normally uses AES-256-XTS for contents encryption. AES-128-CBC-ESSIV support was only added because people wanted something that is fast on low-powered embedded devices with crypto accelerators such as CAAM or CESA that don't support XTS. In the case of Android, the CDD doesn't even allow AES-128-CBC-ESSIV with file-based encryption (fscrypt). It's still the default for "full disk encryption" (which uses dm-crypt), but that's being deprecated. So maybe dm-crypt users will want this, but I don't think it's very useful for fscrypt. - Eric