mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
Use memset for initialization
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
parent
279d227971
commit
16f0151887
@ -7767,10 +7767,7 @@ psa_status_t psa_pake_setup(
|
|||||||
psa_jpake_computation_stage_t *computation_stage =
|
psa_jpake_computation_stage_t *computation_stage =
|
||||||
&operation->computation_stage.jpake;
|
&operation->computation_stage.jpake;
|
||||||
|
|
||||||
computation_stage->round = PSA_JPAKE_FIRST;
|
memset(computation_stage, 0, sizeof(*computation_stage));
|
||||||
computation_stage->io_mode = PSA_JPAKE_INPUT;
|
|
||||||
computation_stage->inputs = 0;
|
|
||||||
computation_stage->outputs = 0;
|
|
||||||
computation_stage->step = PSA_PAKE_STEP_KEY_SHARE;
|
computation_stage->step = PSA_PAKE_STEP_KEY_SHARE;
|
||||||
} else
|
} else
|
||||||
#endif /* PSA_WANT_ALG_JPAKE */
|
#endif /* PSA_WANT_ALG_JPAKE */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user