Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp975636imu; Wed, 9 Jan 2019 09:23:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN7z88oZ0jqHj2f60fxgL7ID3+bUh4zj7cg3A7ZprgGwkjy8y95lM+XAwxCTB2sMWdQ29cTV X-Received: by 2002:a17:902:3064:: with SMTP id u91mr6730689plb.325.1547054615031; Wed, 09 Jan 2019 09:23:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547054615; cv=none; d=google.com; s=arc-20160816; b=SVjWJt/u4Nxw/QfbrV22/Qs8n4FRqoF1fqogYbP84gon65X3VLhB7orNTqWcUuIex3 YOnxNNVU38BqC9qIfxI+kfKeM8dWxPcrU+vLinmNq81QJyM1yyFGludwLk9qXuWuH9IJ Q+w45rQi5wrk+ixTPKGrbKzfJjbys/MHLb7Dfw0LKxfL4faAbhbJdnDxVGECfOWGVgw9 2u9Sq1EPSJYU3l0DAQTmuzZZj0RvVmnOCfUAt3AoyCnnZ+I/EVyC2Tw9r+lHg/XxZOdr Cl1fmVN56WTRAFrj62RmelHRu/BJxs6AZjJxk52OXcPNl+NxKrWXGJrVlDQaQyTO0Pj1 vyyg== 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=vKoN2oYztwtKr5+95kAR+KnLtmm1xXpGaDkfSBxid9c=; b=zNQqE2X2jSjlbrJEvhLYdiua91kKQDm0EYvSXko3RUgVMeAyWW1bm4DNYqNf6hreWt 4WoKBJ3vmnIuLDruZeGdrEiwS53yNs5ERRoi8j840c6rehNXsIGOe56ZwbdwUadq+3gW fE0hw3g/svbpb0JwGvoC79S20M5Ekntz+SMS2VrU7cwPHJiCO+2o5Ml3vXenTkizRDdV 6B1Uk7JQa8rTyaDFBh7ik7XzZJZHLSR9HomNh4+Fr1w1rQHvNSe/Z9Owwj1iPsKccU9X rDJ5Oeou3md7WtxIe9ppMiF7lye0VQ9Y/fhJ8FW6oKfLY3TSzhxGumX5bWV8g3DunpXe E2ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tNpXLBGG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 j12si20414868pgq.26.2019.01.09.09.23.19; Wed, 09 Jan 2019 09:23:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=tNpXLBGG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726880AbfAIRWK (ORCPT + 99 others); Wed, 9 Jan 2019 12:22:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:57546 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfAIRWK (ORCPT ); Wed, 9 Jan 2019 12:22:10 -0500 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 2FDDC20660; Wed, 9 Jan 2019 17:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547054529; bh=x59Z4BaZlWUuL8ZjCtMQUTLKgd25tvlyk9JJkaGK9vo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tNpXLBGGzhW8WA1SFmmuo/Y9jMCLorRZLSJUgtq2E1wopZyTWamEsZJvHdnFvQBYh AqulMYNj90GnfpadUfF44PUlsy3lzYehOSHI8gDaHYstqv2jRX8TDrlqb06CTH5YSN 87+vmH41fmr+enu1tUySHC2yGo/1phsJUFYAJZPA= Date: Wed, 9 Jan 2019 09:22:07 -0800 From: Eric Biggers To: Kalyani Akula Cc: herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Kalyani Akula , Sarat Chand Savitala Subject: Re: [RFC PATCH 2/3] crypto: Add Xilinx SHA3 driver Message-ID: <20190109172206.GA249140@gmail.com> References: <1546851776-3456-1-git-send-email-kalyani.akula@xilinx.com> <1546851776-3456-3-git-send-email-kalyani.akula@xilinx.com> <20190107165606.GA2077@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190107165606.GA2077@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 07, 2019 at 08:56:07AM -0800, Eric Biggers wrote: > Hi Kalyani, > > On Mon, Jan 07, 2019 at 02:32:55PM +0530, Kalyani Akula wrote: > > This patch adds SHA3 driver suuport for the Xilinx > > ZynqMP SoC. > > > > Signed-off-by: Kalyani Akula > [...] > > + > > +static struct ahash_alg sha3_alg = { > > + .init = zynqmp_sha_init, > > + .update = zynqmp_sha_update, > > + .final = zynqmp_sha_final, > > + .finup = zynqmp_sha_finup, > > + .digest = zynqmp_sha_digest, > > + .export = zynqmp_sha_export, > > + .import = zynqmp_sha_import, > > + .halg = { > > + .digestsize = SHA384_DIGEST_SIZE, > > + .statesize = sizeof(struct sha256_state), > > + .base = { > > + .cra_name = "xilinx-keccak-384", > > + .cra_driver_name = "zynqmp-keccak-384", > > + .cra_priority = 300, > > + .cra_flags = CRYPTO_ALG_ASYNC, > > + .cra_blocksize = SHA384_BLOCK_SIZE, > > + .cra_ctxsize = sizeof(struct zynqmp_sha_ctx), > > + .cra_alignmask = 0, > > + .cra_module = THIS_MODULE, > > + .cra_init = zynqmp_sha_cra_init, > > + } > > + } > > +}; > > cra_name needs to match an algorithm that has a generic implementation. > It should be "sha3-384", or is your hardware not compatible? > Also does your hardware not support sha3-256 and sha3-512? > > - Eric Hi Kalyani, this was not addressed in v2. - Eric