Re: [PATCH v2 7/8] crypto: stm32/cryp - fix bugs and crash in tests
From: Nicolas Toromanoff <hidden>
Date: 2021-11-16 15:21:08
Also in:
linux-crypto, lkml
From: Nicolas Toromanoff <hidden>
Date: 2021-11-16 15:21:08
Also in:
linux-crypto, lkml
Hello,
+static void stm32_cryp_write_ccm_first_header(struct stm32_cryp *cryp)
+{
[...]
+ } else {
+ /* Build the two first u32 of B1 */
+ b8[0] = 0xFF;
+ b8[1] = 0xFE;
+ b8[2] = alen & 0xFF000000 >> 24;
+ b8[3] = alen & 0x00FF0000 >> 16;
+ b8[4] = alen & 0x0000FF00 >> 8;Smatch found a bug here: "warn: shift has higher precedence than mask" Regards, Nicolas. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel