summaryrefslogtreecommitdiff
path: root/mesh/net-keys.c
Commit message (Collapse)AuthorAgeFilesLines
* mesh: Add internal Mesh Private Beacon modelBrian Gix2023-01-301-0/+5
| | | | | Adds recgnition that the Mesh Private Beacon model is internal and foundational, without bindings.
* mesh: Add Tx/Rx support of Mesh Private BeaconsBrian Gix2023-01-301-115/+386
| | | | | | | With this change, we start evaluating received Mesh Private Beacons in addition to the legacy Secure Network Beacons. We also add the ability to request Tx of Mesh Private Beacons, which are regenerated with new Random Nonce a minimum of every 0 - 2550 seconds.
* mesh: Inclusive language changesArchie Pusaka2021-09-211-19/+19
| | | | | | | | According to https://specificationrefs.bluetooth.com/language-mapping/Appropriate_Language_Mapping_Table.pdf "flooding", "accept list", and "reject list" are the preferred terms. Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
* mesh: Fix net_key_confirm parameter declarationMarcel Holtmann2021-04-271-1/+1
|
* mesh: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 48 License: LGPL-2.1-or-later mesh/mesh-mgmt.h mesh/mesh-mgmt.c mesh/net-keys.c mesh/mesh-io-api.h mesh/mesh.h mesh/net-keys.h mesh/model.h mesh/util.h mesh/appkey.c mesh/cfgmod.h mesh/appkey.h mesh/prov.h mesh/prov-acceptor.c mesh/net.c mesh/dbus.h mesh/friend.h mesh/mesh-io-generic.c mesh/main.c mesh/util.c mesh/dbus.c mesh/error.h mesh/mesh-config-json.c mesh/agent.h mesh/pb-adv.c mesh/crypto.c mesh/crypto.h mesh/friend.c mesh/pb-adv.h mesh/provision.h mesh/mesh-config.h mesh/mesh-io-generic.h mesh/agent.c mesh/cfgmod-server.c mesh/mesh-io.h mesh/keyring.h mesh/net.h mesh/keyring.c mesh/mesh-defs.h mesh/mesh.c mesh/rpl.c mesh/manager.c mesh/model.c mesh/mesh-io.c mesh/node.c mesh/prov-initiator.c mesh/rpl.h mesh/node.h mesh/manager.h
* mesh: Fix valgrind memory leak warningsBrian Gix2020-05-151-0/+6
| | | | | These warnings are caused by not completely freeing memory allocations at shutdown, and are not serious, but they make valgrind output cleaner.
* mesh: Remove redundant code from mesh/cryptoMichał Lowas-Rzechonek2020-04-071-1/+1
| | | | | | | | | | - Remove application_encrypt/application_decrypt - Make mesh_crypto_privacy_counter private, add mesh_crypto_pecb - Make *_nonce functions private and align their implementation to be more consistent - Refactor network_encrypt/network_decrypt to use *_nonce functions and rename them to packet_encrypt/packet_decrypt - Refactor packet_encode/packet_decode
* mesh: Recognize SNBs in SecondsSinceLastHeardBrian Gix2019-12-241-3/+13
| | | | | Timestamp is taken on each OTA beacon reception, and considered in the SecondsSinceLastHeard property.
* mesh: Deliver newly composed SNBs to local nodesBrian Gix2019-12-241-0/+3
|
* mesh: Refactor Secure Network BeaconingBrian Gix2019-12-161-7/+197
| | | | | | | | | | | The daemon handles multiple nodes, that may or may not be on the same mesh network. While each node my be seperately configured to beacon or not beacon, there is nothing gained (except redundent traffic) for each node to beacon seperately. Beaconing is therefore centralized with the Network Key the SNB represents, with each *received* beacon delivered to each node. But for SNBs generated, we keep a count of how many nodes want beacons sent for a specific key. If 1 or more, we beacon, if 0 nodes want the beacon sent, then we do not beacon.
* mesh: Fixed handling of IVI flag in app layerMichał Lowas-Rzechonek2019-06-271-6/+0
| | | | | | | | | Since IV Index is used in application nonces, we need to honor IVI flag not only in network layer crypto, but also in application layer. This means that if IVI field of incoming packet is different than in current IV Index, try to decode *both* net and app layers using IV Index decreased by one.
* mesh: Remove unnecessary includes from .c filesInga Stotland2019-05-171-1/+0
|
* mesh: Update copyright datesInga Stotland2019-05-171-1/+1
|
* mesh: Fix decryption when on more than one NetworkBrian Gix2019-04-161-4/+7
| | | | | Multiple networks use different IV Index's, so we should only use decryption cache after successful decoding.
* mesh: Fix for file naming conventionBrian Gix2019-02-211-0/+326