- Moved mpi_gcd() outside of the POLARSSL_GENPRIME define. Is needed in rsa.c for normal use.

This commit is contained in:
Paul Bakker 2009-03-14 18:01:25 +00:00
parent 8cda68bcdc
commit 70b3eed2aa

View file

@ -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)
*/