diff options
author | Paul Bakker <p.j.bakker@polarssl.org> | 2009-03-14 18:01:25 +0000 |
---|---|---|
committer | Paul Bakker <p.j.bakker@polarssl.org> | 2009-03-14 18:01:25 +0000 |
commit | 70b3eed2aaafcd7124bd28f6e8daba702db68f66 (patch) | |
tree | d3897a17f065deb45c43892c8a54a08b3af34610 | |
parent | 8cda68bcdc53efd2083aec0c2f2126ab64babee7 (diff) | |
download | mbedtls-70b3eed2aaafcd7124bd28f6e8daba702db68f66.zip mbedtls-70b3eed2aaafcd7124bd28f6e8daba702db68f66.tar.gz mbedtls-70b3eed2aaafcd7124bd28f6e8daba702db68f66.tar.bz2 |
- Moved mpi_gcd() outside of the POLARSSL_GENPRIME define. Is needed in rsa.c for normal use.
-rw-r--r-- | library/bignum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/bignum.c b/library/bignum.c index 1685d30..4b8fa80 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -1471,8 +1471,6 @@ cleanup: return( ret ); } -#if defined(POLARSSL_GENPRIME) - /* * Greatest common divisor: G = gcd(A, B) (HAC 14.54) */ @@ -1524,6 +1522,8 @@ cleanup: return( ret ); } +#if defined(POLARSSL_GENPRIME) + /* * Modular inverse: X = A^-1 mod N (HAC 14.61 / 14.64) */ |