Rate This Document
Findability
Accuracy
Completeness
Readability

hmac_sha1_key_data

Processes the original key and generates a derived key.

int hmac_sha1_key_data(uint8_t *key, uint64_t key_len, sha1_hmac_key_data_t *kd);

Parameters

Parameter

Description

Value Range

Input/Output

key

Original key.

Not null

Input

key_len

Length of the original key.

> 0

Input

kd

Stores the derived key's data structure.

Not null

Output

Return Values

  • Success: 0 is returned.
  • Failure: A value less than 0 is returned.