LESC use Elliptic Curve Diffie Hellman (ECDH) for key generation, there it requires crypto library with ARM Cryptocell CC310 on nrf52840 https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_cryptocell.html&resultof=%22nrf_cc310%22