From 4d9150b28b7eeb0aa96dd44ab10a0e4afc99eb96 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 27 Apr 2021 19:08:15 +0200 Subject: [PATCH] mesh: Fix network_id parameter declaration --- mesh/crypto.h | 2 +- tools/mesh-gatt/crypto.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh/crypto.h b/mesh/crypto.h index 2f31dc3de..c31abbbbd 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 f1cb7af26..7ae5f49e8 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, -- 2.47.3