Skip to content

Commit 33708db

Browse files
committed
addressed code review
1 parent aab15fe commit 33708db

File tree

11 files changed

+13
-53
lines changed

11 files changed

+13
-53
lines changed

benchmark/bench_modules/wh_bench_mod_aes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,4 +831,4 @@ int wh_Bench_Mod_Aes256GCMDecryptDma(whClientContext* client,
831831

832832
#endif /* !defined(NO_AES) */
833833

834-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
834+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

benchmark/bench_modules/wh_bench_mod_cmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,4 @@ int wh_Bench_Mod_CmacAes256Dma(whClientContext* client, whBenchOpContext* ctx,
183183

184184
#endif /* WOLFSSL_CMAC && !defined(NO_AES) && defined(WOLFSSL_AES_DIRECT) */
185185

186-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
186+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

benchmark/bench_modules/wh_bench_mod_curve25519.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,4 +252,4 @@ int wh_Bench_Mod_Curve25519SharedSecret(whClientContext* client,
252252

253253
#endif /* HAVE_CURVE25519 */
254254

255-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
255+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

benchmark/bench_modules/wh_bench_mod_ecc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,4 +567,4 @@ int wh_Bench_Mod_EccP256Ecdh(whClientContext* client, whBenchOpContext* ctx,
567567

568568
#endif /* HAVE_ECC */
569569

570-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
570+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

benchmark/bench_modules/wh_bench_mod_hmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,4 @@ int wh_Bench_Mod_HmacSha3256Dma(whClientContext* client, whBenchOpContext* ctx,
175175

176176
#endif /* !defined(NO_HMAC) */
177177

178-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
178+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

benchmark/bench_modules/wh_bench_mod_mldsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,4 +1193,4 @@ int wh_Bench_Mod_MlDsa87KeyGenDma(whClientContext* client,
11931193

11941194
#endif /* HAVE_DILITHIUM */
11951195

1196-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
1196+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

benchmark/bench_modules/wh_bench_mod_rng.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ int wh_Bench_Mod_Rng(whClientContext* client, whBenchOpContext* ctx, int id,
9494

9595
#endif /* !defined(WC_NO_RNG) */
9696

97-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
97+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

benchmark/bench_modules/wh_bench_mod_rsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,4 +1115,4 @@ int wh_Bench_Mod_Rsa4096KeyGenDma(whClientContext* client,
11151115

11161116
#endif /* !(NO_RSA) */
11171117

1118-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
1118+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

benchmark/bench_modules/wh_bench_mod_sha2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,4 +549,4 @@ int wh_Bench_Mod_Sha512Dma(whClientContext* client, whBenchOpContext* ctx,
549549

550550
#endif /* WOLFSSL_SHA512 */
551551

552-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
552+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

benchmark/bench_modules/wh_bench_mod_sha3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ int wh_Bench_Mod_Sha3256Dma(whClientContext* client, whBenchOpContext* ctx,
4545

4646
#endif /* WOLFSSL_SHA3 */
4747

48-
#endif /* WOLFHSM_CFG_BENCH_ENABLE */
48+
#endif /* !WOLFHSM_CFG_NO_CRYPTO && WOLFHSM_CFG_BENCH_ENABLE */

0 commit comments

Comments
 (0)