Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1279244lqg; Sun, 3 Mar 2024 03:07:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUtayc8zDyi9AoaRJZqF3V0xPH0san+NGAc+MqMSgvWxV7P/oOH2CctCJ1scWI1j8b+aBBDjvrhHyHhDVRj2SczLnX5ONWTVs6p7SZQ2A== X-Google-Smtp-Source: AGHT+IGRzHrduaJbhqA7FHI8L+ckDh2eURj2mCYeq2Rf6HSU92j/BMuoid0QYPHnxRB9Vvn9cM7R X-Received: by 2002:a05:6214:713:b0:690:706c:47ad with SMTP id c19-20020a056214071300b00690706c47admr753208qvz.36.1709464045827; Sun, 03 Mar 2024 03:07:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709464045; cv=pass; d=google.com; s=arc-20160816; b=n2VmbbJuyguzfGKLfr65wIiMNjZlSIKMQqkzJH7shBzF3+1hm01Wg3SNGd2UI3HzQM 9oGJKn7R3XzA20EFSyXQk8S7Suv/EAWzdwFjW093/uMM87hLNGayglAQv+1c5CCPadNK Rxc93tLF8Hv1+2dI01hTx5PuCFMsM6ZUr5m3EohoIizMqwW7gOjOIF1t4KOBMvRGaQml Oua/TJ99/QcRwKIznchro8GtF35hhFQLoyMBWyerVat9gkd5TGo9pcx/GL3zZZExq0/D 2jSfA0ZjFl+YLkXysyTmuh2D/clUCX8U2ku0g3hbgcIv+GQUdfMsPqQc7XPNWk+Q2bjQ N+Eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=AHt7c1vUFIhemmgSEhpeGR7KQMAf8TzvX54W2Qxjj8Q=; fh=/w08LdzNt1kNSwWwCVqhlqp7XWsG8pryXQF7MxR0bbE=; b=KPfu0pbr6aP7fJv18zNrZuzCHBd/fFJEaG0YuWYqIdH8Qv3wR3aZuCkIz8PsYjLxXE dTRby2LXRoEgCjXT3PPE3KLFF8LHgoX3pfDZCyy28rcsyg87Wy5rI6IQMKNXoMFVA/+9 FUuhPxIZK9YCbhh9tlqFzWxybdIUi9ok4Fud9SADglj1SWmkU21NLe7iV+rB8AtFO9tq C/DQcakrFg12EIMDj/nYEg5NEaEsRHnLRdyWGfURs0H1sONjODzZok+hSzH5VCTIbhYs ULghvzh92LnWeyRLwLU9mOGDD05VU4AOv+m8j7Odxq0nSNvt6PfPVZvaAlhmmpBDOIev m1zw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-89713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89713-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 7-20020a0562140dc700b0068c83271adcsi7399352qvt.228.2024.03.03.03.07.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 03:07:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-89713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89713-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8C8251C20976 for ; Sun, 3 Mar 2024 11:07:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F3E7BE4E; Sun, 3 Mar 2024 11:07:17 +0000 (UTC) Received: from bmailout3.hostsharing.net (bmailout3.hostsharing.net [176.9.242.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E72E5BA46; Sun, 3 Mar 2024 11:07:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=176.9.242.62 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709464037; cv=none; b=b9peFl2jfyYNlM+xSLLFAfqh9nvsbm9IfHOdQxY0sjpcI+/UuS2rjS3eq1eLRZF4NwKXZabvuMrDmB1gepj6f3O1k0D9qkNn5ziYsqN98pTc9+xmt7d1PIBNVJQUqGM9d3qCKSuwfffqG7U5b75xksbL3TTH9AwglO+Sz9bY0hk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709464037; c=relaxed/simple; bh=I43RMyn6osBtg686uYMwi4dhcpjKKvp1hXc4tbwIK0c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qfCyW9RgEHye5vFaD6DlwZ8hiCTPUq3nYuc8alafI73kUxLkVloptHWCOm8UyVpjqas8ABsvr7Tist8GDyV9TdlxWzWJLnXiV3L0h49QB7GE2o1yspKvPSogs93Ac3InG49srFZ5/177kUsJDVzId2GLNcCO7uFQjdWsFSW5OXA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de; spf=none smtp.mailfrom=h08.hostsharing.net; arc=none smtp.client-ip=176.9.242.62 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=h08.hostsharing.net Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS RSA CA G1" (verified OK)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 1CBD8100DA1C4; Sun, 3 Mar 2024 12:07:06 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id DAAC82E321; Sun, 3 Mar 2024 12:07:05 +0100 (CET) Date: Sun, 3 Mar 2024 12:07:05 +0100 From: Lukas Wunner To: Stefan Berger Cc: keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, linux-kernel@vger.kernel.org, saulo.alessandre@tse.jus.br Subject: Re: [PATCH v4 05/12] crypto: ecc - Add nbits field to ecc_curve structure Message-ID: <20240303110705.GB394@wunner.de> References: <20240301022007.344948-1-stefanb@linux.ibm.com> <20240301022007.344948-6-stefanb@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240301022007.344948-6-stefanb@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) On Thu, Feb 29, 2024 at 09:20:00PM -0500, Stefan Berger wrote: > Add the number of bits a curve has to the ecc_curve definition and set it > on all cruve definitions. Nit: s/cruve/curve/ > --- a/include/crypto/ecc_curve.h > +++ b/include/crypto/ecc_curve.h > @@ -23,6 +23,8 @@ struct ecc_point { > * struct ecc_curve - definition of elliptic curve > * > * @name: Short name of the curve. > + * @nbits: Curves that do not use all bits in their ndigits must specify > + * their number of bits here, otherwise can leave at 0. > * @g: Generator point of the curve. > * @p: Prime number, if Barrett's reduction is used for this curve > * pre-calculated value 'mu' is appended to the @p after ndigits. Nit: Looks like this kernel-doc uses 1 tab instead of blanks.