mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-12 05:03:00 +08:00
comment
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
This commit is contained in:
parent
369bfb94c5
commit
cbfd5e9db7
@ -773,7 +773,7 @@ static int mbedtls_ecp_sw_derive_y( const mbedtls_ecp_group *grp,
|
|||||||
mbedtls_mpi *Y,
|
mbedtls_mpi *Y,
|
||||||
int parity_bit )
|
int parity_bit )
|
||||||
{
|
{
|
||||||
/* y^2 = x^3 + ax + b
|
/* w = y^2 = x^3 + ax + b
|
||||||
* y = sqrt(w) = w^((p+1)/4) mod p (for prime p where p = 3 mod 4)
|
* y = sqrt(w) = w^((p+1)/4) mod p (for prime p where p = 3 mod 4)
|
||||||
*
|
*
|
||||||
* Note: this method for extracting square root does not validate that w
|
* Note: this method for extracting square root does not validate that w
|
||||||
|
Loading…
x
Reference in New Issue
Block a user