mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-05 03:24:17 -04:00
Initilize variable
Coverity scan detected a problem of an uinitilized variable. Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
790ab52ee0
commit
dc3f3bb8b1
@ -623,7 +623,7 @@ static int exercise_key_agreement_key( mbedtls_svc_key_id_t key,
|
|||||||
psa_algorithm_t alg )
|
psa_algorithm_t alg )
|
||||||
{
|
{
|
||||||
psa_key_derivation_operation_t operation = PSA_KEY_DERIVATION_OPERATION_INIT;
|
psa_key_derivation_operation_t operation = PSA_KEY_DERIVATION_OPERATION_INIT;
|
||||||
unsigned char input[1];
|
unsigned char input[1] = { 0 };
|
||||||
unsigned char output[1];
|
unsigned char output[1];
|
||||||
int ok = 0;
|
int ok = 0;
|
||||||
psa_algorithm_t kdf_alg = PSA_ALG_KEY_AGREEMENT_GET_KDF( alg );
|
psa_algorithm_t kdf_alg = PSA_ALG_KEY_AGREEMENT_GET_KDF( alg );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user