mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-24 19:43:32 +00:00
Move declaration in ecp_mod_koblitz to top
Signed-off-by: Agathiyan Bragadeesh <agathiyan.bragadeesh2@arm.com>
This commit is contained in:
parent
c99840ae1f
commit
ec4c91ecc1
@ -5657,6 +5657,7 @@ static inline int ecp_mod_koblitz(mbedtls_mpi_uint *X,
|
||||
size_t shift = bits % biL;
|
||||
size_t adjust = (shift + biL - 1) / biL;
|
||||
size_t P_limbs = bits / biL + adjust;
|
||||
mbedtls_mpi_uint mask = 0;
|
||||
|
||||
mbedtls_mpi_uint *A1 = mbedtls_calloc(P_limbs, ciL);
|
||||
if (A1 == NULL) {
|
||||
@ -5672,7 +5673,6 @@ static inline int ecp_mod_koblitz(mbedtls_mpi_uint *X,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
mbedtls_mpi_uint mask = 0;
|
||||
if (adjust != 0) {
|
||||
mask = ((mbedtls_mpi_uint) 1 << shift) - 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user