diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-08-31 14:21:24 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2017-01-01 19:52:00 +0100 |
commit | 985f6e6935357b13a43b6c30f0f1e99786b185b0 (patch) | |
tree | ff93334c3c71754eacedc7b67582ed8aa98c79c3 /utils | |
parent | b772782ce5fccdd4c392b0222e8fe17b98f06da2 (diff) | |
download | rockbox-985f6e6935357b13a43b6c30f0f1e99786b185b0.tar.gz rockbox-985f6e6935357b13a43b6c30f0f1e99786b185b0.zip |
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/imxtools/sbtools/aes128.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/aes128.c b/utils/imxtools/sbtools/aes128.c index 5870813db8..af3d48761c 100644 --- a/utils/imxtools/sbtools/aes128.c +++ b/utils/imxtools/sbtools/aes128.c | |||
@@ -280,5 +280,7 @@ void cbc_mac( | |||
280 | /* copy cipher to iv */ | 280 | /* copy cipher to iv */ |
281 | memcpy(feedback, &in_data[i * 16], 16); | 281 | memcpy(feedback, &in_data[i * 16], 16); |
282 | } | 282 | } |
283 | if(out_cbc_mac) | ||
284 | memcpy(out_cbc_mac, feedback, 16); | ||
283 | } | 285 | } |
284 | } | 286 | } |