1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Init psa status to PSA_ERROR_CORRUPTION_DETECTED

Signed-off-by: Przemyslaw Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
Przemyslaw Stekiel
2022-02-03 08:55:33 +01:00
parent f4facef9ba
commit d66387f8fa
3 changed files with 7 additions and 7 deletions

View File

@ -1192,7 +1192,7 @@ static int psa_cipher_encrypt_helper( mbedtls_ssl_transform *transform,
const unsigned char *input, size_t ilen,
unsigned char *output, size_t *olen )
{
psa_status_t status;
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
psa_cipher_operation_t cipher_op = PSA_CIPHER_OPERATION_INIT;
size_t part_len;
@ -1239,7 +1239,7 @@ static int build_transforms( mbedtls_ssl_transform *t_in,
psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT;
psa_algorithm_t alg;
size_t key_bits;
psa_status_t status;
psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED;
#endif
size_t keylen, maclen, ivlen;