Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3820093imu; Mon, 7 Jan 2019 10:01:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN4gqytE1ef4hjjSNiw1CsljJzg5gDOSXg6u+CRcVdrbpVpJBzLTrUV5WrN2DHK98TNcg4Ya X-Received: by 2002:a63:9843:: with SMTP id l3mr58718039pgo.413.1546884118874; Mon, 07 Jan 2019 10:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546884118; cv=none; d=google.com; s=arc-20160816; b=XtEDGd6sY7y5o2ZDf1L9Yn53bs4icExx6hhAZPE14SHn0mBYDrGShGAfneeWw80QGC gEww3fJnoRuQGy92CANKFbk+2YTTWfO+v0v6orj2Eja7kPTmJJbMM8XXd+E6OxXMatTq 9jDjZ21gKlv9zb8iFNQfV914JVV9wtNZF9uBa3lTFq3d7nxZS7psqYre+DgPgtRsjduX +Vtsx8YKENYTEq/jGbvAg3nUnW9/7m4Fk4NBHAD4pfMulfAIme+8ekKoXmfaxtsMk/8U h1TFMuqCEJRWr+CB1NnJmqXPeQtZiY+TFIBS5AdKGcO4WAh/Z/TQ/S4YAN4hvo3JWKOE HMQg== 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=z+woGWTorQvoFJmT8Ohc3V+Wg6ZAyzXeiJv+KaHE2Is=; b=nA9tMqFPwbCWGfTImcpn4xb0ggDL5w6FB4372FADH6eJ087JQjbasozYsG+TJyJSIg S4PXIUv0el8S4lpjhzQwmHWCwPD3eqiHkS0K4MHOEaRcZt+cTvxsAl3SMmF8CjVglZ9h oWwxbJRGqrttH+wUivTtM4F/b3mB3+m7PF7nBZ7BLvjXjOt7G+pDk50FHE8NJk5LSa3G 3asOsrDmqonyouV/1kVYSLI1Rxv+k2DBq8w/Z6aOgxiiG+P4OG+GcY0MM8T3iNGgAykJ RLtMVQUnsGibbxbtgLtpaRhtNGu0xWPFe6hjoVaTueDv54OFqUYIZZ8rk6ZUNTJhIXKM 1yEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=H57wY+zX; 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 n28si20376146pfb.88.2019.01.07.10.01.44; Mon, 07 Jan 2019 10:01:58 -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=H57wY+zX; 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 S1728006AbfAGQ4K (ORCPT + 99 others); Mon, 7 Jan 2019 11:56:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:56802 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727002AbfAGQ4J (ORCPT ); Mon, 7 Jan 2019 11:56:09 -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 0DA5C2087F; Mon, 7 Jan 2019 16:56:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546880169; bh=ajVMGG4Sjw+WPm4/s2aEbB4MhWrOn8u/esw9qP0BE0k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H57wY+zXKgp+0BUXisekOBmDUKgrUbFuUcMxiCIt1gp2RlrBnac3wg8kTZDxsZZTK T46FYKpnBehce5sZ4CfwxxreQ8qi3cQIaKx+ytNvaKKr7+1P9OdIZpTgxRgs6cZEVW P/TAWo0rMBj4TToOIJX9CYnJnUzsMNmLFxlAMF5s= Date: Mon, 7 Jan 2019 08:56: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: <20190107165606.GA2077@gmail.com> References: <1546851776-3456-1-git-send-email-kalyani.akula@xilinx.com> <1546851776-3456-3-git-send-email-kalyani.akula@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1546851776-3456-3-git-send-email-kalyani.akula@xilinx.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 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