Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2199181lqb; Mon, 27 May 2024 10:57:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjt9M7a+KlgI7knlPp6YpskRxs0I4fuOj+XSCBLdx1r+lB+drnlCfJgGhYbpKx5YdRLyz2xgkVWrqIPCzqjpxmPS6YToH+FyEexjtqDg== X-Google-Smtp-Source: AGHT+IFCrASZYeb0n+NJ1o+eqdSReaoY2Grht3vrLavap4eywcDKVmXrpfEclFP9Xr0O4NRb6D4H X-Received: by 2002:a17:902:e74c:b0:1f4:6252:db95 with SMTP id d9443c01a7336-1f46252ddbbmr102824105ad.5.1716832671270; Mon, 27 May 2024 10:57:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716832671; cv=pass; d=google.com; s=arc-20160816; b=gdpDNEZjXRBKoloPRaxTdea9v13Jd2zC38OqVIfbOMTBxAx7pWjzhp8wOvLyiAi5Tr M30P7g02DUzvGMHLNF07JxPQJMhtjc3XwH+p5NDzeTaWV5jx+YlDI7q45S0GOCKGNXwo FCy4Zv9b8MaI91gKoQjNVbqvYASsbMqShJ661tqzXf9f1EWQHvE1b9eZBFuWd2euIj5c AmMWnqzBC8rW8YCyZUtp2N00Xncf1wsAf9rmMgp2mAAhAbUt+EVLh8b8gWPNYps00zXQ fG+523mDbAH+sStOlUReVFUxGDfTeyvfHC2N1kMkzwJk7mHjXry1gOHgxIDgacGtqBEp zfIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:date:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=ERR9Le/pQHexiiiES5HRTHcvLkzMQOo6UQZIuxyf3CU=; fh=iaBfclQ/A5uvQkd7B9L67O9CWyyF7eDAJ2IIJfZeBQU=; b=hDJ1fEF87OyeEkdAEeHxJyqWMTcY1WBDefR42lOraBfJNK/1ZOlxr+hPkl2NexDeU6 3aQTuei6M7VCWUrUa2YsR48o6vTwqz2t0Sr1ayuJqCFDXCOEvoRLgbPytLB++zt8aqWg qaP/d1VIN9u7K34uzEHgHdi4QoOUKOq7tnSrGNzMXEOlU9QfpEzFvGP6y6v6nWdnF0HR 2A2FrR0LHHogzXL5oNrLSPVp2aFhQbWM8iSOnLU9koETMgWDW0sBchrDpjYBjycZC5wn bikogu2i6yeHVOZ3i5o0RNCDJBwTzcBXVx+FoLItt9jH13/0By3ZgHLldHA3WNgQ1BTr B6Kg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MNJZ81+p; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4423-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4423-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f49da20173si20383655ad.618.2024.05.27.10.57.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 10:57:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4423-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MNJZ81+p; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4423-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4423-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 52FB0B229FE for ; Mon, 27 May 2024 17:25:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4660B7345D; Mon, 27 May 2024 17:25:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MNJZ81+p" X-Original-To: linux-crypto@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 025BD17E8FB; Mon, 27 May 2024 17:25:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716830730; cv=none; b=gFenTF6xVtPsBkYZ0k1ubKq4PX6x/IazZqO7bbNGEcbMFARzLN87VxQslThVOGu1cXcdMScTvsXmulcaTEKFrZqYbPsgUkugJnXGEMNal0518YAbdbgHncVbch+c0HLByuUYykTF1OCETu9wz0/HRXQn5/nsQKX4It3gJ2oP6Lk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716830730; c=relaxed/simple; bh=ERR9Le/pQHexiiiES5HRTHcvLkzMQOo6UQZIuxyf3CU=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:From:To:Cc; b=J93adhIRqt/D6Qfi1tN1Ft/ALYQFQrSU3PxpcNF6XXsgD3KFZyg6me9GrUGcKBSC8hsfq3YglViqH06tTIStdXmvOWJ0EiRvmqaiIRCv4WXNbXy2RbzZU8mr71n8zLwdGPsWMRjTQoIL5Z7ur205VtCiYah5Kgf9jXontR89bUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MNJZ81+p; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 71FF5C2BBFC; Mon, 27 May 2024 17:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716830729; bh=ERR9Le/pQHexiiiES5HRTHcvLkzMQOo6UQZIuxyf3CU=; h=Date:Subject:From:To:Cc:From; b=MNJZ81+pugD/+W0VYBziO0dK4lRzmtOrLPlCjl0CuNrHWgWWjD1ujPKrlsfrm5qvM rjUDk3eeo+qI6xKfD+XFU3TmK3TRnuwqFb6sZ5bv2eZMEdYHdFzYXn1DzgwEw7DjRq F/V853ZAzzpE1ZwupQBuRVB6Wm6oceqY6ToQcGjP8iQc79ctSJ6aXx5SuvIuUEJ6YF okZluAXAymTN6SOenYoMI9lae4ataJDym7zpkgMCMN3vTfCQE978cRJBiV9QM70+QT 18Gnz5xVDUvDYoZp94kPuculG0keiApwGULyScEvWguoaiN1uW3H0ekxzMcuJcL2vc 0L5O7ZSXXNU+A== Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 27 May 2024 20:25:26 +0300 Message-Id: Subject: ecdsa_set_pub_key From: "Jarkko Sakkinen" To: , "Stefan Berger" Cc: "Herbert Xu" , "David Howells" , X-Mailer: aerc 0.17.0 Hi, The documentation of ecdsa_set_pub_key() is the following: /* * Set the public key given the raw uncompressed key data from an X509 * certificate. The key data contain the concatenated X and Y coordinates o= f * the public key. */ If you interpret this literally it would mean 64 bytes buffer for p256 with two 32 byte blobs for x and y. With such buffer the function fails with -EINVAL, which is obvious from the code that does checks on the contents. Instead of responding to this, can you please fix the documentation bug? There was also badly documented stuff in akcipher that has been unreacted so far so putting also that one here: https://lore.kernel.org/keyrings/D1HCVOZ1IN7S.1SUZ75QRE8QUZ@kernel.org/ BR, Jarkko