mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 21:05:37 +00:00
psa: Use type of block_size consistently
Use size_t for block_size in psa_mac_abort() because psa_get_hash_block_size() returns a size_t. This also helps to avoid compiler warnings on LLP64 systems.
This commit is contained in:
parent
045bd50a78
commit
5390f69590
|
@ -1253,7 +1253,7 @@ psa_status_t psa_mac_abort( psa_mac_operation_t *operation )
|
||||||
#if defined(MBEDTLS_MD_C)
|
#if defined(MBEDTLS_MD_C)
|
||||||
if( PSA_ALG_IS_HMAC( operation->alg ) )
|
if( PSA_ALG_IS_HMAC( operation->alg ) )
|
||||||
{
|
{
|
||||||
unsigned int block_size =
|
size_t block_size =
|
||||||
psa_get_hash_block_size( PSA_ALG_HMAC_HASH( operation->alg ) );
|
psa_get_hash_block_size( PSA_ALG_HMAC_HASH( operation->alg ) );
|
||||||
|
|
||||||
if( block_size == 0 )
|
if( block_size == 0 )
|
||||||
|
|
Loading…
Reference in a new issue