mirror of https://github.com/ARMmbed/mbed-os.git
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/5811pull/15287/head
parent
1ab98dec9a
commit
9345c8a014
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue