1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Use a macro for mbedtls_mpi_zeroize_and_free()

Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
Tom Cosgrove
2023-07-25 14:58:25 +01:00
parent 46259f670f
commit 350226f636

View File

@ -55,10 +55,7 @@
MBEDTLS_INTERNAL_VALIDATE(cond)
/* Implementation that should never be optimized out by the compiler */
static void mbedtls_mpi_zeroize_and_free(mbedtls_mpi_uint *v, size_t n)
{
mbedtls_zeroize_and_free(v, ciL * n);
}
#define mbedtls_mpi_zeroize_and_free(v, n) mbedtls_zeroize_and_free(v, ciL * n)
/*
* Initialize one MPI