- 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
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue