That has helped but has not completely solved the issue. I tried variations of “mbedtls” in the modules line but thought it was not working as the examples I found used nonexistent headers. I am now able to import
mbedtls/sha1.h and define a structure of type
mbedtls_sha1_context however the supporting functions are not linked in.
/main.cc:90: undefined reference to `mbedtls_sha1_init'
collect2: error: ld returned 1 exit status
I can’t find any more guidance in getting it working via the modules system. I see bits and pieces of answers to other similar questions (usually about getting the networking or PKA code working) that solve the issue by putting mbedtls into the project directory and compiling it there. As far as I can tell this is not the intended method, and in my case it leads to a lot of compilation errors that I don’t think I should spend time fixing just yet.