Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp160335rdb; Tue, 5 Dec 2023 01:28:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFm4FRTDY9Zg4NGpu+p3FNoI6ECkeLynfTfftM644F7arBCdhZho5vPs9EGTNybphWmgsZa X-Received: by 2002:a17:902:e54e:b0:1d0:cd87:64cf with SMTP id n14-20020a170902e54e00b001d0cd8764cfmr45968plf.76.1701768533012; Tue, 05 Dec 2023 01:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701768532; cv=none; d=google.com; s=arc-20160816; b=lZFYKlkFE+10N26f+CrWZQbensyMchyZX3xfDris02aFPW2liktwWEISq7VjA0jTXM M2nH/GeHHF3oU/XoxfENreTP2A8RUrEAWvXfxnizC1AzrOm+sQwOv+7/GDQkUO0vQ33B 0AOAQHdA/PHRvCXrqQP3k5Arh/AfItXpKKY+O+t5Gvxg/4nFk72c+yXi2Hm1bzMFkAHc IuVT6uzhWoP7ypmgqA88Pnrg0A32gFGOz3TP312uxxvqqkGiG6GnaAQCY+Q8Suio1Y4M RO82xQNvHrCIKGgvBqI/7uevzFQZvioqM9j6TvriJSEvS9L2CJISCnk8D8FL1uphHdmf EeQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=I9NcydlPjJuZdBvk47SliSWRPXO51iH+ClRWgIXdngI=; fh=7+E2mOjJ6edCi1Pq7AlBk1kL+HZFTyNsJm81OYyiA+A=; b=qbPBtlpqgs5ZddGAxdPGhm4RFY48dWWdMBT3YS2TQ6xuYq3OQrWz+NvQF3djthAIlE /eszsLd9e0q8QT89G77l7Rvp52iChZRteJFAmzy5aQmxY8f7aO007chHdzgzdtAjfZmp AMLSzZdSWETqAYXeNz30Tx5mX/srL52gsYcjhsR0IyKjuux06wsK/+xYvzz48+h0PfbG z4749Nl1v4XHkugs+ib1tepGxhV2cHgwSoyMZCYaLWYVwQgWp/U0ijYK6xgVOM/rJ3DO iF83AwZE3HHdwNF6shDRQoVmBSOoM2aaFixWyn/lLvlyxZhQEwV9Dxgc22SbG9m2VdBd QlsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=PPBdSIMs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u8-20020a170903124800b001cfba8ff230si9391494plh.268.2023.12.05.01.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 01:28:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=PPBdSIMs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E6913803E7A1; Tue, 5 Dec 2023 01:28:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235506AbjLEJ2i (ORCPT + 99 others); Tue, 5 Dec 2023 04:28:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235477AbjLEJ2Z (ORCPT ); Tue, 5 Dec 2023 04:28:25 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 891E1138 for ; Tue, 5 Dec 2023 01:28:29 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3b9b8522d91so1023903b6e.0 for ; Tue, 05 Dec 2023 01:28:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1701768508; x=1702373308; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=I9NcydlPjJuZdBvk47SliSWRPXO51iH+ClRWgIXdngI=; b=PPBdSIMsiEiHJtO9YF1DSrwoPWPWwDY0lsXcg4j+Y51g526eF34dm5awrHZ23cMmZf OpRi+1KVrTZp3F+UsdMKOHsRsfxIzegbcoODaiDj6vbg0Yd+UqhOTOIeVYD6MfHEZH/p G59V4KhcWb2H4Zf5DLhHzcRc84wIgXFwJ+rAwJ4LzRw42gDkV1fzbbKNqXIS4jNZqtxe +cB33zA05jv1vvEAjtKFaPl/MzDy6bShulOXkmaPyEDG6mXkerKAdW6lECPueppU+blh vxf/vuecRsGO6qiMVMFaUMLT9t9nMHuw/P1FoFwfafAfx532BBB/CCWqQr5ujiwDbjTk Vqzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701768508; x=1702373308; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I9NcydlPjJuZdBvk47SliSWRPXO51iH+ClRWgIXdngI=; b=ce6rQuqy/kwjTwBFTVEqIEuUoPxA8m9/XWjZx4DEi6+GtDD2uGf3uKdbn2DESfCQrp cE3ZLBEbMsmCMdyqc0ZPLxWk28qILecu2SduMZW7+wvlq8wiNM8VVFa4+YbyPN/+Ag0a 1BcXE7fRHj/TvYLNQz4Lhl8TjrGEFLZyo7OpzyHvQSGKfxOCfdjPFoN1Ep43Z53pvN6S v9tj0vFnMMQVD+iQpXvj4Xk2hHm2gH8mSWNRW1Iu6R7pS/M2yJjp7y9FGPGLTs4g6PTl 4zHNVeEPf1ePSTlgZmpZUa+bendqzvrOQbCdwhlGDwteji4Ih+CVCZCZ9MM/VP3d8QyZ wsEA== X-Gm-Message-State: AOJu0YxlvrQY82EWTVrDRU+78ksuBWIib6Z7KDKG9ei5LEhow9F0+VNF W7XiMJO8DkGmLYwn4iYOImEhjw== X-Received: by 2002:a05:6808:16a7:b0:3b8:44dc:7ce0 with SMTP id bb39-20020a05680816a700b003b844dc7ce0mr7330943oib.2.1701768508622; Tue, 05 Dec 2023 01:28:28 -0800 (PST) Received: from localhost.localdomain ([101.10.93.135]) by smtp.gmail.com with ESMTPSA id l6-20020a056a00140600b006cdd723bb6fsm8858788pfu.115.2023.12.05.01.28.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Dec 2023 01:28:28 -0800 (PST) From: Jerry Shih To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, herbert@gondor.apana.org.au, davem@davemloft.net, conor.dooley@microchip.com, ebiggers@kernel.org, ardb@kernel.org, conor@kernel.org Cc: heiko@sntech.de, phoebe.chen@sifive.com, hongrong.hsu@sifive.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: [PATCH v3 05/12] crypto: simd - Update `walksize` in simd skcipher Date: Tue, 5 Dec 2023 17:27:54 +0800 Message-Id: <20231205092801.1335-6-jerry.shih@sifive.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20231205092801.1335-1-jerry.shih@sifive.com> References: <20231205092801.1335-1-jerry.shih@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 05 Dec 2023 01:28:52 -0800 (PST) The `walksize` assignment is missed in simd skcipher. Signed-off-by: Jerry Shih --- crypto/cryptd.c | 1 + crypto/simd.c | 1 + 2 files changed, 2 insertions(+) diff --git a/crypto/cryptd.c b/crypto/cryptd.c index bbcc368b6a55..253d13504ccb 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c @@ -405,6 +405,7 @@ static int cryptd_create_skcipher(struct crypto_template *tmpl, (alg->base.cra_flags & CRYPTO_ALG_INTERNAL); inst->alg.ivsize = crypto_skcipher_alg_ivsize(alg); inst->alg.chunksize = crypto_skcipher_alg_chunksize(alg); + inst->alg.walksize = crypto_skcipher_alg_walksize(alg); inst->alg.min_keysize = crypto_skcipher_alg_min_keysize(alg); inst->alg.max_keysize = crypto_skcipher_alg_max_keysize(alg); diff --git a/crypto/simd.c b/crypto/simd.c index edaa479a1ec5..ea0caabf90f1 100644 --- a/crypto/simd.c +++ b/crypto/simd.c @@ -181,6 +181,7 @@ struct simd_skcipher_alg *simd_skcipher_create_compat(const char *algname, alg->ivsize = ialg->ivsize; alg->chunksize = ialg->chunksize; + alg->walksize = ialg->walksize; alg->min_keysize = ialg->min_keysize; alg->max_keysize = ialg->max_keysize; -- 2.28.0