Rename internal HMAC structure type to match convention

Typedef'ed structures are suffixed _t
Also updated the initialiser macro with content that actually
matches the structure's content.

Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
Steven Cooreman 2021-03-22 14:49:06 +01:00
parent 4fdf060a81
commit d1955af5df
5 changed files with 24 additions and 24 deletions

View file

@ -173,7 +173,7 @@ typedef struct
{
uint8_t *info;
size_t info_length;
psa_hmac_internal_data hmac;
psa_hmac_internal_data_t hmac;
uint8_t prk[PSA_HASH_MAX_SIZE];
uint8_t output_block[PSA_HASH_MAX_SIZE];
#if PSA_HASH_MAX_SIZE > 0xff
@ -215,7 +215,7 @@ typedef struct psa_tls12_prf_key_derivation_s
size_t seed_length;
uint8_t *label;
size_t label_length;
psa_hmac_internal_data hmac;
psa_hmac_internal_data_t hmac;
uint8_t Ai[PSA_HASH_MAX_SIZE];
/* `HMAC_hash( prk, A(i) + seed )` in the notation of RFC 5246, Sect. 5. */