Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1608524rwb; Mon, 7 Nov 2022 03:48:40 -0800 (PST) X-Google-Smtp-Source: AMsMyM5Cbl9CPy2PeMacwTR8hlBGm9lE1q3hoXUO36ujx6s5Djx5uVm5NrWy+0BgSHF0+A9jM/0J X-Received: by 2002:aa7:c859:0:b0:463:4b54:16a8 with SMTP id g25-20020aa7c859000000b004634b5416a8mr43061484edt.136.1667821720007; Mon, 07 Nov 2022 03:48:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667821720; cv=none; d=google.com; s=arc-20160816; b=DcN75RmuHtVt/WKs7bqSy9k1CIYokgzTo1UJ4czvzQXZ2TBfurMJoUVCdwcDF3H8U+ ERJI0NwmvGx6y8i/UgRLET4KFE0XAlN7NniK017+KB7M3IluhC0kEVpIwjSeoO/XzY2a g/FF9o+sZiHApKturxY1m3Si7vV5XZgdMkUFvqlNgN7pIbObSRa8jg98h8EIC/U+CzxL xOR9wX8FcUMx7fFchIVb+lvYV0T0jR2LYkMUcUBarH3e4t0tpQlvnONbl/cGUUSx0zIB 66g+G5zrjFcqyUnOit8uo+2dKI3oo7gcMhjH5NrqRHBtuxWSjlXw+ycVM8gsZgbiG/lo QG+w== 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=2w2norf17FHwkqF7uqmpvKvXIkvCoKcqrRCYZXHr4d4=; b=fsUzvAAf0EvEVk7OAArsQ+T5sHPv7QphBuVnLpmrz67oj1kz6fkuONHFFWe317VsY9 FWLWxJG3HfmRE07eKUF7CW0xhG/i/fM0lAGnwiIGCDg6VrguFE63EaeNmmqzHn6qTSZj MBBLoYvGXL5eEOsC0NIBlIGFT085qV9vyji3B4TkYgAQ8tsObQQgcsRVX9zi+cE8bZG7 FU2kUGIslIeF4vmgwFDeRgzt07CbQn6PIm5UO6QwzltyZBQRakQS8HOd3AfrkfIllRjv ROAfvKXaIOd/1Pd72UiajZ9776B0aPyzh7umHqrjXyxK9ZnqJ5C95n6ygzGeiO4mbEaB zmSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=O4EfGTzX; 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 wy8-20020a170906fe0800b0073d5f9aa5e9si8848614ejb.327.2022.11.07.03.48.10; Mon, 07 Nov 2022 03:48:39 -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=O4EfGTzX; 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 S229541AbiKGLkF (ORCPT + 99 others); Mon, 7 Nov 2022 06:40:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbiKGLkE (ORCPT ); Mon, 7 Nov 2022 06:40:04 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6478317073 for ; Mon, 7 Nov 2022 03:40:03 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id q1-20020a17090a750100b002139ec1e999so10030270pjk.1 for ; Mon, 07 Nov 2022 03:40:03 -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=2w2norf17FHwkqF7uqmpvKvXIkvCoKcqrRCYZXHr4d4=; b=O4EfGTzX7ut98ALxy/2jm29ZGFMdN3GIpwvfKU/SUAK7Iw/evSI9Rd56ZuCe6D9RE/ /wsrGMAodIwmqqMs/HUDmtjtXwizFv5aGexNBgDbFpFlCVlrGt8KiLSzSiguuec/dtzk hhYAtXftMWt2fnOfJAIc00yoMqI4roX4k+zto5yRdXnDcp/V3h+J+uyuWUUxO77NIwAG ADpqhFg3WIOZWkU4sYnfWYV0D2tcI6JYmH+B+CQPBVb5JS1HMdQVmkFXKC5FSYnHdfhX jmntC/fAtLDmYcIDmZ2USDW+5As2ujUhSosa48fn3Nt/AZyzAfImcYA7Q/GKqgWi7EnD IyoQ== 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=2w2norf17FHwkqF7uqmpvKvXIkvCoKcqrRCYZXHr4d4=; b=SiNEiLc8bURdALJ0L8+3ubAjeMP2rWq/3g3dyns0XuC0raEanhQ0oJE8TyEVOZ3G6n OoBS3m7pqANBsfWOZ9DzeKx5wcb/HN93TfD5RxojpCwNaS0tKg2NdH5ikwI0/ydqujXk l4dTXneEQg1yOe2tDddq7Z+Sr3pfKLOqW45XqlLeGZKiWYV3emm9PTdj8mRvmJG0ga3m FBLYsaXqtgks62U+oCQf/jtx6v/FE2TapzUmzZoRqkVs9lxv4wPgZbgXtsOJepfn9cO2 GBAOqGIGM6wyuwGfSLcH6KGi6Bn8APRpvjl+8asjrDnfpQHzZ6f/KC3y2Yv7+c4aXmkf JJRA== X-Gm-Message-State: ACrzQf1xIBB4ddjbcadzi2j7UeIHnQpQ0XlAcJI0K0ajUI952QUNdvMq K4WhlAdFFw+LIN6CqxHnkGY= X-Received: by 2002:a17:902:7294:b0:187:146c:316f with SMTP id d20-20020a170902729400b00187146c316fmr44440521pll.149.1667821202864; Mon, 07 Nov 2022 03:40:02 -0800 (PST) Received: from ?IPV6:2606:4700:110:8d19:ef92:9207:5a0d:60e7? ([2a09:bac1:3f60:98::16:12e]) by smtp.gmail.com with ESMTPSA id l5-20020a622505000000b0056be1581126sm4442633pfl.143.2022.11.07.03.39.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Nov 2022 03:40:02 -0800 (PST) Message-ID: <99dcdd19-6954-d040-455b-c04f158d17c7@gmail.com> Date: Mon, 7 Nov 2022 20:39:56 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v3 1/4] crypto: aria: add keystream array into struct aria_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: <20221106143627.30920-1-ap420073@gmail.com> <20221106143627.30920-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/7/22 17:48, Herbert Xu wrote: > On Sun, Nov 06, 2022 at 02:36:24PM +0000, Taehee Yoo wrote: >> >> struct aria_ctx { >> u32 enc_key[ARIA_MAX_RD_KEYS][ARIA_RD_KEY_WORDS]; >> u32 dec_key[ARIA_MAX_RD_KEYS][ARIA_RD_KEY_WORDS]; >> int rounds; >> int key_length; >> +#if defined(CONFIG_CRYPTO_ARIA_AESNI_AVX_X86_64) || \ >> + defined(CONFIG_CRYPTO_ARIA_AESNI_AVX_X86_64_MODULE) >> + u8 keystream[ARIA_KEYSTREAM_SIZE]; >> +#endif >> }; > > The tfm ctx is shared between all users of the tfm. You need > something that is private to the request so this needs to be > moved into the reqctx. > > Cheers, Sorry, I think I hadn't understood the point of your previous review correctly. I will move keystream into reqctx instead of the tfm. Thanks a lot! Taehee Yoo