Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1055552ybi; Wed, 3 Jul 2019 08:46:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQvaPcsgocvOnmMBzPHUaJWQtCRUI8f2/inZBOmMB9118I3szynWhPC0qASuEXTz7yd03V X-Received: by 2002:a63:b904:: with SMTP id z4mr2450581pge.388.1562168765414; Wed, 03 Jul 2019 08:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562168765; cv=none; d=google.com; s=arc-20160816; b=DgCmG+PJRdod+2gJUHHVzhicNgMp5jMm2xy1TIuaWNk3RltLyh1Ijen7Bpdl6hCNdu BQXy7y+haJJ2I/9egrzquVIvs+pCrtnubfLcTxbaid5QD5flDadxHKAhy1IP26uSahym MrVx8y+/3nnPluvBcobdcTo/jZvZKUzAHVCYhfBsZb56NE85pOvCDbzz6iQ6ObkoB8CO rjD4m5aqahdXmpr2g/uTYxywx5N9cDIWMDljlHecvNraxnwzVFIeKM5hTHL0mSzZdNwt tnRlOQ+DB8V0MW9UJEEzy3wpCpm07JCBdmR3HNV5DJhreCQXzEv54xkNivMBV8JviFts u2Cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=acUpDGExtSDrRMhr0/pXHEYno40u67mXgYtr+5+fUU4=; b=mhM/HzTx4vN/Q5k3KL6AGFP1iSdbql5n3QGMSaiZIP6p9J8MmyII8v+TVtfZrfdWwy 1bBj9sgOZrCzACP8wX4upxj3znKW4RnhoufqcijBewJhMLZ5DwHIy43bL+TZjn28Grb1 xoDYR5PHq7SFDQmyME4ZRndPeTsIwV8sul+5Xz0JLWF6+Ox7IOlJj7lx8AOdF2R0dgrG eTNy1ffLQsgv7QtB4qoMDL5dIhdeo0hA5/JAVkL3KLCMwnhyL08aXCs+oJXMxrkBBLkw KDmTQ6xQXYOoptZ5ak3WtfE667l+7JLZEOqT4qwwip/TUi+ftJm5woSPAvCqbtYHl9dh 34LA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bd11si2430450plb.184.2019.07.03.08.45.50; Wed, 03 Jul 2019 08:46:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726490AbfGCPp0 (ORCPT + 99 others); Wed, 3 Jul 2019 11:45:26 -0400 Received: from mga06.intel.com ([134.134.136.31]:27658 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfGCPp0 (ORCPT ); Wed, 3 Jul 2019 11:45:26 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jul 2019 08:45:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,446,1557212400"; d="scan'208";a="166022148" Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by fmsmga007.fm.intel.com with ESMTP; 03 Jul 2019 08:45:25 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.135]) by ORSMSX106.amr.corp.intel.com ([169.254.1.113]) with mapi id 14.03.0439.000; Wed, 3 Jul 2019 08:45:24 -0700 From: "Gix, Brian" To: "michal.lowas-rzechonek@silvair.com" , "linux-bluetooth@vger.kernel.org" CC: "Stotland, Inga" Subject: Re: [PATCH BlueZ v4 3/3] mesh: Handle messages encrypted with a remote device key Thread-Topic: [PATCH BlueZ v4 3/3] mesh: Handle messages encrypted with a remote device key Thread-Index: AQHVMZRs+4eCeG3eF0ycWZvV9eNijKa5ftUA Date: Wed, 3 Jul 2019 15:45:24 +0000 Message-ID: <1562168722.23933.25.camel@intel.com> References: <20190703114214.22320-1-michal.lowas-rzechonek@silvair.com> <20190703114214.22320-4-michal.lowas-rzechonek@silvair.com> In-Reply-To: <20190703114214.22320-4-michal.lowas-rzechonek@silvair.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.20.71] Content-Type: text/plain; charset="utf-8" Content-ID: <141795BDD029C8418BB1C5AC50F6668C@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org T24gV2VkLCAyMDE5LTA3LTAzIGF0IDEzOjQyICswMjAwLCBNaWNoYcWCIExvd2FzLVJ6ZWNob25l ayB3cm90ZToNCj4gVGhpcyBhZGRzIGFiaWxpdHkgdG8gcmVjZWl2ZSBtZXNzYWdlcyBlbmNyeXB0 ZWQgdXNpbmcga25vd24gcmVtb3RlDQo+IGRldmljZSBrZXkuIFN1Y2ggYSBrZXkgbXVzdCBiZSBh ZGRlZCB0byB0aGUgbm9kZSdzIGtleXJpbmcgdXNpbmcNCj4gSW1wb3J0UmVtb3RlTm9kZSgpIG1l dGhvZCBvZiBvcmcuYmx1ZXoubWVzaC5NYW5hZ2VtZW50MSBpbnRlcmZhY2UuDQo+IA0KPiBEZWNy eXB0ZWQgbWVzc2Fn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