Commit Graph

8 Commits

Author SHA1 Message Date
Michał Lowas-Rzechonek
59aae8b1cc mesh: Remove redundant code from mesh/crypto
- 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
2020-04-07 09:52:44 -07:00
Brian Gix
f62350b702 mesh: test AEAD at startup to check kernel support
One time test at startup to ensure either kernel version v4.9 or later,
*or* that required AES-CCM support has been back-ported. If support not
there, daemon will run without providing D-Bus service or attaching to
controllers (prevents systemd thrashing).
2019-09-01 08:34:00 -07:00
Brian Gix
8f0839a1c4 mesh: Normalize Access Key AID naming convention 2019-07-18 09:49:21 -07:00
Brian Gix
2e46771050 mesh: Convert provisioning pkts to packed structs
Provisioning packets are defined in the specification
as packed big endian structures. Instead of specifying
an octet array, we now use struct matching the spec.
2019-07-14 08:32:18 -07:00
Brian Gix
603743a6ef mesh: Shared private meshd interfaces 2018-08-20 12:48:14 -07:00
Inga Stotland
ef05f4957d tools: Move meshctl sources under tools/mesh directory
This is a temporary location until the unified mesh solution is provided
2018-07-06 13:03:33 +02:00
Marcel Holtmann
de6c9e2cf0 mesh: Remove circular include protection guards 2017-08-21 18:43:31 +02:00
Brian Gix
846af2a229 mesh: define APIs for Bluetooth Mesh 2017-08-21 12:40:35 +02:00