mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 13:38:12 +00:00
fix(core): fix order of loading BHK into SAES key register
[no changelog]
This commit is contained in:
parent
1e3e7f808b
commit
047c8a881b
@ -40,14 +40,14 @@ secbool secure_aes_init(void) {
|
||||
}
|
||||
|
||||
static void secure_aes_load_bhk(void) {
|
||||
TAMP->BKP7R;
|
||||
TAMP->BKP6R;
|
||||
TAMP->BKP5R;
|
||||
TAMP->BKP4R;
|
||||
TAMP->BKP3R;
|
||||
TAMP->BKP2R;
|
||||
TAMP->BKP1R;
|
||||
TAMP->BKP0R;
|
||||
TAMP->BKP1R;
|
||||
TAMP->BKP2R;
|
||||
TAMP->BKP3R;
|
||||
TAMP->BKP4R;
|
||||
TAMP->BKP5R;
|
||||
TAMP->BKP6R;
|
||||
TAMP->BKP7R;
|
||||
}
|
||||
|
||||
secbool secure_aes_encrypt(uint32_t* input, size_t size, uint32_t* output) {
|
||||
|
Loading…
Reference in New Issue
Block a user