Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3891027ybl; Mon, 13 Jan 2020 04:31:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxzoOg/kd5s51VXFVDX4mHcSsTJrydQfg9+obZeVLKSNGLEgL5oW4MvnfGP/FX5vGopyQrq X-Received: by 2002:a05:6808:291:: with SMTP id z17mr12070634oic.94.1578918690695; Mon, 13 Jan 2020 04:31:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578918690; cv=none; d=google.com; s=arc-20160816; b=L1XzmlgEAbUMJiTtKrIBN498VoJ6jBERs5BoYSMsVI0MbYo5xB/OxVPksyBJicyMQ9 MLseSac5j7IJjlwltkukXv4ZXB2B7/3pgsp8TWZBJSmyQlNSPpqy3ervw4gz1Wem3Q+s LccEQTNyQf1cRLTd/ihyPJGu4gWgScSHBpSFh8Tx2phsTulwvL3nxq+OGHmnXbYgtqDq OgH/04H9m8cTACrMHti15/DBxFd/2oJEJCIu5EKJdrjtTCYMB0uJVkxqQx6VBoK2B/w1 rcGra751z0MIfacAjNOmIJch7AOdxf/o4FkJQ7UGOzRs77JxZtqT0iNfFlAGPdQGXgH0 Afjw== 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=B2yPxHvW/cIak5cWaOcPQ6zS827qJ14ng52XujG53BU=; b=EfYx33WsPNlN7qpRY28tti85yGHfpbgf8nINDJRcfnGcKpu7hBElmFvaj4+iZP5v57 JMpqvLbeeXTBgNbXzpij7q16B0g/JN1rZDTiFzBf8Q0E2xJCrnwemqmfdpyOPI8m5mhk ovaGF1VU0OI0/hNjF21bRW68LPhTMoodZk/Wtc3+tRKMw8bAhT9Y5hbFHr70cT1r/b8O lhhmI+fUKYifSk3HLTyRmn5SDK6a2X3iMlcc2utOeQkI4yt7yxI/7r7/bZ4mTcroFMX+ qs0XHzH1BZhYHwUFfCKVX1lfEKaVULM+XUSc327/dAbGiwqTqHTvneDfodAtbMd8nwcF uYlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=pjPpjHqR; 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 l14si5600112oic.222.2020.01.13.04.31.19; Mon, 13 Jan 2020 04:31:30 -0800 (PST) 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=pjPpjHqR; 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 S1726180AbgAMMbS (ORCPT + 99 others); Mon, 13 Jan 2020 07:31:18 -0500 Received: from mail-lj1-f179.google.com ([209.85.208.179]:40285 "EHLO mail-lj1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbgAMMbS (ORCPT ); Mon, 13 Jan 2020 07:31:18 -0500 Received: by mail-lj1-f179.google.com with SMTP id u1so9821804ljk.7 for ; Mon, 13 Jan 2020 04:31:16 -0800 (PST) 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=B2yPxHvW/cIak5cWaOcPQ6zS827qJ14ng52XujG53BU=; b=pjPpjHqRqIWdZJ5u7j/JFl8oYjyp6AnRuXJgfotuNxxnJR0+T167+gEe1v3Aqd/boe 3O51SWdChuUxZDq38LW+FSEBMJqcg9vC96+LN72TnzvmROpfP1eAhnNk6dKyPzD9CSb8 QyKX8+UVLXkhkruC1EzQIAr4jSguyD90lJZAin0w8T+yLPnLB22FMzrhDALdCNOZspEo ZNx1KzpH0X0biMaDAQ9RO5Z5sBKkBDqAR1kCrBKyazY+jMr9i0s7FtZLg1ewWbzJv/tK ySo01FpnmTp/800idogy7tBGSLtF8CjQj/5ueJyWblwpRplm+F8CUIJCV6AHaRb0dYJa 0+Tg== 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=B2yPxHvW/cIak5cWaOcPQ6zS827qJ14ng52XujG53BU=; b=t+6bXBqMQFbZbkPFDfaFdihKSqj6c3iDfPra9/PMk26eGNDvXjBuv3QxwP+M1+KeZm EAXP7yhYuARBZPiw+M8JxZPAdQHNGzKEsYxffjcKs1KTbfdEHg5JWxhq1Y3Lj3m0z7Su +NtYWPIlRT0YwHgTx57QeW4wZk3W8lLC/ZVhSbqJ8NXQKW7eTc9eVEykemk9qCazCBZf XbX55+kv9nEMkO27T4pVRhL+lbqjB6bf1k9p22eia2aomYE0SNtnz5v1OL0ihMqxyXPO UYzWC67205TxbNqBBD5eaNpE9y6PY5UvWtmKjs4l4XUglmZedcJEeSUP+3wqmnN2KElv wU4w== X-Gm-Message-State: APjAAAUeiQlyWWMqHYmMg5a0Np2rF6/dBq31xs8KX2rCa1aKBxaf7k/p /1J97dYpSL5UmGiGiaPALkYdr7mwkdQ= X-Received: by 2002:a05:651c:282:: with SMTP id b2mr10642107ljo.41.1578918675778; Mon, 13 Jan 2020 04:31:15 -0800 (PST) Received: from mlowasrzechonek2133.silvair.lan ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id 144sm5735372lfi.67.2020.01.13.04.31.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2020 04:31:15 -0800 (PST) From: =?UTF-8?q?Micha=C5=82=20Lowas-Rzechonek?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH RESEND BlueZ v3 0/1] mesh: Streamline crypto functions Date: Mon, 13 Jan 2020 13:31:09 +0100 Message-Id: <20200113123110.2209-1-michal.lowas-rzechonek@silvair.com> X-Mailer: git-send-email 2.20.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 is a followup to commits 79fd24af1 45beec16b and 37bbe30c9, continuing a cleanup of mesh/crypto. This version works with unit tests added in 06cf0fd1c. MichaƂ Lowas-Rzechonek (1): mesh: Refactor mesh/crypto mesh/crypto.c | 481 ++++++++++++++++------------------------ mesh/crypto.h | 50 +---- mesh/net-keys.c | 2 +- unit/test-mesh-crypto.c | 205 ++++++++--------- 4 files changed, 291 insertions(+), 447 deletions(-) -- 2.20.1