nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ bl_sha256_update()

int bl_sha256_update ( bl_sha256_ctx_t * ctx,
const uint8_t * data,
uint32_t data_len )

#include <include/bl_crypto.h>

Hash a portion of data.

Note
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.
Parameters
[in]ctxContext variable. Must have been initialized.
[in]dataData to hash.
[in]data_lenLength of data.
Return values
0On success.
-EINVALIf ctx was NULL, uninitialized, or corrupted.
-ENOSYSIf the context has already been finalized.