Rate This Document
Findability
Accuracy
Completeness
Readability

hmac_sha1_final

Performs hmac_sha1 computation and generates a 160-bit message digest.

int hmac_sha1_final(sha1_hmac_ctx_t *ctx, uint8_t *digest);

Parameters

Parameter

Description

Value Range

Input/Output

ctx

Context information of the hmac_sha1 computation task.

Not null

Input

digest

Stores the hmac_sha1 digest.

Not null

Output

Return Values

  • Success: 0 is returned.
  • Failure: -1 is returned.