From e3267d1db7ffb1759d6fd73515155d9685db7e36 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 15 Jan 2026 17:40:52 +0200 Subject: [PATCH] bdk: se: correct result for < block size aes --- bdk/sec/se.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bdk/sec/se.c b/bdk/sec/se.c index 694e8f05..f73b3a8c 100644 --- a/bdk/sec/se.c +++ b/bdk/sec/se.c @@ -181,7 +181,7 @@ static int _se_execute_aes_oneshot(void *dst, const void *src, u32 size) u32 size_aligned = ALIGN_DOWN(size, SE_AES_BLOCK_SIZE); u32 size_residue = size % SE_AES_BLOCK_SIZE; - int res = 0; + int res = 1; // Handle initial aligned message. if (size_aligned)