mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-05 19:35:48 +03:00
@@ -5080,7 +5080,7 @@ int mbedtls_ecp_mod_p224_raw(mbedtls_mpi_uint *X, size_t X_limbs)
|
|||||||
RESET;
|
RESET;
|
||||||
|
|
||||||
/* Use 2^224 = P + 2^96 - 1 to modulo reduce the final carry */
|
/* Use 2^224 = P + 2^96 - 1 to modulo reduce the final carry */
|
||||||
SUB_LAST; NEXT; // A0 += -last_c
|
SUB_LAST; NEXT; // A0 -= last_c
|
||||||
; NEXT; // A1
|
; NEXT; // A1
|
||||||
; NEXT; // A2
|
; NEXT; // A2
|
||||||
ADD_LAST; NEXT; // A3 += last_c
|
ADD_LAST; NEXT; // A3 += last_c
|
||||||
@@ -5088,6 +5088,9 @@ int mbedtls_ecp_mod_p224_raw(mbedtls_mpi_uint *X, size_t X_limbs)
|
|||||||
; NEXT; // A5
|
; NEXT; // A5
|
||||||
// A6
|
// A6
|
||||||
|
|
||||||
|
/* The carry reduction cannot generate a carry
|
||||||
|
* (see commit 73e8553 for details)*/
|
||||||
|
|
||||||
LAST;
|
LAST;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user