Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2470559ybl; Mon, 19 Aug 2019 02:35:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmKMKWwga3UWv0sgx98vdBoONdQ8LrWD8nAm3M01xFsG1TzVbt3EAqJl5U6Ls2yie4SmE/ X-Received: by 2002:a17:902:848c:: with SMTP id c12mr19505217plo.47.1566207304820; Mon, 19 Aug 2019 02:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566207304; cv=none; d=google.com; s=arc-20160816; b=DiS4wERpFeUIeUdOyulli8nNUlkq1LyC4RuRO5eD4OK80HeKqe2RFxZuByNaHrgpIq 62zzCApn9g+4TWKS8yHmjFADtvC+nYF23XpjQp0ExWGybe11ui4wvMsPaFTMH1P5fsof J/bkQBSLLcDl3sIxSkeuJKjlmHv9FvJBZ0WhTsBBs3Y4RDcujJJ+uWsqnzwsfJbC8CqD f/W4lfjLRYkdQ+yEu3kNgnbJmKcBOhf88P3E31OL9FgAQMK8fI1Fdt1hIUJZnntkKWkN EJNImP5TY2W7eAgFhC8TbCeb88fmRehqZsYL1oEx7ivzCF1enWhzH58iORzSI/Zn01RY Sz/g== 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=nokyPsF+TLkADYoEcVDPJm91ks6+AsvkwA/QT4jxdGo=; b=sJy7Z9oE0ICmyAt1IdgEe8x4tdVAvQlRcLCkf8+AjB+Szailk/N3unJXfxdsNBDDw2 4J1R/7GJ6mVuoi5qK1MQA025WKE5TsfX6R2/wAe003CrrLwwZUbIxtToGhBWSSJfH6CF JqWXcuMVb8Dun3j8vvDhOBPwhjpGHufnanQWmlLVepKGVi6qBqNtXol08U8S5Trvl3RL 2ezUE3/eSbYpI6jHp9D1Ulnm+ju8AUvy5VKUEFB1kYL5AwtGyR76yZJcTU/Y6H9MFadf lrvQc6TDShSfv4K+8qbwNlOrYQMauozQYwIW0KEnly4inEKCmWUDwL0Z/BKKjwS95vuq XcNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=k8A1TsRf; 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 v31si9593155plg.339.2019.08.19.02.34.50; Mon, 19 Aug 2019 02:35:04 -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=k8A1TsRf; 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 S1726694AbfHSJde (ORCPT + 99 others); Mon, 19 Aug 2019 05:33:34 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:37293 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbfHSJdd (ORCPT ); Mon, 19 Aug 2019 05:33:33 -0400 Received: by mail-wr1-f66.google.com with SMTP id z11so7958205wrt.4 for ; Mon, 19 Aug 2019 02:33:32 -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=nokyPsF+TLkADYoEcVDPJm91ks6+AsvkwA/QT4jxdGo=; b=k8A1TsRfjUqNnqw34wDXwirNc9+1/hV9F27pe4AMThWINqv+UikTDlIlThFPFqSBRs eD+rTRMyDZ4eKDPMU3dPKUPmXMzRT+sNIotK+0rur7gE6ekReZvxems+GWtEJfHMAfiN xHF457K0L5GiP8ZIxEFNd0FheCaAIzHwJdQoGBeDmsknj133XC3wDrqlEyEPpD+VaCtF OVd8FO7gN6ypXt/yQ63G5S20I8FrRtwcn6Q+2QBsEMbtkKfpkg2nuH7RdXW4jNof+8Ib vc+BzioSff0bAIyQI+RY7Rx+GegXN7DytnJK6jPQW1hqxtg0OEr97v8a45XAUb0mHDFs FeoQ== 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=nokyPsF+TLkADYoEcVDPJm91ks6+AsvkwA/QT4jxdGo=; b=gPoMvFuGLpUk2mt24diEfpI2bJPC8rrvEcmiVlbuFARAVNALUQnX4TvxGzQMPTEHR0 Teval9ucdhUp5V5z7KBt7N7XJhemGEfX7G/n86NDpplxcCoGDZIMedR+0Ef5q0YDExrm tCkuTlQnIqK8+ejSsqfNeuzUkCuWeAfFn24WjdvmmnjLA7Gtmc+0j+oHGAyWb2xCdDXb a1uSbcplKsihCzXYJI2VAUnR1eC49y6QfGYbl8RmtvUBhIIKSHDuFFaiScHsPqRH16DJ r4vtl+QvoO+LxHyR66RgsihF66TuPE0XwsGz5PcfZ3ik+w2vIJq5oBEd0P2mAYtrApEv ibsg== X-Gm-Message-State: APjAAAU/IbTk1xLLbJ/FjEr2i8T6TSCqz99ggMkNgUB13CJcWxtgjKHb BR1fIcKRnUPi09ZKibvJ3aV4v0qjsBo= X-Received: by 2002:adf:f30e:: with SMTP id i14mr26767128wro.288.1566207211455; Mon, 19 Aug 2019 02:33:31 -0700 (PDT) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id o9sm21675360wrm.88.2019.08.19.02.33.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 02:33:30 -0700 (PDT) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 0/4] mesh: Streamline crypto functions Date: Mon, 19 Aug 2019 11:33:20 +0200 Message-Id: <20190819093324.10566-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 patch-set is a cleanup of redundant and/or unused parts of mesh/crypto, making both the usage and the implementation a bit more consistent. MichaƂ Lowas-Rzechonek (4): mesh: Remove unused defines mesh: Normalize Access Key AID and Index naming in models mesh: Align appkey_packet_decrypt with dev and virt variants. mesh: Remove redundant code from mesh/crypto mesh/appkey.c | 111 +++---------- mesh/appkey.h | 10 +- mesh/crypto.c | 434 ++++++++++++++++---------------------------------- mesh/crypto.h | 48 +----- mesh/model.c | 84 ++++++++-- 5 files changed, 234 insertions(+), 453 deletions(-) -- 2.19.1