From patchwork Wed Mar 8 17:18:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juliusz Sosinowicz X-Patchwork-Id: 1754266 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=UkYYhF0f; 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 4PWzdC093nz1yWs for ; Thu, 9 Mar 2023 04:21:51 +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:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9YW0lEJqbfuiLlCNo+0PUpnAzzlINudj0uY0ukgUfyE=; b=UkYYhF0fFCPDaK C0oA1d1qtOcmtAX7EC0Gh5n2Qf+Cw/tkmUf6ybFdjMg5FJHI06NUhmb+kDjyIEzsTzUoxmupt7fb1 DMXJFzgjEsfc7gEEfQI1y7XfhB7rdfsvgjdTkaF85eUh+d5iJse6SX5AGYG1Y43FM5jSLBXBpez9n MwWQ5XVkoxSuMkiLj/CQnsHPnaw9fZj7FPtVjXvBIlZgIWypscQ/4u5r/IeVgnxqD8XX0whstZ3wN Mo3ivcUGX5hDVi5UcEHyIyH35aX6M/SaW8DxpqH1vj8HAWPoZPiEkCuyldx4o+qmVi9UYoaLMEjmK EpReQ/JoMvxvzKR8r3UA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZxTS-006816-SZ; Wed, 08 Mar 2023 17:21:10 +0000 Received: from p3plsmtpa07-08.prod.phx3.secureserver.net ([173.201.192.237]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZxSU-0067aa-DT for hostap@lists.infradead.org; Wed, 08 Mar 2023 17:20:11 +0000 Received: from localhost.localdomain ([188.212.135.159]) by :SMTPAUTH: with ESMTPSA id ZxRlp2I9XoJ9VZxSTpM65l; Wed, 08 Mar 2023 10:20:10 -0700 X-CMAE-Analysis: v=2.4 cv=fvwaJn0f c=1 sm=1 tr=0 ts=6408c3ca a=3NKXlI4tpxak3Hs97VqeiA==:117 a=3NKXlI4tpxak3Hs97VqeiA==:17 a=VTTltBjBAAAA:8 a=37vA2Ne-ccQ0L1nD0xYA:9 a=on_vo79ac8RWgsiwd8Ea:22 X-SECURESERVER-ACCT: juliusz@wolfssl.com From: Juliusz Sosinowicz To: hostap@lists.infradead.org Cc: Juliusz Sosinowicz Subject: [PATCH 08/12] wolfssl: Better error message in pbkdf2_sha1 for FIPS password failure Date: Wed, 8 Mar 2023 18:18:46 +0100 Message-Id: <20230308171850.267577-8-juliusz@wolfssl.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230308171850.267577-1-juliusz@wolfssl.com> References: <20230308171850.267577-1-juliusz@wolfssl.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4xfPr77PGyaJCcw3LsiaDjy/2k3dExbSZwkiCOs6oHBPfrSz59bf6JqxErntOZAVwOwUgavyNyZTjXiuJmVbvCj9LnBBdT8cWApZz2o9e0OjsndVxf8glu WG5KABI82eOmzeWaI9Sdr+OK5A5+aMdcHFlf2AFhDsSs9XH9xpx91r2MHb6gfBwzz89+kU/4cFtB2M8+Al6z6zedGdc6ldTGXKSblIMJdSguKskz3uRVCWrt VIhbrb+MEA4hCryKYVt8yQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230308_092010_490405_905BF7BA X-CRM114-Status: UNSURE ( 9.34 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) 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: Signed-off-by: Juliusz Sosinowicz --- src/crypto/crypto_wolfssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c index d8d014a07..62eeee6a4 100644 --- a/src/crypto/crypto_wolfssl.c +++ b/src/crypto/crypto_wolfssl.c @@ -416,9 +416,9 @@ int pbk [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [173.201.192.237 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [173.201.192.237 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 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 Signed-off-by: Juliusz Sosinowicz --- src/crypto/crypto_wolfssl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c index d8d014a07..62eeee6a4 100644 --- a/src/crypto/crypto_wolfssl.c +++ b/src/crypto/crypto_wolfssl.c @@ -416,9 +416,9 @@ int pbkdf2_sha1(const char *passphrase, const u8 *ssid, size_t ssid_len, ssid, ssid_len, iterations, buflen, WC_SHA); if (ret != 0) { if (ret == HMAC_MIN_KEYLEN_E) { - wpa_printf(MSG_ERROR, - "wolfSSL: Password is too short. Make sure your password is at least %d characters long. This is a requirement for FIPS builds.", - HMAC_FIPS_MIN_KEY); + LOG_WOLF_ERROR_VA("wolfSSL: Password is too short. Make sure your " + "password is at least %d characters long. This is a " + "requirement for FIPS builds.", HMAC_FIPS_MIN_KEY); } return -1; }