NetX secure TLS handshake time
hi all,
I am trying to implement a TCP echo device on STM32U585 controller. here the TCP/IP communication is over ethernet as well as USB (CDC ECM). The communication channel is protected using TLS encryption.
here am using NetX stack as the TCP/IP stack and using the NetX secure for the TLS implementation's can able to establish a secure connection between the TLS client(my board) and server (OpenSSL server running on host PC).
the problem is when am using ECC ciphers(scep521r1) my TLS handshake is taking around 24 seconds and the same code when using RSA certificates taking max of 1 to 2 seconds.
am using self signed certificates created using the OpenSSL(for both RSA and ECC).while reading the documentation its mentioned that ECC is supporting the NetX secure. And am using the scep521r1 curve for creating the keys adn certificates.
am using the APIs as mentioned in the documentation

adding root ca certificate for the verification

ps:
am using chain of certificate for the authentication but even if we are using only 1 layer of certificate(server and root ca) also this problem is there.
can anyone help me to resolve this issue
many thanks ....
