Skip to content

Commit

Permalink
Mbed TLS: Fix wrong MPI N in ECP Curve448 curve
Browse files Browse the repository at this point in the history
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:
Mbed-TLS/mbedtls#5811
  • Loading branch information
ccli8 committed May 24, 2022
1 parent 1ab98de commit 9345c8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions connectivity/mbedtls/source/ecp_curves.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 9345c8a

Please sign in to comment.