mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-24 06:02:44 +00:00
- Moved mpi_gcd() outside of the POLARSSL_GENPRIME define. Is needed in rsa.c for normal use.
This commit is contained in:
parent
8cda68bcdc
commit
70b3eed2aa
@ -1471,8 +1471,6 @@ cleanup:
|
|||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(POLARSSL_GENPRIME)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Greatest common divisor: G = gcd(A, B) (HAC 14.54)
|
* Greatest common divisor: G = gcd(A, B) (HAC 14.54)
|
||||||
*/
|
*/
|
||||||
@ -1524,6 +1522,8 @@ cleanup:
|
|||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(POLARSSL_GENPRIME)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Modular inverse: X = A^-1 mod N (HAC 14.61 / 14.64)
|
* Modular inverse: X = A^-1 mod N (HAC 14.61 / 14.64)
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user