From 1aac3d7e57bdd6ac89a88fdd03c8d27c14b4145c Mon Sep 17 00:00:00 2001 From: Nathan Hartman <59230071+hartmannathan@users.noreply.github.com> Date: Fri, 13 Nov 2020 16:32:59 -0500 Subject: [PATCH] stm32/stm32_aes.c: Fix nxstyle errors arch/arm/src/stm32/stm32_aes.c: * Fix nxstyle errors. --- arch/arm/src/stm32/stm32_aes.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/stm32/stm32_aes.c b/arch/arm/src/stm32/stm32_aes.c index 70a258afaf5..cd4377a7720 100644 --- a/arch/arm/src/stm32/stm32_aes.c +++ b/arch/arm/src/stm32/stm32_aes.c @@ -152,7 +152,8 @@ static void stm32aes_setiv(FAR const void *iv) putreg32(__builtin_bswap32(*in), STM32_AES_IVR0); } -static void stm32aes_encryptblock(FAR void *block_out, FAR const void *block_in) +static void stm32aes_encryptblock(FAR void *block_out, + FAR const void *block_in) { FAR uint32_t *in = (FAR uint32_t *)block_in; FAR uint32_t *out = (FAR uint32_t *)block_out; @@ -292,7 +293,7 @@ int aes_cypher(FAR void *out, FAR const void *in, uint32_t size, g_stm32aes_initdone = true; } - if ((size & (AES_BLOCK_SIZE-1)) != 0) + if ((size & (AES_BLOCK_SIZE - 1)) != 0) { return -EINVAL; }