From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stanimir Varbanov Subject: Re: [RFC PATCH v2 4/9] crypto: qce: Add ablkcipher algorithms Date: Tue, 29 Apr 2014 17:24:16 +0300 Message-ID: <535FB610.8070006@mm-sol.com> References: <1397479725-20954-1-git-send-email-svarbanov@mm-sol.com> <1397479725-20954-5-git-send-email-svarbanov@mm-sol.com> <20140428080006.GA14510@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140428080006.GA14510@gondor.apana.org.au> Sender: linux-crypto-owner@vger.kernel.org To: Herbert Xu Cc: "David S. Miller" , linux-arm-msm@vger.kernel.org, Mona Hossain , Hariprasad Dhalinarasimha , Zhen Kong , Niranjana Vishwanathapura , Rohit Vaswani , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org Thanks for the review! On 04/28/2014 11:00 AM, Herbert Xu wrote: > On Mon, Apr 14, 2014 at 03:48:40PM +0300, Stanimir Varbanov wrote: >> >> + if (IS_AES(flags)) { >> + switch (keylen) { >> + case AES_KEYSIZE_128: >> + case AES_KEYSIZE_256: >> + break; >> + default: >> + goto badkey; > > You need to support 192 here. If the hardware doesn't do that > you can work around it by using a software fallback. Sure, I will make a software fallback. Thanks. > > In general you need to provide everything that is supported by > the generic software implementation. -- regards, Stan