mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-18 05:42:35 +00:00
Fix mbedtls_platform_zeroize() call in mbedtls_mpi_mod_modulus_free()
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
9fa4897839
commit
e9ffb6c8e9
@ -79,7 +79,7 @@ void mbedtls_mpi_mod_modulus_free( mbedtls_mpi_mod_modulus *m )
|
|||||||
if (m->rep.mont.rr != NULL)
|
if (m->rep.mont.rr != NULL)
|
||||||
{
|
{
|
||||||
mbedtls_platform_zeroize( (mbedtls_mpi_uint *) m->rep.mont.rr,
|
mbedtls_platform_zeroize( (mbedtls_mpi_uint *) m->rep.mont.rr,
|
||||||
m->limbs );
|
m->limbs * sizeof(mbedtls_mpi_uint) );
|
||||||
mbedtls_free( (mbedtls_mpi_uint *)m->rep.mont.rr );
|
mbedtls_free( (mbedtls_mpi_uint *)m->rep.mont.rr );
|
||||||
m->rep.mont.rr = NULL;
|
m->rep.mont.rr = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user