Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add benchmarking for stateful hash based schemes: speed_sig_stfl #1952

Merged
merged 11 commits into from
Oct 22, 2024
Merged
Prev Previous commit
Next Next commit
tests/speed_sig_stfl.c: astyle fix
Signed-off-by: cr-marcstevens <github@marc-stevens.nl>
  • Loading branch information
cr-marcstevens committed Oct 16, 2024
commit f9dd42b5f9a61f0fe06ffc031799c2084b6e7777
7 changes: 3 additions & 4 deletions tests/speed_sig_stfl.c
Original file line number Diff line number Diff line change
@@ -17,8 +17,7 @@
#include "ds_benchmark.h"
#include "system_info.c"

OQS_STATUS dummy_secure_storage(uint8_t *sk_buf, size_t sk_buf_len, void *context)
{
OQS_STATUS dummy_secure_storage(uint8_t *sk_buf, size_t sk_buf_len, void *context) {
return OQS_SUCCESS;
}

@@ -77,8 +76,8 @@ static OQS_STATUS sig_speed_wrapper(const char *method_name, uint64_t duration,
TIME_OPERATION_SECONDS(OQS_SIG_STFL_keypair(sig, public_key, secret_key), "keypair", duration)
unsigned long long max_sigs;
OQS_SIG_STFL_sigs_total(sig, &max_sigs, secret_key);
TIME_OPERATION_SECONDS_MAXIT(OQS_SIG_STFL_sign(sig, signature, &signature_len, message, message_len, secret_key), "sign", duration,
max_sigs, OQS_SIG_STFL_keypair(sig, public_key, secret_key) )
TIME_OPERATION_SECONDS_MAXIT(OQS_SIG_STFL_sign(sig, signature, &signature_len, message, message_len, secret_key), "sign", duration,
max_sigs, OQS_SIG_STFL_keypair(sig, public_key, secret_key) )
TIME_OPERATION_SECONDS(OQS_SIG_STFL_verify(sig, message, message_len, signature, signature_len, public_key), "verify", duration)
} else {
TIME_OPERATION_SECONDS(fullcycle(sig, public_key, secret_key, signature, signature_len, message, message_len), "fullcycle", duration)
Loading