sept: add vector check to key derivation

This commit is contained in:
Michael Scire
2019-06-19 12:22:37 -07:00
parent c077c75b8d
commit 938da08e14
3 changed files with 25 additions and 2 deletions

View File

@@ -23,9 +23,11 @@
__attribute__ ((noreturn)) void generic_panic(void) {
/* Clear keyslots. */
clear_aes_keyslot(0xD);
clear_aes_keyslot(0xE);
for (size_t i = 0; i < 0x10; i++) {
clear_aes_keyslot(i);
}
clear_aes_keyslot(0xD);
clear_aes_keyslot(0xE);
while(1) { /* ... */ }
}