From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796067786; b=SG1IWSwp57G4AbfpHMPR5kUm9sK4M+YOHuqZEcxwAGMFf1ZXlg1q/xV6m19laEbqKeDw FKL+EXp6e+xmX6IznBZY544s/tC/V23MNQ8FAf6sqU7V0Agm7bWHaqb0KFyzQ0210i74m nOd3VQnFPAXTED9T+05ukdWerAUi+lQCd0Aw5iTs0twH7cF/W3BkQRafr1rjXg8xDnHP7 Aq+CLk9wip8Ocbc/k7GAxawWZxNylkGeQ1DIJ5HhXQLiXOm+EKVpIR8z9KMGRBiQZc5s1 //xEbQfTv44by/k8FEXvpMF1KheplM8RrJuPm8UQ0uMleqBf//H2V9ehEGMq4Q5QTeA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796067786; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=z+RW+MtIm7bacWeFiCHECXX6nHJvnavRPN5WGUzWBNI=; b=K/It+IRvo8y0U9mQ8yfTuxnJ0HyQwG6mdNeauT27wUlK6Z8w8tH6PKjeMbY/J0y4U5C1 mSnrFZu6sz8j3mlh1tLCAul+gdO7iBhZnYvnCOWKPEsFRoUqjqAhWUJUAyF2mGEtjWgXk LiJYX6q9kB3mQHhsFIPNkOEpT0V0StrETQ9rCGm480sa816mXOk2Q+FMC0UY9FbehSb+A IVB50yHY+kyVKJJI1n7lYJDCZiDuc6wPEkzlScp3y4Aebs+mLt2NazLuY+H75EUczcsrI MLBBSmFWgeImn22zGP0GhmAYv6kT3sP2DhtqPYMxQ2qme5LDFCb4vxiSLUfpsgtF+Mg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XNRP1V1o; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F863606A320; Mon, 30 Nov 2026 19:43:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=XNRP1V1o Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B1161F000C1; Mon, 30 Nov 2026 19:43:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796067785; bh=z+RW+MtIm7bacWeFiCHECXX6nHJvnavRPN5WGUzWBNI=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=XNRP1V1oVJSVYz/8GSrMu/fFBkKLD9IhpD+LI0Ap09XPNZu4HTfuTTCAsrjtXpG0S JKWReB5isdtVcSOGT9mclIBuGrdWKVNpYQwQ8U8vqrE6/jdL4L1noIK4yLNhO7M3oc RqhjeV7/gDadzhkkFYp79Sv7IAoSwljOWJm9dhtqjLW4ARaYE2X5GsN0AIcVdIVkeT Dq1IiIRe/416LbiOPPs6QKqUfS35uiPgULDqYCA4xayk3nOkp/hLx5yRaEkelflxCA cmrvlMjoGKI3vH9Vf6qUJ4N9L5tVKiuTbh50tg117X8FVhrO7XrHuS3U64IpdU287R dPg7nYSqpCjcA== Date: Mon, 30 Nov 2026 19:43:03 +0000 From: Eric Biggers To: Laveesh Bansal Cc: Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] crypto: adiantum - Derive the subkeys with the ChaCha library Message-ID: <20261130194303.GB16775@google.com> References: <20261130055539.8278-1-laveeshb@laveeshbansal.com> <20261130055539.8278-3-laveeshb@laveeshbansal.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261130055539.8278-3-laveeshb@laveeshbansal.com> On Sun, Nov 29, 2026 at 09:55:38PM -0800, Laveesh Bansal wrote: > adiantum_setkey() derives K_E and K_H with a crypto_skcipher request > on the stack. SYNC_SKCIPHER_REQUEST_ON_STACK() reserves much more > stack than this needs. > > Derive the subkeys with the ChaCha library instead. This replaces > the skcipher request on the stack with a much smaller ChaCha state. > Drop the request-size checks that only guarded that request. > > Suggested-by: Eric Biggers > Signed-off-by: Laveesh Bansal This commit leaves kind of an odd intermediate state. It probably should be merged into the next one. - Eric