diff --git a/include/psa/crypto_builtin_composites.h b/include/psa/crypto_builtin_composites.h index 6979dec42..f968c169e 100644 --- a/include/psa/crypto_builtin_composites.h +++ b/include/psa/crypto_builtin_composites.h @@ -62,7 +62,6 @@ typedef struct typedef struct { psa_algorithm_t alg; - unsigned int has_input : 1; unsigned int is_sign : 1; uint8_t mac_size; union diff --git a/library/psa_crypto_mac.c b/library/psa_crypto_mac.c index a5ef9e57d..dc07d455e 100644 --- a/library/psa_crypto_mac.c +++ b/library/psa_crypto_mac.c @@ -230,7 +230,6 @@ static psa_status_t mac_init( psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; operation->alg = PSA_ALG_FULL_LENGTH_MAC( alg ); - operation->has_input = 0; operation->is_sign = 0; #if defined(BUILTIN_ALG_CMAC) @@ -290,7 +289,6 @@ static psa_status_t mac_abort( mbedtls_psa_mac_operation_t *operation ) } operation->alg = 0; - operation->has_input = 0; operation->is_sign = 0; return( PSA_SUCCESS ); @@ -425,7 +423,6 @@ static psa_status_t mac_update( { if( operation->alg == 0 ) return( PSA_ERROR_BAD_STATE ); - operation->has_input = 1; #if defined(BUILTIN_ALG_CMAC) if( operation->alg == PSA_ALG_CMAC )