hmac_sha1_init
Initializes the hmac_sha1 computation context structure using the derived key.
int hmac_sha1_init(sha1_hmac_ctx_t *ctx, sha1_hmac_key_data_t *kd);
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
ctx |
hmac_sha1 context structure. |
Not null |
Output |
kd |
Derived key, which is transferred after being generated using hmac_sha1_key_data. |
Not null |
Input |
Return Values
- Success: 0 is returned.
- Failure: A value less than 0 is returned.
Parent topic: Interface Description