Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CC310 NRF Crypto Hash library incorrectly interprets output of hash_algorithm_get()

In all instances where the internal function `hash_algorithm_get()` is used in `cc310_lib_hash.c`, the output is inverted, making would should be a successful return code return an error. SHA256 hashing seems to work fine if the two locations where this function is used is fixed.

Parents Reply
  • Hi Håkon,

    I finally got around to updating to SDK15 and trying out the hash library. It now appears that the `CRYS_HASH_Finish` function causes a hard restart of my device. I'm running on top of softdevice s140 on the NRF52840. I attempted to copy a lot of the configuration from the nrf_crypto/hash example, and added a nrf_crypto_data section to my linker. It may be possible I didn't get it quite right.

Children
Related