mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Replace zero by PSA_ALG_NONE in key derivation internal functions
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
@ -4751,7 +4751,7 @@ static psa_status_t psa_key_derivation_input_internal(
|
|||||||
psa_status_t status;
|
psa_status_t status;
|
||||||
psa_algorithm_t kdf_alg = psa_key_derivation_get_kdf_alg(operation);
|
psa_algorithm_t kdf_alg = psa_key_derivation_get_kdf_alg(operation);
|
||||||
|
|
||||||
if (kdf_alg == 0) {
|
if (kdf_alg == PSA_ALG_NONE) {
|
||||||
/* This is a blank or aborted operation. */
|
/* This is a blank or aborted operation. */
|
||||||
status = PSA_ERROR_BAD_STATE;
|
status = PSA_ERROR_BAD_STATE;
|
||||||
goto exit;
|
goto exit;
|
||||||
|
Reference in New Issue
Block a user