Yes, we're migrating to PSA APIs, and ALT interfaces will probably
disappear in the next major release of Mbed TLS. So we do want a
PSA-based benchmark application. In my earlier response, I didn't mean
to imply that we don't want one, or that we don't intend to write one:
just that we are not currently working on one.
--
Gilles Peskine
Mbed TLS developer
On 16/05/2023 12:47, Ruchika Gupta wrote:
>
> Hi Gilles,
>
> As Andrej mentioned -
>
https://github.com/Mbed-TLS/mbedtls/blob/development/programs/test/benchmark...
> is the application available for mbedTLS API’s benchmarking.
>
> IIUC, long term plan of MbedTLS
>
https://github.com/Mbed-TLS/mbedtls/blob/development/programs/test/benchmark.c
> is to replace the ALT implementation eventually and switch to PSA
> API’s. Is this understanding correct or are there any change in the
> plans ?
>
> To align with the LTP, we were planning to shift from ALT
> implementation to PSA crypto. However, to convince the application
> developers/customers to make this move, we would also need the
> benchmark numbers with PSA crypto driver wrapper layer. Hence the
> question.
>
> Regards,
>
> Ruchika
>
> *From:* Andrej Butok via mbed-tls
mbed-tls@lists.trustedfirmware.org
> *Sent:* Tuesday, May 16, 2023 3:57 PM
> *To:* Gilles Peskine
gilles.peskine@arm.com;
> mbed-tls@lists.trustedfirmware.org
> *Subject:* [EXT] [mbed-tls] Re: Benchmark application for PSA crypto API's
>
>
>
>
> *Caution:*This is an external email. Please take care when clicking
> links or opening attachments. When in doubt, report the message using
> the 'Report this email' button
>
> Hello Gilles,
>
> The existing MbedTLS benchmark application is using the classical
> MbedTLS API.
>
> * PSA Drivers are not called by the classical API.
> * Finally, MbedTLS will be switched fully to the PSA API.
>
> The existing MbedTLS benchmark application will become obsolete,
> without a replacement.
>
> Thanks,
>
> Andrej Butok,
>
> NXP
>
> *From:* Gilles Peskine via mbed-tls
mbed-tls@lists.trustedfirmware.org
> *Sent:* Tuesday, May 16, 2023 12:18 PM
> *To:* mbed-tls@lists.trustedfirmware.org
> *Subject:* [mbed-tls] Re: Benchmark application for PSA crypto API's
>
> Hello,
>
> We are not currently working on a benchmark application through PSA
> interfaces, and I'm not aware of anyone trying to contribute one to
> Mbed TLS. I've seen benchmark code out there used to demonstrate
> hardware vs software performance, but I don't remember where, or if
> the source was available.
>
> The crypto API and the legacy API call the same functions underneath,
> and the performance is dominated by the cryptographic operations and
> not the dispatch code, so in terms of performance, this wouldn't
> matter. However, having a benchmark application using PSA APIs would
> be useful to compare PSA drivers.
>
> Best regards,
>
> --
> Gilles Peskine
> Mbed TLS developer
>
> On 16/05/2023 11:25, Ruchika Gupta via mbed-tls wrote:
>
> Hi,
>
> For mbedtls API’s, there is a benchmark application available. Are
> there any plans to implement benchmark application for PSA crypto
> APIs ?
>
> Regards,
>
> Ruchika
>