Merge pull request #4143 from stevew817/fix_misconstructed_dependency

Fix a malformed define guard
This commit is contained in:
Gilles Peskine 2021-02-16 12:51:01 +01:00 committed by GitHub
commit efa8509745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5707,7 +5707,7 @@ void persistent_key_load_key_from_storage( data_t *data,
break;
case DERIVE_KEY:
#if PSA_WANT_ALG_HKDF && PSA_WANT_ALG_SHA_256
#if defined(PSA_WANT_ALG_HKDF) && defined(PSA_WANT_ALG_SHA_256)
{
/* Create base key */
psa_algorithm_t derive_alg = PSA_ALG_HKDF( PSA_ALG_SHA_256 );