Diff between 957e79ac4de7ce5b45dd4ecd516190102e354760 and 4d9150b28b7eeb0aa96dd44ab10a0e4afc99eb96

Changed Files

File Additions Deletions Status
mesh/crypto.h +1 -1 modified
tools/mesh-gatt/crypto.h +1 -1 modified

Full Patch

diff --git a/mesh/crypto.h b/mesh/crypto.h
index 2f31dc3..c31abbb 100644
--- a/mesh/crypto.h
+++ b/mesh/crypto.h
@@ -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],
diff --git a/tools/mesh-gatt/crypto.h b/tools/mesh-gatt/crypto.h
index f1cb7af..7ae5f49 100644
--- a/tools/mesh-gatt/crypto.h
+++ b/tools/mesh-gatt/crypto.h
@@ -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,