mirror of https://github.com/wolfSSL/wolfBoot.git
parent
35142e6945
commit
04cc957d6f
|
|
@ -1202,6 +1202,8 @@ static int RAMFUNCTION wolfBoot_update(int fallback_allowed)
|
|||
/* Save the encryption key after swapping */
|
||||
#ifdef EXT_ENCRYPTED
|
||||
wolfBoot_set_encrypt_key(key, nonce);
|
||||
wolfBoot_zeroize(key, sizeof(key));
|
||||
wolfBoot_zeroize(nonce, sizeof(nonce));
|
||||
#endif
|
||||
#endif /* DISABLE_BACKUP */
|
||||
#ifdef EXT_ENCRYPTED
|
||||
|
|
|
|||
Loading…
Reference in New Issue