mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-19 17:23:48 +00:00
- mpi_exp_mod() now correctly handles negative base numbers (Closes ticket #52)
This commit is contained in:
@@ -543,7 +543,8 @@ int mpi_mod_int( t_uint *r, const mpi *A, t_sint b );
|
||||
*
|
||||
* \return 0 if successful,
|
||||
* POLARSSL_ERR_MPI_MALLOC_FAILED if memory allocation failed,
|
||||
* POLARSSL_ERR_MPI_BAD_INPUT_DATA if N is negative or even
|
||||
* POLARSSL_ERR_MPI_BAD_INPUT_DATA if N is negative or even or if
|
||||
* E is negative
|
||||
*
|
||||
* \note _RR is used to avoid re-computing R*R mod N across
|
||||
* multiple calls, which speeds up things a bit. It can
|
||||
|
||||
Reference in New Issue
Block a user