forked from len0rd/rockbox
imxtools: fix bug aes128 (did not update cbc-macp)
Although this does bug is never triggered because we never decrypt and use the resulting CBC-MAC, it's a major overlook. Change-Id: I3c5d318e6428d528483bf888ea284e9ded3889f0
This commit is contained in:
parent
b772782ce5
commit
985f6e6935
1 changed files with 2 additions and 0 deletions
|
@ -280,5 +280,7 @@ void cbc_mac(
|
|||
/* copy cipher to iv */
|
||||
memcpy(feedback, &in_data[i * 16], 16);
|
||||
}
|
||||
if(out_cbc_mac)
|
||||
memcpy(out_cbc_mac, feedback, 16);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue