Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp485863ybl; Wed, 29 Jan 2020 04:18:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzcybbKojqXxIDX2ScoXBaRXfeFufY2bk8VH8WdT8DylJ1npa/HR8d5X/FV4KSrHATQ2a06 X-Received: by 2002:a05:6830:1d7a:: with SMTP id l26mr19412278oti.138.1580300300754; Wed, 29 Jan 2020 04:18:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580300300; cv=none; d=google.com; s=arc-20160816; b=tBipfZWEnbrwIbv4v7Tv/QvOby+IMAwst/QrF8Ozi6Y76zuj0cun43Ztt+k4xWVlLb 6KWTTy93QM0jABpyVSEeTl2YoBqSkr9vV0CCSChOvrAackoxkyLb3LA3noQZzVhSkWQC PC+TLwDYQhguVeUzYndJ11WM3mMpKNNbzx1eRM4+JHD1c1gtV6k8yrSRxNwFkWE1GqEh /228xjQHRHa9bT1U20DCR6NFbQ+Phm2TX7eOM1qJ1iY7v0hkZM2jdaqNrLbo2Ujtu22v NTV06K3sFAqukxqWoCuo/pR65HJluawMSIv82cIRxxKJfXPqu1blUCkDwIC9SlVIGtne 1MCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SZXM8L5hThf/lTMyWpJQskJEMAQbEdTrVu9lqisbSCc=; b=xclqFlj3a1pvYPsxy9AkSWAh7DLIpmec6QAkqLEC1Tj2Zn4Y2iurFamgFXw7Tv+G8L kE8mt6xQZhYywOxKvUYKDdcl8o9SCBiWYYDxaKVYyqvjVJ4nurwnpCD8ZHmELcfZCAQ0 2EVB/jQnM8rRGzmaFJY8HXkP6zBWOazYAi6Ka6zkfOiAG6unaaOwogeiTS7RG6n+g+jL wUYwhx3h6707z1am4zgwKdHu2CIeOIisGGjWudM1UekwbdrE/836hhhUCjG1hozHvrOB msVo25ib/UdZlyD2M/PHAfBVu4+0cWm2YVFFN6DqHByFlr19IytwwcwqaxvlSE9CBy8J cTmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=q8upA4G3; 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 p19si1057452otk.251.2020.01.29.04.17.56; Wed, 29 Jan 2020 04:18:20 -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=q8upA4G3; 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 S1726256AbgA2MRt (ORCPT + 99 others); Wed, 29 Jan 2020 07:17:49 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45344 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726756AbgA2MRt (ORCPT ); Wed, 29 Jan 2020 07:17:49 -0500 Received: by mail-wr1-f68.google.com with SMTP id a6so5323901wrx.12 for ; Wed, 29 Jan 2020 04:17:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=SZXM8L5hThf/lTMyWpJQskJEMAQbEdTrVu9lqisbSCc=; b=q8upA4G3t947aBupxQjnGeyADpdlcAYyMmYCbXk8sJDxWfPfD39nGUJHMSyTwD2DeU PvVoQBJJWbwVCA6mL2USfzOazu20Nrbscz8w8+HDGU4hSMkNAlMGxcyZgL6EjTW3NawT yKNWzkTecgQUBA6zrYTj9abr0fF1gN+bBw0P0aq84azCH5Yph7RklIKK7tg2SUW4waz1 UTp8mNXXj4n1pZLmfEYLWDcCmaZeWZPaXK1PtkkgIDhN5xHm4LC8t4YPFtDkzIca4IJ8 AZnP5s/OTANovJzlx+0CO4aWEjUen3TSsnP16YtLQqSmpmrziiosNxmHQj1v7KsXmzFI 9RXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=SZXM8L5hThf/lTMyWpJQskJEMAQbEdTrVu9lqisbSCc=; b=eGEOG8TdI7ysbSxux5O+v8xbicHR5p9VV9ZClInK5HA6LR4gCWJqqHSpc1N7zq1/OL PsZudyi9rLTpUQXeLZFVYee4h8OzAdM+mK23zD6YnF+E7qCwTOMWSodMRlptlkG6CqOU BdwMh2u8U+CTRcJlm4kQdE52XCznOb/8iTNdIbZlT030uAGlG9/Y9OrnebaR2y0WxjPF 8w3syuF7U0nl4noubR+9D9m69EECrLxE0e+yJ2Uw/N7aZAgEKTzknkBrQcCC9Y41noII UDbhnaFd8wLcrME3+AbGEG7emzYVYl5HWHeFCCnTAEoRNe2FP6FS2PABWPrZYCoKCKZ1 BEog== X-Gm-Message-State: APjAAAVWhUxSFbldsSrzhakzAFZeMLBhZ9mZ5HnzD8Sjl9UOdN8zFlQ4 xd83vE3OjYOiao5FN6uNSwVrxA== X-Received: by 2002:a5d:4d0e:: with SMTP id z14mr35415935wrt.208.1580300267243; Wed, 29 Jan 2020 04:17:47 -0800 (PST) Received: from rgajda2364 ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id t81sm2100272wmg.6.2020.01.29.04.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jan 2020 04:17:46 -0800 (PST) Date: Wed, 29 Jan 2020 13:17:44 +0100 From: Rafal Gajda To: Brian Gix Cc: linux-bluetooth@vger.kernel.org, inga.stotland@intel.com Subject: Re: [PATCH BlueZ v4 5/5] mesh: Add NVM storage of Replay Protection Message-ID: <20200129121744.zv3jnf6uejjpetud@rgajda2364> References: <20200129023258.10004-1-brian.gix@intel.com> <20200129023258.10004-6-brian.gix@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200129023258.10004-6-brian.gix@intel.com> User-Agent: NeoMutt/20180716 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Brian, I have a question about the way RPL is stored. On Tue, Jan 28, 2020 at 06:32:58PM -0800, Brian Gix wrote: > Mesh specification requires that Replay Protection be preserved > across node restarts. This adds that storage in > /rpl// Wouldn't it be more convinient to keep both iv_index and sequence in a file like this: /rpl/ ? You could store them in bytes instead of hex string and it would eliminate the need for cleaning entries from old IV_index. Regards, RafaƂ Gajda Silvair