Suggested enhancement
The benchmark program no longer covers FFDH or ECDH, since the legacy APIs (dhm.g, ecdh.h) have been removed entirely. This task is to re-introduce benchmarking of those primitives in programs/test/benchmark.c.
Since they both use the same PSA Crypto API, only with different key types and algs, we might want to introduce a common helper function. However we still want two separate command-line arguments. Each of them (ECDH, FFDH) will have a table with the list of parameters (curves) to test.
Justification
TF-PSA-Crypto needs this because we want the benchmark program to cover all the primitives we offer.
Suggested enhancement
The benchmark program no longer covers FFDH or ECDH, since the legacy APIs (
dhm.g,ecdh.h) have been removed entirely. This task is to re-introduce benchmarking of those primitives inprograms/test/benchmark.c.Since they both use the same PSA Crypto API, only with different key types and algs, we might want to introduce a common helper function. However we still want two separate command-line arguments. Each of them (ECDH, FFDH) will have a table with the list of parameters (curves) to test.
Justification
TF-PSA-Crypto needs this because we want the benchmark program to cover all the primitives we offer.