Skip to content

Commit 6fba3b4

Browse files
committed
Fixed unit tests
1 parent 18cbea5 commit 6fba3b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/libwolfboot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ int wolfBoot_fallback_is_possible(void)
13941394
static uint8_t ENCRYPT_KEY[ENCRYPT_KEY_SIZE + ENCRYPT_NONCE_SIZE];
13951395
#endif
13961396

1397-
#if defined(EXT_ENCRYPTED) && defined(__WOLFBOOT)
1397+
#if defined(EXT_ENCRYPTED) && (defined(__WOLFBOOT) || defined(UNIT_TEST))
13981398
int RAMFUNCTION wolfBoot_enable_fallback_iv(int enable)
13991399
{
14001400
int prev = 0;
@@ -1425,7 +1425,7 @@ void RAMFUNCTION wolfBoot_crypto_set_iv(const uint8_t *nonce, uint32_t iv_counte
14251425
/* Fallback IV offset is single-use; clear it once applied. */
14261426
encrypt_iv_offset = 0;
14271427
}
1428-
#endif /* EXT_ENCRYPTED && __WOLFBOOT */
1428+
#endif /* EXT_ENCRYPTED && (__WOLFBOOT || UNIT_TEST) */
14291429

14301430
static int RAMFUNCTION hal_set_key(const uint8_t *k, const uint8_t *nonce)
14311431
{

0 commit comments

Comments
 (0)