Skip to content

Commit

Permalink
wolfcrypt/test/test.c: add missing PRIVATE_KEY_UNLOCK() for hpke_test().
Browse files Browse the repository at this point in the history
  • Loading branch information
douzzer committed Jul 19, 2024
1 parent 6952d1a commit 7652310
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wolfcrypt/test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -1767,10 +1767,12 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\
#endif

#if defined(HAVE_HPKE) && defined(HAVE_ECC) && defined(HAVE_AESGCM)
PRIVATE_KEY_UNLOCK();
if ( (ret = hpke_test()) != 0)
TEST_FAIL("HPKE test failed!\n", ret);
else
TEST_PASS("HPKE test passed!\n");
PRIVATE_KEY_LOCK();
#endif

#if defined(WC_SRTP_KDF)
Expand Down

0 comments on commit 7652310

Please sign in to comment.