Remove unused variable from MAC driver structure
Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
diff --git a/include/psa/crypto_builtin_composites.h b/include/psa/crypto_builtin_composites.h
index 6979dec..f968c16 100644
--- a/include/psa/crypto_builtin_composites.h
+++ b/include/psa/crypto_builtin_composites.h
@@ -62,7 +62,6 @@
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 a5ef9e5..dc07d45 100644
--- a/library/psa_crypto_mac.c
+++ b/library/psa_crypto_mac.c
@@ -230,7 +230,6 @@
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 @@
}
operation->alg = 0;
- operation->has_input = 0;
operation->is_sign = 0;
return( PSA_SUCCESS );
@@ -425,7 +423,6 @@
{
if( operation->alg == 0 )
return( PSA_ERROR_BAD_STATE );
- operation->has_input = 1;
#if defined(BUILTIN_ALG_CMAC)
if( operation->alg == PSA_ALG_CMAC )