From 985f6e6935357b13a43b6c30f0f1e99786b185b0 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 31 Aug 2014 14:21:24 +0200 Subject: 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 --- utils/imxtools/sbtools/aes128.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils') 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); } } -- cgit v1.2.3