Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp222558ybl; Thu, 29 Aug 2019 21:59:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXCLUqyRicTInjQDwXqsvCJ1BVpC5+KgPfd1uQhz4tQu5Mw9Ll5pJPsXXzhy+JNVEJBoMu X-Received: by 2002:a17:90a:ec07:: with SMTP id l7mr13587764pjy.39.1567141151040; Thu, 29 Aug 2019 21:59:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567141151; cv=none; d=google.com; s=arc-20160816; b=UCKPVhUFQkf4i2pn1Edv/Z1EZKmuwbCjKX23OaUFjtfXLKaH8jiiFWS5naFZkR8bLB V3oTM/q2KbytDIasuA/A2vRkumOiQg8XpCJagesO6+Bt7KCgoD/LRCmbvPF9PTthupZg zNeGbU7a81cnO0lyqbuxHA5lobiGArGLdSVWari8iNov7q3wOaEtFAstwQAIjilVfosV GfDRu5adKiDejqN232n0xtlWIj0kTm4W+zbxbTSHIDV7HE0Jm0YuNR3D56Y74/zUBsyj zUMX69myqc/vJZH/+2k2HJb0M5JR8brGbNDG57vsnJW55XKEteu/7FjM9nN68Nc9k1bG rtiw== 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=+YZfTaS6wcYJ9jSpANd/Gqev8n+2MinBpHa9eWk4gl0=; b=mJKm57gqVomK5g4+JEvFjNsSPz0KEUph/Pw0rqSHPh2e8et+k4t+NZ5Pl7Z3OarNqp J/PFSBepsjfYLehL0yOJiAPZuGR92/aSGlPbfIkSUTsfcL0Nl8e0IrLQaFPaMPsgyou8 5zOaWYVLV/jjK74v0pn1JobFMYfqfl6srySM34n2sNG9u0Jg8lKyx4wE8HXSJgDI0HM8 8e/QYAAaA5+RiBEL3K6+c7z99jtq2rCEWMMlxobL10uy5cZRvJv/vkq9+ASpfCNtJfG7 1+cHFO0uPCKMfUmtkzoMgo1Ew5O9fVYNOC7bdGffubBxcRwDy/6N7CkOS6XRWLJpRZxO F16Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si4818924pfa.36.2019.08.29.21.58.44; Thu, 29 Aug 2019 21:59:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725774AbfH3E6h (ORCPT + 99 others); Fri, 30 Aug 2019 00:58:37 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:59506 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbfH3E6h (ORCPT ); Fri, 30 Aug 2019 00:58:37 -0400 Received: from [192.168.0.7] (helo=gwarestrin.arnor.me.apana.org.au) by fornost.hmeau.com with smtp (Exim 4.89 #2 (Debian)) id 1i3YzR-0007ro-7D; Fri, 30 Aug 2019 14:58:26 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 30 Aug 2019 14:58:23 +1000 Date: Fri, 30 Aug 2019 14:58:23 +1000 From: Herbert Xu To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, Eric Biggers , dm-devel@redhat.com, linux-fscrypt@vger.kernel.org, Gilad Ben-Yossef , Milan Broz Subject: Re: [PATCH v13 1/6] crypto: essiv - create wrapper template for ESSIV generation Message-ID: <20190830045822.GA17901@gondor.apana.org.au> References: <20190819141738.1231-1-ard.biesheuvel@linaro.org> <20190819141738.1231-2-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190819141738.1231-2-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 Mon, Aug 19, 2019 at 05:17:33PM +0300, Ard Biesheuvel wrote: > Implement a template that wraps a (skcipher,shash) or (aead,shash) tuple > so that we can consolidate the ESSIV handling in fscrypt and dm-crypt and > move it into the crypto API. This will result in better test coverage, and > will allow future changes to make the bare cipher interface internal to the > crypto subsystem, in order to increase robustness of the API against misuse. > > Signed-off-by: Ard Biesheuvel > --- > crypto/Kconfig | 28 + > crypto/Makefile | 1 + > crypto/essiv.c | 663 ++++++++++++++++++++ > 3 files changed, 692 insertions(+) Acked-by: Herbert Xu -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt