Zephyr & mbedtls_poly1305 methods

Hoping someone can point me towards some guidance on how to properly enable, configure, and build mbedTLS options on the nrf52840.

I'm currently using Zephyr 3.6, with the nrfconnect 2.3.0 toolchain, working in VSCode on Win10.

I'm trying to establish a secure connection to a web endpoint that requires ECDH ciphers. However, when I try to enable them the linker can't find definitions for `mebedtls_poly1305_xxx` methods.

c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/mbedtls/libmodules__mbedtls.a(chachapoly.c.obj): in function `chachapoly_pad_aad':
C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:69: undefined reference to `mbedtls_poly1305_update'
c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/mbedtls/libmodules__mbedtls.a(chachapoly.c.obj): in function `mbedtls_chachapoly_init':
C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:98: undefined reference to `mbedtls_poly1305_init'
c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/mbedtls/libmodules__mbedtls.a(chachapoly.c.obj): in function `mbedtls_chachapoly_free':
C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:111: undefined reference to `mbedtls_poly1305_free'
c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/mbedtls/libmodules__mbedtls.a(chachapoly.c.obj): in function `mbedtls_chachapoly_starts':
C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:155: undefined reference to `mbedtls_poly1305_starts'
c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/mbedtls/libmodules__mbedtls.a(chachapoly.c.obj): in function `mbedtls_chachapoly_update_aad':
C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:182: undefined reference to `mbedtls_poly1305_update'
c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/mbedtls/libmodules__mbedtls.a(chachapoly.c.obj): in function `mbedtls_chachapoly_update':
C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:224: undefined reference to `mbedtls_poly1305_update'
c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:218: undefined reference to `mbedtls_poly1305_update'
c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/mbedtls/libmodules__mbedtls.a(chachapoly.c.obj): in function `mbedtls_chachapoly_finish':
C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:270: undefined reference to `mbedtls_poly1305_update'
c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:274: undefined reference to `mbedtls_poly1305_finish'
c:/nordic/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.1.0/../../../../arm-zephyr-eabi/bin/ld.exe: modules/mbedtls/libmodules__mbedtls.a(chachapoly.c.obj): in function `chachapoly_pad_ciphertext':
C:\nordic\v2.3.0\modules\crypto\mbedtls\library\chachapoly.c:88: undefined reference to `mbedtls_poly1305_update'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

 

I'm reasonably sure I'm missing some kind of simple configuration, but I'm out of ideas on how to proceed next.

Any help?

Related