Skip to content

Commit

Permalink
Bluetooth: Mesh: fix missed old encryption in dfu metadata
Browse files Browse the repository at this point in the history
PR fixes the old internal encryption api usage
for dfu metadata.

Signed-off-by: Aleksandr Khromykh <[email protected]>
  • Loading branch information
alxelax authored and carlescufi committed Jun 20, 2023
1 parent cd4bfc8 commit a13157f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/mesh/dfu_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int bt_mesh_dfu_metadata_comp_hash_get(struct net_buf_simple *buf, uint8_t *key,
int err;
struct bt_mesh_sg sg = {.data = buf->data, .len = buf->len};

err = bt_mesh_aes_cmac(key, &sg, 1, mac);
err = bt_mesh_aes_cmac_raw_key(key, &sg, 1, mac);
if (err) {
return err;
}
Expand Down

0 comments on commit a13157f

Please sign in to comment.