Skip to content

Commit

Permalink
#if out the libaegis bits
Browse files Browse the repository at this point in the history
Summary: These require `FIZZ_HAVE_LIBAEGIS`, so add the proper `#if` check.

Differential Revision: D67988932

fbshipit-source-id: 16c50aaa192cc0c8d296c13d358dddea3aa2b25c
  • Loading branch information
mzlee authored and facebook-github-bot committed Jan 10, 2025
1 parent 4912cb0 commit 5cf9ce5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fizz/record/test/EncryptedRecordBench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ BENCHMARK_NAMED_PARAM(encryptOCB, 4000, 4000);
BENCHMARK_NAMED_PARAM(encryptOCB, 8000, 8000);
#endif

#if FIZZ_HAVE_LIBAEGIS
void encryptAEGIS(uint32_t n, size_t size) {
std::unique_ptr<Aead> aead;
std::vector<fizz::TLSMessage> msgs;
Expand Down Expand Up @@ -297,6 +298,7 @@ BENCHMARK_PARAM(encryptAEGIS, 8000);
BENCHMARK_PARAM(decryptAEGIS, 10);
BENCHMARK_PARAM(decryptAEGIS, 1000);
BENCHMARK_PARAM(decryptAEGIS, 8000);
#endif

BENCHMARK_NAMED_PARAM(
encryptGCM,
Expand Down

0 comments on commit 5cf9ce5

Please sign in to comment.