1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-10-28 23:14:56 +03:00

Replace zero by PSA_ALG_NONE in key derivation test function

Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
Waleed Elmelegy
2025-03-03 12:48:40 +00:00
parent 07e5739115
commit cba05ece2b

View File

@@ -8839,7 +8839,7 @@ void derive_input(int alg_arg,
psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_DERIVE); psa_set_key_usage_flags(&attributes, PSA_KEY_USAGE_DERIVE);
psa_set_key_algorithm(&attributes, alg); psa_set_key_algorithm(&attributes, alg);
if (alg != 0) { if (alg != PSA_ALG_NONE) {
PSA_ASSERT(psa_key_derivation_setup(&operation, alg)); PSA_ASSERT(psa_key_derivation_setup(&operation, alg));
} }