Skip to content
Commit 7566edaf authored by Dominik Ermel's avatar Dominik Ermel Committed by Jamie McCrae
Browse files

boot: Move encryption context invalidation to boot_enc_drop.



The enc_key_data.valid had been set to true when key has been added
to the encryption context, but in case when boot_enc_drop was called,
on the same context, the flag remained true, even though the context
may no longer hold any valid context nor key.
The commit moves the enc_key_data invalidation to enc_key_drop.

Signed-off-by: default avatarDominik Ermel <dominik.ermel@nordicsemi.no>
(cherry picked from commit 33557352)
parent 86b1ef19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment