![]() |
nRF Connect SDK API 3.4.99
|
| int bl_sha256_update | ( | bl_sha256_ctx_t * | ctx, |
| const uint8_t * | data, | ||
| uint32_t | data_len ) |
#include <bl_crypto.h>
Hash a portion of data.
ctx must be initialized before being used in this function. An uninitialized ctx might not be reported as an error. Also, ctx must not be used if it has been finalized, though this might also not be reported as an error.| [in] | ctx | Context variable. Must have been initialized. |
| [in] | data | Data to hash. |
| [in] | data_len | Length of data. |
| 0 | On success. |
| -EINVAL | If ctx was NULL, uninitialized, or corrupted. |
| -ENOSYS | If the context has already been finalized. |