Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp80213rwb; Thu, 17 Nov 2022 21:00:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf7BThIGCOkY9OxyQY97haiTA2SCdnPpYJ9qFVnYKNnEsYNJ48yJ5VGYhMIS/3RUfQ6zZQ4Z X-Received: by 2002:a17:90b:3c4a:b0:213:1d14:2a27 with SMTP id pm10-20020a17090b3c4a00b002131d142a27mr6069701pjb.109.1668747651848; Thu, 17 Nov 2022 21:00:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668747651; cv=none; d=google.com; s=arc-20160816; b=B43YO+2Jy8kh8gmxE5mPrYZIGRxqMbjpRMg+wIGUndjVR8Iu1SOdoklMoZirj2Y2Ys xu9mP2LpP5oyg6U2Bhm5aapL60DU//vC4ken1OuS/B3cJxk4hfoPXclHT+tAH1fNo7UG JNSw50CsAlBv/BRyWeDy1GWe2FUftUnZe5t/EyB1i3XHdmg1UI90tESCPwDfjvfixFhU S36WO9htr2q93/ywnXdWBRxHqjbPaJncTIKBEdW2fscAURqpn4dcpvqBnXm3yN29fSi/ hALAZbYMfaoY/gYfw7EH/lDqavSOfS4JQ0OmsYUYZXKYUqnnO4Z0Y+VqWblv5p4WSjh5 +UjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hgeLbwnmPRnUy2g+u3UwnA9FAIFoPYMIF/e85ULIG4Q=; b=oCw+j+zzvn9ImowMfR1ykd7Q0v8EqYcotEFyjzGuAR5EdzcD1/iRFxmGYl9ZlyYJz2 VuLJfQ4JBincA4WkRdP6pjN062TO2X12Mo2LDqS/hehwY22axwQVA4Iaf76I1ehDBO/M y7O676LsY22TOnDz6h+M8N8Yl0XTD1y2JVQEqeKk0kj+yx18DBXJWBazaHsSDcGaNuB+ fVcMX6caXBhdz3fcKCndWTOT3UmcDGue0qGXlBjlUh9drqZ0M97fuq7Qd07Lhdgrv6zp X7pUDKRAcWD4h3JFHB6fElTY26e44JbwZ28t1PBqkZfx6WYgrTA7CWjPr2asw1l5Jjl9 jbTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x123-20020a633181000000b00434dfe7b75esi2811413pgx.223.2022.11.17.21.00.03; Thu, 17 Nov 2022 21:00:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235140AbiKRE7n (ORCPT + 99 others); Thu, 17 Nov 2022 23:59:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235098AbiKRE7n (ORCPT ); Thu, 17 Nov 2022 23:59:43 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C107A5BD4E for ; Thu, 17 Nov 2022 20:59:40 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1ovtTS-00FUKq-0x; Fri, 18 Nov 2022 12:59:35 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Fri, 18 Nov 2022 12:59:34 +0800 Date: Fri, 18 Nov 2022 12:59:34 +0800 From: Herbert Xu To: Taehee Yoo Cc: linux-crypto@vger.kernel.org, davem@davemloft.net, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, kirill.shutemov@linux.intel.com, richard@nod.at, viro@zeniv.linux.org.uk, sathyanarayanan.kuppuswamy@linux.intel.com, jpoimboe@kernel.org, elliott@hpe.com, x86@kernel.org, jussi.kivilinna@iki.fi Subject: Re: [PATCH v4 1/4] crypto: aria: add keystream array into request ctx Message-ID: References: <20221113165645.4652-1-ap420073@gmail.com> <20221113165645.4652-2-ap420073@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221113165645.4652-2-ap420073@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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-crypto@vger.kernel.org On Sun, Nov 13, 2022 at 04:56:42PM +0000, Taehee Yoo wrote: > > @@ -130,6 +135,13 @@ static int aria_avx_ctr_encrypt(struct skcipher_request *req) > return err; > } > > +static int aria_avx_init_tfm(struct crypto_skcipher *tfm) > +{ > + crypto_skcipher_set_reqsize(tfm, sizeof(struct aria_avx_request_ctx)); > + > + return 0; > +} > + > static struct skcipher_alg aria_algs[] = { > { > .base.cra_name = "__ecb(aria)", > @@ -160,6 +172,7 @@ static struct skcipher_alg aria_algs[] = { > .setkey = aria_avx_set_key, > .encrypt = aria_avx_ctr_encrypt, > .decrypt = aria_avx_ctr_encrypt, > + .init = aria_avx_init_tfm, > } > }; You need to set the new flag CRYPTO_ALG_SKCIPHER_REQSIZE_LARGE or else users of sync_skcipher may pick up this algorithm and barf. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt