mesh: Fix network_id parameter declaration
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 27 Apr 2021 17:08:15 +0000 (19:08 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:35 +0000 (19:08 +0530)
Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
mesh/crypto.h
tools/mesh-gatt/crypto.h

index 2f31dc3..c31abbb 100644 (file)
@@ -30,7 +30,7 @@ bool mesh_crypto_nkpk(const uint8_t network_key[16], uint8_t proxy_key[16]);
 bool mesh_crypto_identity(const uint8_t net_key[16], uint16_t addr,
                                                        uint8_t id[16]);
 bool mesh_crypto_beacon_cmac(const uint8_t encryption_key[16],
-                               const uint8_t network_id[16],
+                               const uint8_t network_id[8],
                                uint32_t iv_index, bool kr,
                                bool iu, uint64_t *cmac);
 bool mesh_crypto_device_key(const uint8_t secret[32],
index f1cb7af..7ae5f49 100644 (file)
@@ -28,7 +28,7 @@ bool mesh_crypto_identity(const uint8_t net_key[16], uint16_t addr,
 bool mesh_crypto_identity_check(const uint8_t net_key[16], uint16_t addr,
                                                        uint8_t id[16]);
 bool mesh_crypto_beacon_cmac(const uint8_t encryption_key[16],
-                               const uint8_t network_id[16],
+                               const uint8_t network_id[8],
                                uint32_t iv_index, bool kr, bool iu,
                                uint64_t *cmac);
 bool mesh_crypto_network_nonce(bool frnd, uint8_t ttl, uint32_t seq,