Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2642546lqb; Tue, 28 May 2024 06:26:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIgeINLSVGukrTiHGkCpnTu7mZed7xDrRe1P01UIrw+t93X4nTO+35oobREfVRcBcKin6q0cVNbBEW8zfKDtWTCoDpkju252kt/GCIuA== X-Google-Smtp-Source: AGHT+IEaqTVF/qN192iPjxdILL/vcnSValFcMV9vdOXjsJsXpVLtdri0NHRWljo+c0JCxqMkUup/ X-Received: by 2002:a17:906:648:b0:a59:ba2b:5921 with SMTP id a640c23a62f3a-a626525da18mr866731866b.72.1716902792591; Tue, 28 May 2024 06:26:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716902792; cv=pass; d=google.com; s=arc-20160816; b=oS0qnEveHUi199tgS6RmLMt6rtAExdILPsXLDysEVVITqqftp8YCERjFD+r3KiVCQ7 bZL1k49vLyNTfNIefq3LQsTDhRlfVLOaPDiFWD/SVwzRFv3nAXLq6/foVtkxo2K7wM6z XDe14wI5T+bNcdkPv7thscWFJ7xaPKwkXsrsQGvdqAKhkj8Kj9SkXoTHHmg60dBiN9Hm GBE0zeU49n+/n26R55h3BtvkB2iri64OB8iwXQgPd5K6QQbxQIj/amjG0bDNqoc8nK46 0RstdkssLCtNd2mu52/sKnX9i6hEJ0eTbhhT+XVMW3JE+CUv1/HGNvaNIXY+swqMtNKY LOvg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=Zon4Epd+ePOBVAnTkiMB9GxeTiobC/ojNmvH34hAn4U=; fh=6ZqMGBa1hSGiKyjs0YWJwWzgLlj9juXX86RIIKap4KQ=; b=qiT0//WBPVD5eDJeOiBy/wd6F4pF20GO+NxrZrT1jJIVOEQYereXRP87cfa0BXLOwA 0STBZ2I4KbXhoMbBrkxjz6ykMgjpkeI4b2TpXxyFYT/u/tCkSEyGZfTO/nlMPf1zgOZx /NXaMWm7fw6ya51krKhQlzq/M9N73fZaENuQO30c4PPDpN1WmgVHddWI6vAWyWQyKTWj OI49SxWJFMvBil4wOhxTjzX/tn7jnYbjexiw6jGamQNUIfPmJvhGC2eXTcyDGC7rSR+O dQKMkndpD1m7IwI3tz9b7QNB5/rtdj2DZS1Nin6S9/Bls3wWH9JZ0c1XA9nJjapx/z+V 9grg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IEG2uhgU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4453-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4453-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6342a597a5si79195666b.1039.2024.05.28.06.26.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 06:26:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4453-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IEG2uhgU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-crypto+bounces-4453-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4453-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 403A61F25E3E for ; Tue, 28 May 2024 13:26:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7767316E896; Tue, 28 May 2024 13:26:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IEG2uhgU" 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 32E1D1DFDE; Tue, 28 May 2024 13:26:25 +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=1716902787; cv=none; b=VL3Bg4G+XgUqBmWg9d1/2PUy8ZztlvcgyO0IM8Mnc9TjLH2o4C8FnbgPUEjvZLI3OqrwuB4NRm5S5XMyC4pbPoY9UkraAAmfiKwDGSVVOW98C3xwwMm+0DPO5dU+BOuwaGq+DtzF+pK6uin4H8tSswP2dq1UqlePE04qP8oFKak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716902787; c=relaxed/simple; bh=Ad8wMojTt/79CqziBKqun2/2NRJA2NX2PQ6ZHoAzIHc=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=tSbSb48tIHSjCfsD3xPqva/NB6QoKQaEuw23YFxdQcK8mXWfl8qcMo5b24NkF/+GTuJTy75KRWfgRy5zkem5jddPVp6ZqPwlTlm5GCbGqWNacXSF/cZDceEELUebMEYIfQ7pYtR+v+WdjDsStNL+726Ex4iXxR5dUNFpFwzhl3A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IEG2uhgU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC388C3277B; Tue, 28 May 2024 13:26:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716902785; bh=Ad8wMojTt/79CqziBKqun2/2NRJA2NX2PQ6ZHoAzIHc=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=IEG2uhgUUPyYbAsWUxyVlsBO6Y7DwuhBtwLGqCAzr79tUURXZ7LIgqCi4Vzd5cvVb ImfYzaTkzsSEV1xefnhhAgDb5Dy6nDEd4JwnNFt1SL40OpikjIXypidjro4TXhAnqb 2FKre9bGUfOYBKzbsgflLd+fVZMPzcjxFnIYG75I949ToSYWYBYS0j3K1I7HmCsnsl 8JMK13VJk1FML3SLmV+EO5erme1ByaNjvVXP5e6iN7EvMjQB/kG/DPVjfQvVdTCx0V QGwnxU+/GbDKJzWC86DrsfpZJXC35lbQ+eKdeShmy6u0nKcIJOJUzDYby7/f0Kk+Kc YYLqBqpYlo5mQ== 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: Tue, 28 May 2024 16:26:22 +0300 Message-Id: Cc: , "David S. Miller" , Subject: Re: [PATCH] crypto: ecdsa: Fix the public key format description From: "Jarkko Sakkinen" To: "Stefan Berger" , "Herbert Xu" X-Mailer: aerc 0.17.0 References: <20240527202840.4818-1-jarkko@kernel.org> In-Reply-To: On Tue May 28, 2024 at 3:37 PM EEST, Stefan Berger wrote: > Signature Value: > 30:45:02:21:00:d9:d7:64:ba:5d:03:07:ee:20:a0:12:16:46: > 31:e6:8e:66:0c:17:0d:74:07:87:58:5a:13:fc:14:62:98:9a: > 99:02:20:59:ff:29:9c:52:b9:0a:35:3c:4b:03:bb:47:0e:c8: > 3e:2d:cb:3e:1c:d3:51:88:91:b1:40:e3:03:86:1b:2a:e8 > > 30:45 =3D> sequence containing 69 bytes > 02:21: =3D> first coordinate with 0x21 bytes > 00:d9 =3D> 0x21 bytes of ASN.1 integer with leading 0 to make the=20 > following 0x20-byte integer a positive number (its most significant bit= =20 > is set). > 02:20: =3D> int with 0x20 bytes > ... This actually helped me located the bug in my code: I had 32 bytes for the first one, with no leading zero. I.e. total length was off-by-one. So I'll just extend either or both based on msb?=20 BR, Jarkko