From cb6248031329e3e7a66396e19075674ecc927e66 Mon Sep 17 00:00:00 2001 From: Paul Adelsbach Date: Thu, 5 Mar 2026 13:31:38 -0800 Subject: [PATCH] Fix for nightly scripts compile issue --- test/test_cmac.c | 4 ---- test/test_gmac.c | 11 ++++------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/test/test_cmac.c b/test/test_cmac.c index 446267f0..f4ab49ed 100644 --- a/test/test_cmac.c +++ b/test/test_cmac.c @@ -22,9 +22,6 @@ #include #include "unit.h" -#undef AES_BLOCK_SIZE -#include -#include #ifdef WP_HAVE_CMAC @@ -262,4 +259,3 @@ int test_cmac_create(void *data) #endif /* WP_HAVE_CMAC */ - diff --git a/test/test_gmac.c b/test/test_gmac.c index 0b96cc99..fc023571 100644 --- a/test/test_gmac.c +++ b/test/test_gmac.c @@ -22,9 +22,6 @@ #include #include "unit.h" -#undef AES_BLOCK_SIZE -#include -#include #ifdef WP_HAVE_GMAC @@ -195,10 +192,10 @@ int test_gmac_dup(void *data) (void)data; /* Build full messages used for one-shot expected MAC calculations. */ - XMEMCPY(msgA, prefix, sizeof(prefix)); - XMEMCPY(msgA + sizeof(prefix), tailA, sizeof(tailA)); - XMEMCPY(msgB, prefix, sizeof(prefix)); - XMEMCPY(msgB + sizeof(prefix), tailB, sizeof(tailB)); + memcpy(msgA, prefix, sizeof(prefix)); + memcpy(msgA + sizeof(prefix), tailA, sizeof(tailA)); + memcpy(msgB, prefix, sizeof(prefix)); + memcpy(msgB + sizeof(prefix), tailB, sizeof(tailB)); /* Compute expected MACs for each post-duplication branch. */ ret = test_gmac_gen_mac(wpLibCtx, cipher, iv, (int)sizeof(iv), key,