From patchwork Thu Apr 8 09:06:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilan Peer X-Patchwork-Id: 1463691 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=KjTfdvWk; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (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) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FGFld5bPnz9sWH for ; Thu, 8 Apr 2021 19:07:41 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=b1+17vCg2k7F3X9owDjttookrli8uULdy09SG4JIrc4=; b=KjTfdvWkjVs4k+r4oJGFlO7B4a ugi50EonjxjAHepcACNRLVLN3ft1uFNIpt+tMnMeW6lu4gPPdZoS9BJHWsQBGipleSu2JnZ4C1w9a AYrp+IdnKFdQiDLM39axz9ggRYSvI34kk6lVxgch9EINxRZmbsksea3/xdZBVgocpIo+EWsi6x2zc J/rZboeIFT6/Idcb2X6ZwKQKMsu1Z4W8Tno6mR5Im5NB9tOJZAIMAk9dAJ9QHp1ZG6E2XiDfkRvcR J2len6vp4B5QLU8jXTpHGuXwArar2I1a0HknZlCU7BHZv4z0itYoPCZImF7u7X9iwYcoxxh73OVDO swc8APfg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUQcg-007Q5g-KJ; Thu, 08 Apr 2021 09:06:46 +0000 Received: from mga09.intel.com ([134.134.136.24]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUQca-007Q4A-SK for hostap@lists.infradead.org; Thu, 08 Apr 2021 09:06:43 +0000 IronPort-SDR: mm24O7MEH6Nk9NAUpnQg+3SmIxN/iChBtFt1BbeeCWZ+dAezlHleBQfrvkxKboVU2FHB0i57Ev Zx5+YLvQjXzQ== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="193609766" X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="193609766" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 02:06:37 -0700 IronPort-SDR: cewvQZF1i/w4r2GyKQyGjU+6Mvfb70FxADow+gsxzemJ4nn2j7mDiXziOn/oUdoDAAsm/lbtj6 uuvHC0cfn9NA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,205,1613462400"; d="scan'208";a="441676016" Received: from jed01615.jer.intel.com ([10.12.217.51]) by fmsmga004.fm.intel.com with ESMTP; 08 Apr 2021 02:06:36 -0700 From: Ilan Peer To: hostap@lists.infradead.org Cc: Ilan Peer Subject: [PATCH 2/5] tests: Add coverage for PASN authentication with KDK derivation Date: Thu, 8 Apr 2021 12:06:21 +0300 Message-Id: <20210408090624.9490-2-ilan.peer@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210408090624.9490-1-ilan.peer@intel.com> References: <20210408090624.9490-1-ilan.peer@intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_100641_447043_5D689B08 X-CRM114-Status: UNSURE ( 7.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: Spam detection software, running on the system "desiato.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: Ilan Peer --- tests/hwsim/test_pasn.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/hwsim/test_pasn.py b/tests/hwsim/test_pasn.py index bf9343833b..150a21d01b 100644 --- a/tests/hwsim/test_pasn.py +++ b/tests/hwsim/test_pasn.py @@ -803,3 +803,20 @@ def test_pasn_co [...] 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 [134.134.136.24 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [134.134.136.24 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender 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: , MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Ilan Peer --- tests/hwsim/test_pasn.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/hwsim/test_pasn.py b/tests/hwsim/test_pasn.py index bf9343833b..150a21d01b 100644 --- a/tests/hwsim/test_pasn.py +++ b/tests/hwsim/test_pasn.py @@ -803,3 +803,20 @@ def test_pasn_comeback_multi(dev, apdev): raise Exception("PASN: unexpected status") check_pasn_ptk(dev[i], hapd, "CCMP") + +def test_pasn_kdk_derivation(dev, apdev): + """PASN authentication with forced KDK derivation""" + check_pasn_capab(dev[0]) + + params = pasn_ap_params("PASN", "CCMP", "19") + hapd0 = start_pasn_ap(apdev[0], params) + + params['force_kdk_derivation'] = "1" + hapd1 = start_pasn_ap(apdev[1], params) + + try: + check_pasn_akmp_cipher(dev[0], hapd0, "PASN", "CCMP") + dev[0].set("force_kdk_derivation", "1") + check_pasn_akmp_cipher(dev[0], hapd1, "PASN", "CCMP") + finally: + dev[0].set("force_kdk_derivation", "0")