The build failed because because the symbol "mbedtls_ecdsa_signature_to_asn1" was not defined. I did a workspace-wide text search for that string and found defined in only two places: esp-cryptoauthlib and an example project under esp-idf, both in atca_mbedtls_wrap.
Has this function been deprecated and replaced? I can find no references to that effect. The compiler suggests using "mbedtls_ecdsa_sign_det_ext" but I don't know if that is the correct replacement.
Here is the error message:
Code: Select all
../components/esp-cryptoauthlib/cryptoauthlib/lib/mbedtls/atca_mbedtls_wrap.c: In function 'atca_mbedtls_eckey_sign':
../components/esp-cryptoauthlib/cryptoauthlib/lib/mbedtls/atca_mbedtls_wrap.c:1013:19: error: implicit declaration of function 'mbedtls_ecdsa_signature_to_asn1'; did you mean 'mbedtls_ecdsa_sign_det_ext'? [-Werror=implicit-function-declaration]
ret = mbedtls_ecdsa_signature_to_asn1(&r, &s, sig, sig_len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mbedtls_ecdsa_sign_det_ext
cc1.exe: some warnings being treated as errors
[