Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The wolfHSM benchmarks provide a framework for testing and measuring the perform
- Hash functions (SHA-2, SHA-3)
- Message Authentication Codes (HMAC, CMAC)
- Public Key Cryptography (RSA, ECC, Curve25519)
- Post-Quantum Cryptography (ML-DSA)
- Post-Quantum Cryptography (ML-DSA, ML-KEM)
- Basic communication (Echo)

The benchmark system measures the runtime of registered operations, as well as reports the throughput in either operations per second or bytes per second depending on the algorithm.
Expand Down
45 changes: 45 additions & 0 deletions benchmark/bench_modules/wh_bench_mod_all.h
Original file line number Diff line number Diff line change
Expand Up @@ -379,4 +379,49 @@ int wh_Bench_Mod_MlDsa87KeyGen(whClientContext* client, whBenchOpContext* ctx,
int wh_Bench_Mod_MlDsa87KeyGenDma(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);

/*
* ML-KEM benchmark module prototypes (wh_bench_mod_mlkem.c)
*/
int wh_Bench_Mod_MlKem512KeyGen(whClientContext* client, whBenchOpContext* ctx,
int id, void* params);
int wh_Bench_Mod_MlKem512KeyGenDma(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);
int wh_Bench_Mod_MlKem512Encaps(whClientContext* client, whBenchOpContext* ctx,
int id, void* params);
int wh_Bench_Mod_MlKem512EncapsDma(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);
int wh_Bench_Mod_MlKem512Decaps(whClientContext* client, whBenchOpContext* ctx,
int id, void* params);
int wh_Bench_Mod_MlKem512DecapsDma(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);

int wh_Bench_Mod_MlKem768KeyGen(whClientContext* client, whBenchOpContext* ctx,
int id, void* params);
int wh_Bench_Mod_MlKem768KeyGenDma(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);
int wh_Bench_Mod_MlKem768Encaps(whClientContext* client, whBenchOpContext* ctx,
int id, void* params);
int wh_Bench_Mod_MlKem768EncapsDma(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);
int wh_Bench_Mod_MlKem768Decaps(whClientContext* client, whBenchOpContext* ctx,
int id, void* params);
int wh_Bench_Mod_MlKem768DecapsDma(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);

int wh_Bench_Mod_MlKem1024KeyGen(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);
int wh_Bench_Mod_MlKem1024KeyGenDma(whClientContext* client,
whBenchOpContext* ctx, int id,
void* params);
int wh_Bench_Mod_MlKem1024Encaps(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);
int wh_Bench_Mod_MlKem1024EncapsDma(whClientContext* client,
whBenchOpContext* ctx, int id,
void* params);
int wh_Bench_Mod_MlKem1024Decaps(whClientContext* client,
whBenchOpContext* ctx, int id, void* params);
int wh_Bench_Mod_MlKem1024DecapsDma(whClientContext* client,
whBenchOpContext* ctx, int id,
void* params);

#endif /* WH_BENCH_MOD_ALL_H_ */
Loading