Skip to content
Commit c02ec1f6 authored by Aleksandr Khromykh's avatar Aleksandr Khromykh Committed by Chris Friedt
Browse files

bluetooth: mesh: remove persisted psa key if mesh does not own it



Commit adds destruction of the persisted in PSA ITS key if
mesh does not own it (zero bit in the bitmap of persisted keys).

This is not standard mesh behavior, but might happen
if something happens between removing key data in mesh and
in the crypto library (for example power off in bettwen).

Previously, mesh wasn't able to import key with gotten stuck
key id. The current fix reproduces more robust behavior.

Signed-off-by: default avatarAleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
parent 8c03410a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment