nRF Connect SDK API 2.8.99
|
int bl_sha256_verify | ( | const uint8_t * | data, |
uint32_t | data_len, | ||
const uint8_t * | expected ) |
#include <include/bl_crypto.h>
Calculate a digest and verify it directly.
[in] | data | The data to hash. |
[in] | data_len | The length of data . |
[in] | expected | The expected digest over data . |
0 | If the procedure succeeded and the resulting digest is identical to expected . |
-EHASHINV | If the procedure succeeded, but the digests don't match. |