Mbed TLS: Fix wrong MPI N in ECP Curve448 curve

In loading Curve448, MPI N is in uninitialized state and its sign flag N.s isn't initialized to 1.
This is fixed by following:
https://github.com/Mbed-TLS/mbedtls/pull/5811
pull/15287/head
Chun-Chieh Li 2022-05-20 17:34:52 +08:00
parent 1ab98dec9a
commit 9345c8a014
1 changed files with 2 additions and 0 deletions

View File

@ -770,6 +770,8 @@ int mbedtls_ecp_group_load( mbedtls_ecp_group *grp, mbedtls_ecp_group_id id )
ECP_VALIDATE_RET( grp != NULL );
mbedtls_ecp_group_free( grp );
mbedtls_ecp_group_init( grp );
grp->id = id;
switch( id )