From patchwork Mon Oct 3 07:31:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Glenn Strauss X-Patchwork-Id: 1686752 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=4xkO59mx; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Mjnd42ZNXz20Pd for ; Thu, 6 Oct 2022 21:25:12 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Mime-Version:Message-ID:Subject:To:From :Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2LdxPtXFpnIGKFFdAjWS/IEQJSrDRuOMjwZWFXZHmlg=; b=4xkO59mxWmeO8I I6CAIGwLiaXbp/leUg3M88nxkGrmX4CnLEMhWtd+1IVLn4/K8w5pX4bHwf2tC6TlkH4wylzy+7F/d PyOSSJfCBFw1dA6XYfFHdOAfAMIfgFDgA14GOS8aYOnDsJsAF2Hiq0+wYrlTTNCd2Vo0lcj1e1OeJ B/2BTM0F7RlTBLUOF+B4UbkP8Psq0H/k/aBAHCZz6b08f+Ym6KdcYUFCP/LPkoD6awjUk0OWLQAUp uXA/jSgu8wwEbeMbUjF2ynjQEkq+svPGcf2YueqByR34RdRZvj4EeVMYujLib1QWrqy1i131KSa9B doofFrDLXwyJsU6xxO1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ogO2i-001S9R-UV; Thu, 06 Oct 2022 10:23:52 +0000 Received: from smtp1.atof.net ([52.86.233.228]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ofFvO-004PFn-0P for hostap@lists.infradead.org; Mon, 03 Oct 2022 07:31:39 +0000 X-Spam-Checker-Version: smtp.atof.net X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 TXREP TXREP: Score normalizing based on sender reputation X-Spam-Language: en X-Spam-Relay-Country: X-Spam-DCC: B=; R=smtp1.atof.net 1102; Body=1 Fuz1=1 Fuz2=1 X-Spam-RBL: X-Spam-PYZOR: Reported 0 times. Date: Mon, 3 Oct 2022 03:31:22 -0400 From: Glenn Strauss To: hostap@lists.infradead.org Subject: [PATCH] sae-pk: crypto_ec_key_get_subject_public_key expected to produce compressed fmt Message-ID: Mime-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221003_003138_157832_6FAC7C0B X-CRM114-Status: UNSURE ( 8.08 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: document in src/crypto/crypto.h that compressed point format is expected in DER produced by crypto_ec_key_get_subject_public_key() Signed-off-by: Glenn Strauss --- src/crypto/crypto.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Content analysis details: (-2.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [52.86.233.228 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Mailman-Approved-At: Thu, 06 Oct 2022 03:23:51 -0700 X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org document in src/crypto/crypto.h that compressed point format is expected in DER produced by crypto_ec_key_get_subject_public_key() Signed-off-by: Glenn Strauss --- src/crypto/crypto.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crypto/crypto.h b/src/crypto/crypto.h index 91df6079d..ff0869c49 100644 --- a/src/crypto/crypto.h +++ b/src/crypto/crypto.h @@ -1068,7 +1068,8 @@ void crypto_ec_key_deinit(struct crypto_ec_key *key); /** * crypto_ec_key_get_subject_public_key - Get SubjectPublicKeyInfo ASN.1 for an EC key * @key: EC key from crypto_ec_key_parse/set_pub/priv() or crypto_ec_key_gen() - * Returns: Buffer with DER encoding of ASN.1 SubjectPublicKeyInfo or %NULL on failure + * Returns: Buffer with DER encoding of ASN.1 SubjectPublicKeyInfo using + * compressed point format, or %NULL on failure */ struct wpabuf * crypto_ec_key_get_subject_public_key(struct crypto_ec_key *key);