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

Benchmarking in STM32 board #2

Open
NLNK opened this issue Aug 27, 2022 · 1 comment
Open

Benchmarking in STM32 board #2

NLNK opened this issue Aug 27, 2022 · 1 comment

Comments

@NLNK
Copy link

NLNK commented Aug 27, 2022

Dear Sir,
Can you please share the details to do bench marking in STM32 for sphincs_sha_shake code. We have tried to do that with stack_speed_measurements_stm32f4.py file. But, it is taking more time(nearly half day) to display the results. It could be helpful if you share the best method to do that.

@zeri42
Copy link
Collaborator

zeri42 commented Aug 29, 2022

If you want to be faster I would suggest to modify this list so it only contains a single parameter set (128f should be the fastest). In general remove all the 's' sets and you will experience a massive speedup with fewer results.

parameter_set_list = ["128f", "128s", "192f", "192s", "256f", "256s", # SHA robust
"128f", "128s", "192f", "192s", "256f", "256s", # SHA simple
"128f", "128s", "192f", "192s", "256f", "256s", # SHAKE robust
"128f", "128s", "192f", "192s", "256f", "256s"] # SHAKE simple
...

However, a full benchmark is always going to take hours on that chip.
Hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants