Skip to content

Commit

Permalink
Check if PQ enabled in kyber availability test
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Mar 6, 2023
1 parent b33894c commit 4be5511
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/s2n_pq_kem_kyber_available_awslc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
int main()
{
BEGIN_TEST();
if (s2n_libcrypto_is_awslc()) {
if (s2n_libcrypto_is_awslc() && s2n_pq_is_enabled()) {
EXPECT_TRUE(s2n_libcrypto_supports_kyber_512());
} else {
EXPECT_FALSE(s2n_libcrypto_supports_kyber_512());
}
END_TEST();
}

0 comments on commit 4be5511

Please sign in to comment.