Fix llvm error: variables may be used uninitialized
Signed-off-by: Sergey <sergio_nsk@yahoo.de>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 0efebb4..96547e0 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -3997,7 +3997,7 @@
{
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
uint8_t local_iv[PSA_CIPHER_IV_MAX_SIZE];
- size_t default_iv_length;
+ size_t default_iv_length = 0;
if (operation->id == 0) {
status = PSA_ERROR_BAD_STATE;
@@ -4604,7 +4604,7 @@
{
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
uint8_t local_nonce[PSA_AEAD_NONCE_MAX_SIZE];
- size_t required_nonce_size;
+ size_t required_nonce_size = 0;
*nonce_length = 0;