summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-08-31 14:21:24 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-01 19:52:00 +0100
commit985f6e6935357b13a43b6c30f0f1e99786b185b0 (patch)
treeff93334c3c71754eacedc7b67582ed8aa98c79c3 /utils
parentb772782ce5fccdd4c392b0222e8fe17b98f06da2 (diff)
downloadrockbox-985f6e6935357b13a43b6c30f0f1e99786b185b0.tar.gz
rockbox-985f6e6935357b13a43b6c30f0f1e99786b185b0.tar.bz2
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.c2
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(
/* copy cipher to iv */
memcpy(feedback, &in_data[i * 16], 16);
}
+ if(out_cbc_mac)
+ memcpy(out_cbc_mac, feedback, 16);
}
}