#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] | ctx | Context variable. Must have been initialized. |
[in] | data | Data to hash. |
[in] | data_len | Length of data . |
- Return values
-
0 | On success. |
-EINVAL | If ctx was NULL, uninitialized, or corrupted. |
-ENOSYS | If the context has already been finalized. |