24.1.2.11 sha_sync_sha1_compute
SHA-1 compute digest.
int32_t sha_sync_sha1_compute(
struct sha_sync_descriptor * descr,
struct sha_context * ctx,
const uint8_t * input,
uint32_t length,
uint8_t output
)
Parameters
- descr
-
Type: struct sha_sync_descriptor Struct *
SHA descriptor
- ctx
-
Type: struct sha_context *
SHA context structure
- input
-
Type: const uint8_t *
Buffer holding the input data
- length
-
Type: uint32_t
Byte length of the input data
- output
-
Type: uint8_t
SHA digest data
Returns
Type: int32_t
Compute status.