Seeed Xiao nRF52840 BLE Mesh Could Not Be Detectable

So iwant to encrypt and decrypt the data using assymetric ECDh and symeetric Aes , thatvis data packet will come through ble using aes encryption but the aes key will be encrypted itself by aes , for implement aes i ho the resources but I am facing difficulty to implement ECDh , I am implementing it Arduino ide using mbed tls li raray the code is getting compiled and uploaded but it is not showing g output may be crashing . Any help would be greatly appreciated
Hardware -seeed xiao nef52840
Ide -arduino ide
Library mbed tls