Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3270240ybd; Fri, 28 Jun 2019 05:52:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHoE08LHfDdyZRkYJqmTNXGa9I8g6PhhPKdm4FnlHrerR1Rpgi78bQJM7Y9XLk/q/nWrGp X-Received: by 2002:a63:1f23:: with SMTP id f35mr9304198pgf.160.1561726366281; Fri, 28 Jun 2019 05:52:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561726366; cv=none; d=google.com; s=arc-20160816; b=RDmjK+3HaF25jbuJX1Km2/p5TxFiQWUxjwjaHwozEpEJXKgYCk6Jxn4A7GxazgcVxN fVDSDiLX/lTRV+/Q4nqGoBV98Z1+tbrCWt7MHeuvmQE5vAs4g4HVzYNH8klz25VWa8u1 k5jLZg16Vu2FSe0Xb6c0TwKzGs/5b+wImIpFW882h18pnrbt7uDh+Exf2Hn6Yvp6neab q71Bff23ptd1k/QkTj+lumLosuMg0RNQucYsk6TEN01uP2qhCY6OeIwAL54gPQPJupHG ikv1h2a9UfHraJxXUunPkEC+WKuN8FpDsB5XorkpU5Wi8rEnpBPM0Y0s3OJ1hsjDf7zf 1D8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=LLuXkzUices8D2d388aMEWPr32CuSdLcBE44Cn2waZU=; b=PgRggLZLqBaLgXXQGirh1PJmilRNB075v1mO972sah4qojF8GCyaGrOdjLkgvffU2w JM93ACiNN2pUxwfCoHPWdI15DS00CV0sVkyWPBTrmC1cnUAxakPQhmj006H2sk5/Ya+j tnhoS4d0+h6Gkjwx6HYyVHDQO61lsJfmx7vuN+tZNRA1YDbJ67sY+Ru/0VruFbD8CCep gFELV7FMqFyC8a0tBzNIV1aReHv4QjwaOjnldf5Eqfj+Xg+EIx2gHDZvC+iAEEt34lEo O7UQDzP5hXDa6H1lQO7QkSUOnk7PKa2SUvgH1L86a8jj1aTgFGipDeRRMGyY+/KlmUfG U1Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=kW4Z4dz3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m13si2003416pgv.398.2019.06.28.05.52.16; Fri, 28 Jun 2019 05:52:46 -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; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=kW4Z4dz3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726614AbfF1MwN (ORCPT + 99 others); Fri, 28 Jun 2019 08:52:13 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:37084 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbfF1MwN (ORCPT ); Fri, 28 Jun 2019 08:52:13 -0400 Received: by mail-wr1-f68.google.com with SMTP id v14so6183339wrr.4 for ; Fri, 28 Jun 2019 05:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=LLuXkzUices8D2d388aMEWPr32CuSdLcBE44Cn2waZU=; b=kW4Z4dz3jBdsHPM/J1KeG1ptYdmn0AUIig/PPvg5j7PP3Xb2tVUjwAyJaRB3k2ULsk DP7Yxz7Hix+fQjIahc2v4OVNklbsTziVVQQsWgrNsQTbcIV7UiKw2C7SrsSGyv6B2nFt 02OtGmxQj3Gf1q3P7bFsNvkx+/6ET1z8SPaP2AHHEJ6qJkmd8KE4aNisPXCywvehryrl pJdUXAtwFiOHhUGnGeU4T6k7LRTpqTPD/7EaxwsULGJI0KtLq57hSTH+/Kc0ErYj9IyQ cOAHkXaIf9GQmC8lBeGO8S0OjNscgsC+Jk+DlINgmAskifpuNmvigtTC6VkS6ADTbqhb D8BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=LLuXkzUices8D2d388aMEWPr32CuSdLcBE44Cn2waZU=; b=Lzah2uUn/t+9sN42LQrwwX0EqE0lNyVuVhvl1cn9zkaz1bhCMLBxqI0AWkDZgVTB9+ 7AEWvgcXaDlvtypX/C/S3CE0ipMzxRqLgtZbOXDqITZYtNuF4mhUPKMY/n7ofn6JLmrk Pl0+YeVW5lWs05aEvGwzqpsTYSNre16EPMpwG+S7WgDpGITfE7kw2lSq5l00KxvSKUCO OeKs71TBdrTjk381OWu7SXWMV2Z8j7DxU0AIXlZAI2nGfZOW/MIwnBtg8dsBLxyParZ4 bHQGN5vN2g/pRS1BXYsdyBNjDVoSfZS17kQkIhMsVP3XdkUai3GhcNXH9K5T9mNQ5fKG S4mw== X-Gm-Message-State: APjAAAX0jdTG+w99gCVE32PCtkFU289JzMq7T/UmL+H9zpNBEhBP93yO R981f1+UZS7T+hEB7/Ph/iIjZKJjcL8= X-Received: by 2002:adf:b605:: with SMTP id f5mr8278469wre.305.1561726331402; Fri, 28 Jun 2019 05:52:11 -0700 (PDT) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id y6sm2226484wmd.16.2019.06.28.05.52.10 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 28 Jun 2019 05:52:10 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 0/3] Add support for remote dev keys Date: Fri, 28 Jun 2019 14:52:02 +0200 Message-Id: <20190628125205.21411-1-michal.lowas-rzechonek@silvair.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patchset adds ability to exchange messages with remote nodes using known device keys. MichaƂ Lowas-Rzechonek (3): mesh: Rename APP_IDX_DEV to APP_IDX_DEV_LOCAL, add APP_IDX_DEV_REMOTE mesh: Add DevKeySend call mesh: Handle messages encrypted with a remote dev key mesh/cfgmod-server.c | 14 ++++++------- mesh/model.c | 41 +++++++++++++++++++++++++++--------- mesh/net.h | 10 +++++---- mesh/node.c | 49 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+), 21 deletions(-) -- 2.19.1