Commit: 3a427d1ab094516371e116c2c85ecba5e92de611
Parent: 64c2b5a7b5ab21d75a469f8f7ca81bf2a4ed1e15
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2019-02-06 13:12:00
Tree: e11306523ab25b7244bc61ec358fd051bf08f6de

shared/gatt-db: Generate database hash This use bt_crypto_hash (AES-CMAC) to generate a database hash using the content of the attribute: In ascending order of attribute handles, starting with the first handle, concatenate the fields Attribute Handle, Attribute Type, and Attribute Value if the attribute has one of the following types: «Primary Service», «Secondary Service», «Included Service», «Characteristic», or «Characteristic Extended Properties», concatenate the fields Attribute Handle and Attribute Type if the attribute has one of the following types: «Characteristic User Description», «Client Characteristic Configuration», «Server Characteristic Configuration», «Characteristic Format», or «Characteristic Aggregate Format», and ignore the attribute if it has any other type (such attributes are not part of the concatenation).

Diffstat

M src/shared/gatt-db.c | 68 ++++++++++++++++++++++++++++++++++++++++- -

1 files changed, 66 insertions(+), 2 deletions(-)

View Full Diff | Patch