1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

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

@ -39,7 +39,7 @@
* \return Any error code reported by psa_hash_compute(), psa_hash_setup() or
* psa_hash_update().
*/
psa_status_t psa_hmac_setup_internal( psa_hmac_internal_data *hmac,
psa_status_t psa_hmac_setup_internal( psa_hmac_internal_data_t *hmac,
const uint8_t *key,
size_t key_length,
psa_algorithm_t hash_alg );
@ -59,7 +59,7 @@ psa_status_t psa_hmac_setup_internal( psa_hmac_internal_data *hmac,
* Success.
* \return Any error code reported by psa_hash_update().
*/
psa_status_t psa_hmac_update_internal( psa_hmac_internal_data *hmac,
psa_status_t psa_hmac_update_internal( psa_hmac_internal_data_t *hmac,
const uint8_t *data,
size_t data_length );
@ -78,7 +78,7 @@ psa_status_t psa_hmac_update_internal( psa_hmac_internal_data *hmac,
* \return Any error code reported by psa_hash_setup(), psa_hash_update() or
* psa_hash_finish().
*/
psa_status_t psa_hmac_finish_internal( psa_hmac_internal_data *hmac,
psa_status_t psa_hmac_finish_internal( psa_hmac_internal_data_t *hmac,
uint8_t *mac,
size_t mac_size );
@ -96,8 +96,8 @@ psa_status_t psa_hmac_finish_internal( psa_hmac_internal_data *hmac,
* Success.
* \return Any error code reported by psa_hash_clone().
*/
psa_status_t psa_hmac_clone_internal( const psa_hmac_internal_data *source,
psa_hmac_internal_data *destination );
psa_status_t psa_hmac_clone_internal( const psa_hmac_internal_data_t *source,
psa_hmac_internal_data_t *destination );
/** Internal API for aborting an HMAC operation, using PSA hash primitives.
*
@ -110,7 +110,7 @@ psa_status_t psa_hmac_clone_internal( const psa_hmac_internal_data *source,
* Success.
* \return Any error code reported by psa_hash_abort().
*/
psa_status_t psa_hmac_abort_internal( psa_hmac_internal_data *hmac );
psa_status_t psa_hmac_abort_internal( psa_hmac_internal_data_t *hmac );
/** Calculate the MAC (message authentication code) of a message using Mbed TLS.
*