Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp135381rwb; Thu, 17 Nov 2022 22:11:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf7oYwqIIKVUbfKgQ3LMarnxQIxKo5/zTK+vJXRSaXt5s+q8HIKgnRmkoP/jIJDA7+qaSyd6 X-Received: by 2002:a17:90b:4cc8:b0:212:f2b7:2282 with SMTP id nd8-20020a17090b4cc800b00212f2b72282mr6498141pjb.48.1668751917324; Thu, 17 Nov 2022 22:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668751917; cv=none; d=google.com; s=arc-20160816; b=ZjZH8dfgHtzz7N4DMTRD58Tgi+W02YGDjoPZlxGlO7haaHA3m9V/AZsNydL+rlU6I0 /JQ2AxJ1LZHTx61J4rMhaUEXWp1wMWks9exS3HldGHeObX1+AvslS5N0wb0eQAG9Rj4o jq1379umksfLilRV3R8QgDVwkB6AyTSK2ptEBMPvc0MgiUPsDpXK4NubCbKCVcFWC2uB ggYkHD0kB3S2imbxewzfNclMoK6wPneiN3cwTtbfTRtzT507FG8otFR+0K/7asbt3/65 VjuxiSiZ1KfB/7J3PxxjZzooJCenTg3Zv5d7yFTmkfVjjCJUAQaGTfB2Wj3wTexvtq7h 0DPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=bb1Jn0C1Giq64KYlETePlU0uwaMBAKfQCTru1bkGL1w=; b=UX1reFudX26xKzptS1ubHEds8fLqtNEjSA1OdjzuoEvndKHBl5cdhkIde3n8Wezr88 XJvz//KyhH8OoiGul7uwuib4A6obcDwyPJdH76MsAoeD7slIThJmqrdnIr08vOeUyXt5 gWnfmF8+rSDMoFhQiVAvD7KuXnsaT5hYvlcdlKJbsIw3CSN+BcHGsTc8IcCwVnZCM5dv CJq04FrEav7JXMAf8DHyrP5GlHQyJ+WQbCACdnPTvF7FrDGz3CJHeS3HRk+1uEO7zhZU Z6smGrbOye+APiEjNkCYcoN0ma9loOvbBvBXSmnMbgGo7wfLPnMQuA/l0uf5Axrapn6j eIqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TrPBjVMK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a655848000000b0046a79b71854si3134758pgr.334.2022.11.17.22.11.29; Thu, 17 Nov 2022 22:11:57 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TrPBjVMK; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235127AbiKRGIX (ORCPT + 99 others); Fri, 18 Nov 2022 01:08:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbiKRGIU (ORCPT ); Fri, 18 Nov 2022 01:08:20 -0500 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5279D9825A for ; Thu, 17 Nov 2022 22:08:20 -0800 (PST) Received: by mail-pf1-x435.google.com with SMTP id z26so3983345pff.1 for ; Thu, 17 Nov 2022 22:08:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=bb1Jn0C1Giq64KYlETePlU0uwaMBAKfQCTru1bkGL1w=; b=TrPBjVMKDkES+KedmCstBn/wZoNP86ei61ZUbPSRe/mt4EklpXBkc2hit/QbUT15Ja cDr981gqCd5aP3wY0InW/7sXfd0UDgHCuSauDTyrKo60BMjAJVM+6VlGuNiV2LYiqmI2 mwnwCPbPk+r6RKQVmSlS4GJZ5i1sW8PkFym585nqaICeQlrZeVAjXfeQ4ZKOeCZ0+RTn we50ghS7PJdSK7Fs9NVLT5FZczXG4W52Hq24EZ4MyE+ZAm2tq1WgCM7D+G/muRQrtcjW aTX09mNnXmX2mTCHFcPmZEC3PqCgbJfONGHK/U5h2v5TVmBsrkEWL+U9s4dlBSFttxg5 0Z8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bb1Jn0C1Giq64KYlETePlU0uwaMBAKfQCTru1bkGL1w=; b=PyvJzPdL9rvGof1U5R0EwcC9DvGpEbbj3Sl7CsLA5BZ5xHQV9oztUj9B5ZtdQ7A4Kp cd+JoSF+JNVSv13cRFt5lXYdX/0j7NprSs8MXeo13u+7wqrRlKTOtY3q4jXRem/4Wb7s QpavED79kWP20ns4GPpb1psx+JkCFOhV32e/q7iYhKcGw8BTBulrPiByyPhuR6l7abFL MewEm8ULDJsc+4vLHSlk2N5A+Oy58OicHmDJ7R56agY9bMbKaaFzD3gpH936K5+oHDgt reohYstPswOpDFVwB0eB32gyotRzUzL6/lwoa6rsRy4QPo+OcOR5raMZJTMTNu5+slzn BZ/Q== X-Gm-Message-State: ANoB5pmvdKGzBHTPW2+U6pdsLLqbXjcJ+gPBi1jO9gzzwNulCYONdYCr xVI1qdBiFnu7fTe1MVffaIo= X-Received: by 2002:a05:6a00:1d25:b0:562:5f71:d188 with SMTP id a37-20020a056a001d2500b005625f71d188mr6396254pfx.57.1668751699749; Thu, 17 Nov 2022 22:08:19 -0800 (PST) Received: from ?IPV6:2606:4700:110:8d19:ef92:9207:5a0d:60e7? ([2a09:bac1:3f40:98::16:12e]) by smtp.gmail.com with ESMTPSA id f5-20020a63f745000000b0046fe244ed6esm2055815pgk.23.2022.11.17.22.08.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Nov 2022 22:08:18 -0800 (PST) Message-ID: <4c7c3b8f-f6f3-cd74-239c-af93bb2642a6@gmail.com> Date: Fri, 18 Nov 2022 15:08:13 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v4 1/4] crypto: aria: add keystream array into request ctx To: Herbert Xu 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 References: <20221113165645.4652-1-ap420073@gmail.com> <20221113165645.4652-2-ap420073@gmail.com> Content-Language: en-US From: Taehee Yoo In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 Hi Herbert, Thank you so much for your review! On 11/18/22 13:59, Herbert Xu wrote: > 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. > Okay, I will set CRYPTO_ALG_SKCIPHER_REQSIZE_LARGE flag in the v5 patch. Thanks a lot! Taehee Yoo > Cheers,