Commit 268ace0f authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Zero AES key when marking invalid

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 6ace9ee9
Loading
Loading
Loading
Loading
+1 −0
Changes for boot/bootutil/src/encrypted.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -326,6 +326,7 @@ boot_enc_mark_keys_invalid(struct enc_key_data *enc_state)
    size_t slot;

    for (slot = 0; slot < BOOT_NUM_SLOTS; ++slot) {
        memset(&enc_state[slot].aes, 0, sizeof(enc_state[slot].aes));
        enc_state[slot].valid = 0;
    }
}