disabling ECP in MBEDTLS

I'm trying to put my code on a RAM/ROM diet and cut out any extra cruft so it will fit in an nRF52832. It used to fit with older SDKs, but not with the newest (v3.2.3).

As part of this effort I'm trying to disable the mbed TLS ECP functionality which I *think* I shouldn't need for BLE (please correct me if I'm wrong, but searching online suggests I should only need AES) nor for RSA signing keys for MCUBOOT.

So in my prj.conf I tried setting CONFIG_MBEDTLS_ECP_C=n but then I get the error 

#error "MBEDTLS_ECP_C defined (or a subset enabled), but not all prerequisites"

when I build. What do I need to do to cut out ECP but leave AES and RSA intact?

Related