From ac93e3b43ca4374d46102c2f8861fb19df0ab547 Mon Sep 17 00:00:00 2001 From: John Durkop Date: Fri, 16 Oct 2020 06:48:55 -0700 Subject: [PATCH] Fix guard for test_size_function() Previous guard was using original naming and did not get updated to the new name. Guard is now using correct definition of TEST_DRIVER_KEY_CONTEXT_SIZE_FUNCTION. Signed-off-by: John Durkop --- library/psa_crypto_driver_wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/psa_crypto_driver_wrappers.c b/library/psa_crypto_driver_wrappers.c index 262070c6a..f905ea4f9 100644 --- a/library/psa_crypto_driver_wrappers.c +++ b/library/psa_crypto_driver_wrappers.c @@ -273,7 +273,7 @@ static psa_status_t get_expected_key_size( const psa_key_attributes_t *attribute #if defined(PSA_CRYPTO_DRIVER_TEST) case PSA_CRYPTO_TEST_DRIVER_LIFETIME: -#ifdef TEST_KEY_CONTEXT_SIZE_FUNCTION +#ifdef TEST_DRIVER_KEY_CONTEXT_SIZE_FUNCTION *expected_size = test_size_function( key_type, key_bits ); return( PSA_SUCCESS ); #else /* TEST_DRIVER_KEY_CONTEXT_SIZE_FUNCTION */