mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-11-09 14:50:17 +08:00
ecp: minor optimisation
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
0395de165b
commit
07db30533a
@ -5501,7 +5501,7 @@ static void ecp_copy_shift_r_224(mbedtls_mpi_uint *X,
|
||||
* P448_WIDTH = P224_WIDTH_MIN + P224_WIDTH_MAX */
|
||||
memcpy(X + P224_WIDTH_MIN, A + P224_WIDTH_MIN, P224_WIDTH_MAX * ciL);
|
||||
X[P448_WIDTH] = 0;
|
||||
mbedtls_mpi_core_shift_r(X, P448_WIDTH + 1, 224);
|
||||
mbedtls_mpi_core_shift_r(X, P448_WIDTH, 224);
|
||||
#else
|
||||
/* Shortcut for 32-bit and little-endian 64-bit.
|
||||
* P448_WITDH * ciL = 2 * P224_SIZE */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user