Make HKDF use the generic MAC API

Such that the underlying HMAC can be accelerated if such a driver is present

Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
Steven Cooreman 2021-04-29 19:11:25 +02:00
parent ac8d82a6f8
commit d1ed1d935f
2 changed files with 68 additions and 34 deletions

View file

@ -173,7 +173,7 @@ typedef struct
{
uint8_t *info;
size_t info_length;
mbedtls_psa_hmac_operation_t hmac;
psa_mac_operation_t hmac;
uint8_t prk[PSA_HASH_MAX_SIZE];
uint8_t output_block[PSA_HASH_MAX_SIZE];
#if PSA_HASH_MAX_SIZE > 0xff