Skip to content

Commit cb62480

Browse files
committed
Fix for nightly scripts compile issue
1 parent 65fa70f commit cb62480

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

test/test_cmac.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
#include <openssl/core_names.h>
2323

2424
#include "unit.h"
25-
#undef AES_BLOCK_SIZE
26-
#include <wolfssl/options.h>
27-
#include <wolfssl/wolfcrypt/cmac.h>
2825

2926
#ifdef WP_HAVE_CMAC
3027

@@ -262,4 +259,3 @@ int test_cmac_create(void *data)
262259

263260
#endif /* WP_HAVE_CMAC */
264261

265-

test/test_gmac.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
#include <openssl/core_names.h>
2323

2424
#include "unit.h"
25-
#undef AES_BLOCK_SIZE
26-
#include <wolfssl/options.h>
27-
#include <wolfssl/wolfcrypt/aes.h>
2825

2926
#ifdef WP_HAVE_GMAC
3027

@@ -195,10 +192,10 @@ int test_gmac_dup(void *data)
195192
(void)data;
196193

197194
/* Build full messages used for one-shot expected MAC calculations. */
198-
XMEMCPY(msgA, prefix, sizeof(prefix));
199-
XMEMCPY(msgA + sizeof(prefix), tailA, sizeof(tailA));
200-
XMEMCPY(msgB, prefix, sizeof(prefix));
201-
XMEMCPY(msgB + sizeof(prefix), tailB, sizeof(tailB));
195+
memcpy(msgA, prefix, sizeof(prefix));
196+
memcpy(msgA + sizeof(prefix), tailA, sizeof(tailA));
197+
memcpy(msgB, prefix, sizeof(prefix));
198+
memcpy(msgB + sizeof(prefix), tailB, sizeof(tailB));
202199

203200
/* Compute expected MACs for each post-duplication branch. */
204201
ret = test_gmac_gen_mac(wpLibCtx, cipher, iv, (int)sizeof(iv), key,

0 commit comments

Comments
 (0)