MD5 ISSUES

Hi, 

    I am developing with NCS 3.0.  In my application, I need to use MD5 to calculate a signature. Following Nordic AI's guidance, I enabled CONFIG_PSA_WANT_ALG_MD5=y in prj.conf,  but I get a compilation error:

 oberon_check_unsupported.h:21:6: error: #error "No crypto implementation for MD5", how to modify psa_crypto-config.h.template and psa_crypto_want_config.h.template to fix the MD5 issue.

   how can I fix this problem?

Parents
  • Hi Stephen,

    This error means that CONFIG_PSA_WANT_ALG_MD5 is enabled in your project configuration, but no crypto driver in your setup supports MD5.

    MD5 is not available in any PSA Crypto driver and is not recommended, as it is considered cryptographically broken. If you still need to use it, you will have to rely on the legacy Mbed TLS API, but not that this has been deprecated since NCS v2.8.0.

    Best regards,
    Benjamin

Reply
  • Hi Stephen,

    This error means that CONFIG_PSA_WANT_ALG_MD5 is enabled in your project configuration, but no crypto driver in your setup supports MD5.

    MD5 is not available in any PSA Crypto driver and is not recommended, as it is considered cryptographically broken. If you still need to use it, you will have to rely on the legacy Mbed TLS API, but not that this has been deprecated since NCS v2.8.0.

    Best regards,
    Benjamin

Children
No Data
Related