This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CC310 hardware accelerated backend nrf_crypto_hash_compute query

Hi,

I've noticed that when using the CC310 hardware accelerated cryptographic backend the call to nrf_crypto_hash_compute() seems to return an error (not supported) despite using a supported hash, SHA256. This seems to be related to this check:

The hash_algorithm_get function will always return 0 if it is successful though because NRF_SUCCESS is 0, as shown:

Should the line therefore be negated?

`

Parents
  • Hi jm,

     

    Thanks for reporting this back to us! This is a clear bug from our side, and I apologize for the inconvenience. 

    I will report this internally and make sure it is corrected in future SDKs.

     

    Your temporary fix looks OK.

     

    Cheers,

    Håkon

Reply
  • Hi jm,

     

    Thanks for reporting this back to us! This is a clear bug from our side, and I apologize for the inconvenience. 

    I will report this internally and make sure it is corrected in future SDKs.

     

    Your temporary fix looks OK.

     

    Cheers,

    Håkon

Children
No Data