lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #9823] altcp_tls_mbedtls.c: add restartable feature


From: David GIRAULT
Subject: [lwip-devel] [patch #9823] altcp_tls_mbedtls.c: add restartable feature
Date: Tue, 15 Oct 2019 06:02:24 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36

Follow-up Comment #6, patch #9823 (project lwip):


[comment #5 commentaire #5 :]
> 
> [comment #1 comment #1:]
> > Hi Giuseppe,
> > 
> > I think the handling of the ALTCP_MBEDTLS_FLAGS_CRYPTO_IN_PROGRESS flag
must be made by the altcp_mbedtls_lower_poll() function. This allow reuse
existing cyclic TCP timer. And ensure your new function isn't called too
much.
> 
> As Simon already observed, poll mechanism call rate will be too slow.
> 
> 
> > Anyway, this patch require that the ECP calculus are made in HW (or that
sw implementation can stop at some point).
> 
> I couldn't get your point. If ECP calculus are made in HW, I think they
would be much more fast and restartable wouldn't be useful.

We currently use the STSafe crypto HW module and it take 400ms min to achieve
ECDSA signature check during TLS negotiation.

This is why I think the poll API may be enough. CPU (STM32F479) is completely
free to do other thing during this time. Too fast polling will waste CPU
cycles.

I don't check basic ECP operations timings yet, so I can't know if it's a lot
faster or not.



    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9823>

_______________________________________________
  Message posté via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]