mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Merge pull request #7934 from AgathiyanB/move-declarations-to-top
Move declarations to top of functions
This commit is contained in:
@ -900,6 +900,8 @@ int mbedtls_mpi_add_abs(mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi
|
||||
{
|
||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||
size_t j;
|
||||
mbedtls_mpi_uint *p;
|
||||
mbedtls_mpi_uint c;
|
||||
MPI_VALIDATE_RET(X != NULL);
|
||||
MPI_VALIDATE_RET(A != NULL);
|
||||
MPI_VALIDATE_RET(B != NULL);
|
||||
@ -933,9 +935,9 @@ int mbedtls_mpi_add_abs(mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi
|
||||
|
||||
/* j is the number of non-zero limbs of B. Add those to X. */
|
||||
|
||||
mbedtls_mpi_uint *p = X->p;
|
||||
p = X->p;
|
||||
|
||||
mbedtls_mpi_uint c = mbedtls_mpi_core_add(p, p, B->p, j);
|
||||
c = mbedtls_mpi_core_add(p, p, B->p, j);
|
||||
|
||||
p += j;
|
||||
|
||||
|
Reference in New Issue
Block a user