mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 11:45:42 +01:00
- Moved mpi_inv_mod() outside POLARSSL_GENPRIME
This commit is contained in:
parent
7a2538ee38
commit
d9374b05d6
@ -3,6 +3,7 @@ PolarSSL ChangeLog
|
|||||||
= Version Trunk
|
= Version Trunk
|
||||||
Bugfixes
|
Bugfixes
|
||||||
* Fixes for MSVC6
|
* Fixes for MSVC6
|
||||||
|
* Moved mpi_inv_mod() outside POLARSSL_GENPRIME
|
||||||
|
|
||||||
= Version 1.2.0 released 2012-10-31
|
= Version 1.2.0 released 2012-10-31
|
||||||
Features
|
Features
|
||||||
|
@ -1652,8 +1652,6 @@ 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)
|
||||||
*/
|
*/
|
||||||
@ -1749,6 +1747,8 @@ cleanup:
|
|||||||
return( ret );
|
return( ret );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(POLARSSL_GENPRIME)
|
||||||
|
|
||||||
static const int small_prime[] =
|
static const int small_prime[] =
|
||||||
{
|
{
|
||||||
3, 5, 7, 11, 13, 17, 19, 23,
|
3, 5, 7, 11, 13, 17, 19, 23,
|
||||||
|
Loading…
Reference in New Issue
Block a user