Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lucagio
Level 1
Level 1
First reply posted First like given First question asked

Hi, I'm using a TPM with raspberry and I'm making some performance tests. 

I have modified the tpm-tools (create,signature,verifysignature) and taken some times like this (i used clock_gettime to consider also i/o) :
clock_gettime(CLOCK_REALTIME, &start);
tpm2_verifysignature(...);
clock_gettime(CLOCK_REALTIME, &finish);


After some executions I computed the avg, I obtained that ECDSA verification is faster than the ECDSA signature computation, but it should be the opposite, or am I wrong?

Is there some hardware optimization for verification?
It could depend on the i/o from the TPM like the signature have to return the value, while the verification is just true/false?

Thanks in advance

0 Likes
1 Solution
JosieYang
Employee
Employee
5 solutions authored 10 replies posted 5 sign-ins

As databook mentioned,  the command duration shows the time the TPM needs internally for command
execution and the receive time finally shows the time needed to transfer the response back to the host system.

JosieYang_0-1653879164961.png

Signature is faster than verification.
It's depended how to measure. I'm not sure if other reasons causes what you obtained.
Many thanks

View solution in original post

3 Replies
JosieYang
Employee
Employee
5 solutions authored 10 replies posted 5 sign-ins

As databook mentioned,  the command duration shows the time the TPM needs internally for command
execution and the receive time finally shows the time needed to transfer the response back to the host system.

JosieYang_0-1653879164961.png

Signature is faster than verification.
It's depended how to measure. I'm not sure if other reasons causes what you obtained.
Many thanks

lucagio
Level 1
Level 1
First reply posted First like given First question asked

Thanks for the answer. Where i can find this document?

0 Likes
JosieYang
Employee
Employee
5 solutions authored 10 replies posted 5 sign-ins

Hi,

The databook only can be downloaded from MyIcp.com.

Please login your account to download.

If you can't find the databook, please contact your distributor.

Thanks.

0 Likes