Merge pull request #5683 from paul-elliott-arm/fix_pk_test
Prevent free of uninitialised MPI variables
This commit is contained in:
commit
1c7c5969ea
1 changed files with 2 additions and 0 deletions
|
@ -732,6 +732,8 @@ void pk_rsa_encrypt_decrypt_test( data_t * message, int mod, int radix_P,
|
|||
size_t olen, rlen;
|
||||
|
||||
mbedtls_pk_init( &pk );
|
||||
mbedtls_mpi_init( &N ); mbedtls_mpi_init( &P );
|
||||
mbedtls_mpi_init( &Q ); mbedtls_mpi_init( &E );
|
||||
|
||||
memset( &rnd_info, 0, sizeof( mbedtls_test_rnd_pseudo_info ) );
|
||||
memset( output, 0, sizeof( output ) );
|
||||
|
|
Loading…
Reference in a new issue