From 102111e2c71bc810836dcb5a034ab242f2d24886 Mon Sep 17 00:00:00 2001 From: night1rider Date: Sat, 8 Aug 2026 13:51:07 -0600 Subject: [PATCH] Give the key wrap tests unused device IDs and fix the comment --- tests/api/test_aes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/api/test_aes.c b/tests/api/test_aes.c index c5850c828e..92992f8b8a 100644 --- a/tests/api/test_aes.c +++ b/tests/api/test_aes.c @@ -10868,9 +10868,9 @@ int test_wc_AesSivEncryptDecrypt(void) #include -/* Test CryptoCB device IDs (must be unique across test_aes.c); 7/8/9 are used - * by the SetKey/AES-GCM/TLS13 tests above. */ -#define TEST_CRYPTOCB_KEYWRAP_DEVID 10 +/* Test CryptoCB device IDs must be unique across test_aes.c. Taken below: + * 7 SetKey, 8 AES-GCM, 9 TLS13, 10 AES-CFB, 11 AES-OFB. */ +#define TEST_CRYPTOCB_KEYWRAP_DEVID 13 static int cbKwWrapCalled = 0; static int cbKwUnwrapCalled = 0; @@ -11039,7 +11039,7 @@ int test_wc_CryptoCb_AesKeyWrap(void) * dispatches and declines them so the real work falls back to software - proving * key wrap routes its blocks through the ECB callback even when the device has * no key wrap support. (Needs a software AES fallback, so not for CB_ONLY_AES.) */ -#define TEST_CRYPTOCB_KEYWRAP_ECB_DEVID 11 +#define TEST_CRYPTOCB_KEYWRAP_ECB_DEVID 14 static int cbKwEcbEncCalled = 0; static int cbKwEcbDecCalled = 0;