From: Herbert Xu Subject: Re: [RFC PATCH v2] crypto: Add IV generation algorithms Date: Mon, 2 Jan 2017 14:53:25 +0800 Message-ID: <20170102065325.GA19553@gondor.apana.org.au> References: <1481618949-20086-1-git-send-email-binoy.jayan@linaro.org> <1481618949-20086-2-git-send-email-binoy.jayan@linaro.org> <20161222085509.GA2160@gondor.apana.org.au> <20161223075114.GA3580@gondor.apana.org.au> <20161230102723.GA15713@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Milan Broz , Oded , Ofir , "David S. Miller" , linux-crypto@vger.kernel.org, Mark Brown , Arnd Bergmann , Linux kernel mailing list , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Shaohua Li , linux-raid@vger.kernel.org, Rajendra To: Binoy Jayan Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org On Mon, Jan 02, 2017 at 12:16:45PM +0530, Binoy Jayan wrote: > > Even if ciphers are allocated this way, all the encryption requests > for cbc should still go through IV generators? So that should mean, > create one instance of IV generator using 'crypto_alloc_skcipher' > and create tfms_count instances of the generator depending on the > number of keys. Right. The actual number of underlying tfms that do the work won't change compared to the status quo. We're just structuring it such that if the overall scheme is supported by the hardware then we can feed more than one sector at a time to it. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt