1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

- Const correctness mpi_get_bit()

- Documentation mpi_lsb(), mpi_msb()
This commit is contained in:
Paul Bakker
2012-05-08 12:01:43 +00:00
parent 05ef835b6a
commit 6b906e5095
3 changed files with 12 additions and 4 deletions

View File

@ -173,7 +173,7 @@ cleanup:
/*
* Get a specific bit
*/
int mpi_get_bit( mpi *X, size_t pos )
int mpi_get_bit( const mpi *X, size_t pos )
{
if( X->n * biL <= pos )
return( 0 );