mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 15:32:58 +00:00
Fix style of preprocessor expression
We use logical '&&' everywhere, let's be consistent. (Unless I'm mistaken, binary '&' happens to give the same results for booleans so this wasn't an actual bug, just style/readability issue.) Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
ebdca796a1
commit
0a4ffa4c3e
@ -733,7 +733,7 @@ static int smoke_test_key(mbedtls_svc_key_id_t key)
|
||||
buffer, sizeof(buffer), NULL, 0,
|
||||
buffer, sizeof(buffer), &length));
|
||||
|
||||
#if defined(PSA_WANT_ALG_SHA_256) & defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF)
|
||||
#if defined(PSA_WANT_ALG_SHA_256) && defined(MBEDTLS_PSA_BUILTIN_ALG_HKDF)
|
||||
/* Try the key in a plain key derivation. */
|
||||
PSA_ASSERT(psa_key_derivation_setup(&derivation_operation,
|
||||
PSA_ALG_HKDF(PSA_ALG_SHA_256)));
|
||||
@ -768,7 +768,7 @@ static int smoke_test_key(mbedtls_svc_key_id_t key)
|
||||
}
|
||||
#else
|
||||
(void) derivation_operation;
|
||||
#endif /* PSA_WANT_ALG_SHA_256 & PSA_WANT_ALG_HKDF */
|
||||
#endif /* PSA_WANT_ALG_SHA_256 && PSA_WANT_ALG_HKDF */
|
||||
|
||||
ok = 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user