From aac9a581f80f6db7c5bce36bc2dba67f21133aa9 Mon Sep 17 00:00:00 2001 From: Kusumit Ghoderao Date: Wed, 24 May 2023 14:19:17 +0530 Subject: [PATCH] Fix code style and initialize status Signed-off-by: Kusumit Ghoderao --- library/psa_crypto.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 02ca4d735f..4cce837c52 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -6471,10 +6471,10 @@ static psa_status_t psa_pbkdf2_set_salt(psa_pbkdf2_key_derivation_t *pbkdf2, } static psa_status_t psa_pbkdf2_hmac_set_password(psa_algorithm_t hash_alg, - const uint8_t *input, - size_t input_len, - uint8_t *output, - size_t output_len) + const uint8_t *input, + size_t input_len, + uint8_t *output, + size_t output_len) { psa_status_t status = PSA_SUCCESS; if (input_len > PSA_HASH_BLOCK_LENGTH(hash_alg)) { @@ -6492,7 +6492,7 @@ static psa_status_t psa_pbkdf2_set_password(psa_pbkdf2_key_derivation_t *pbkdf2, const uint8_t *data, size_t data_length) { - psa_status_t status; + psa_status_t status = PSA_SUCCESS; if (pbkdf2->state != PSA_PBKDF2_STATE_SALT_SET) { return PSA_ERROR_BAD_STATE; }