24.1.2.12 sha_sync_sha256_compute
SHA-256/224 compute digest.
int32_t sha_sync_sha256_compute(
struct sha_sync_descriptor * descr,
struct sha_context * ctx,
bool is224,
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
- is224
-
Type: bool
If true, use SHA-224
- 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.