diff options
author | Brian Gix <brian.gix@intel.com> | 2019-02-20 15:21:42 -0800 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2019-02-21 16:21:30 -0800 |
commit | 9e6da22ed88f3eceef3862aaae79f9aaa20d3bea (patch) | |
tree | ba2d41fc5f549782ff7a79fa60e6d3e2dfee7690 /mesh/net-keys.h | |
parent | d705d726c66479de136db0945f7077b59fe4e2af (diff) | |
download | bluez-9e6da22ed88f3eceef3862aaae79f9aaa20d3bea.tar.gz |
mesh: Fix for file naming convention
Diffstat (limited to 'mesh/net-keys.h')
-rw-r--r-- | mesh/net-keys.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mesh/net-keys.h b/mesh/net-keys.h new file mode 100644 index 000000000..c752d3991 --- /dev/null +++ b/mesh/net-keys.h @@ -0,0 +1,33 @@ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2018 Intel Corporation. All rights reserved. + * + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + */ + +bool net_key_confirm(uint32_t id, const uint8_t master[16]); +bool net_key_retrieve(uint32_t id, uint8_t *master); +uint32_t net_key_add(const uint8_t master[16]); +uint32_t net_key_frnd_add(uint32_t master_id, uint16_t lpn, uint16_t frnd, + uint16_t lp_cnt, uint16_t fn_cnt); +void net_key_unref(uint32_t id); +uint32_t net_key_decrypt(uint32_t iv_index, const uint8_t *pkt, size_t len, + uint8_t **plain, size_t *plain_len); +bool net_key_encrypt(uint32_t id, uint32_t iv_index, uint8_t *pkt, size_t len); +uint32_t net_key_network_id(const uint8_t network[8]); +bool net_key_snb_check(uint32_t id, uint32_t iv_index, bool kr, bool ivu, + uint64_t cmac); +bool net_key_snb_compose(uint32_t id, uint32_t iv_index, bool kr, bool ivu, + uint8_t *snb); |