mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-04 06:40:03 +00:00
bignum_core: Style update
'mbedtls_mpi_core_get_mont_R2_unsafe' aligns const keyword to match the style of the rest of the module. Documentation is also updated to remove `MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED`. Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
parent
ae4fb671b4
commit
51d638baf6
@ -512,7 +512,7 @@ void mbedtls_mpi_core_montmul( mbedtls_mpi_uint *X,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int mbedtls_mpi_core_get_mont_R2_unsafe( mbedtls_mpi *X,
|
int mbedtls_mpi_core_get_mont_R2_unsafe( mbedtls_mpi *X,
|
||||||
mbedtls_mpi const *N )
|
const mbedtls_mpi *N )
|
||||||
{
|
{
|
||||||
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
|
||||||
|
|
||||||
|
@ -426,9 +426,8 @@ void mbedtls_mpi_core_montmul( mbedtls_mpi_uint *X,
|
|||||||
* to store the value of Montgomery constant squared.
|
* to store the value of Montgomery constant squared.
|
||||||
* \return #MBEDTLS_ERR_MPI_DIVISION_BY_ZERO if \p N modulus is zero.
|
* \return #MBEDTLS_ERR_MPI_DIVISION_BY_ZERO if \p N modulus is zero.
|
||||||
* \return #MBEDTLS_ERR_MPI_NEGATIVE_VALUE if \p N modulus is negative.
|
* \return #MBEDTLS_ERR_MPI_NEGATIVE_VALUE if \p N modulus is negative.
|
||||||
* \return #MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED if other operations fail.
|
|
||||||
*/
|
*/
|
||||||
int mbedtls_mpi_core_get_mont_R2_unsafe( mbedtls_mpi *X,
|
int mbedtls_mpi_core_get_mont_R2_unsafe( mbedtls_mpi *X,
|
||||||
mbedtls_mpi const *N );
|
const mbedtls_mpi *N );
|
||||||
|
|
||||||
#endif /* MBEDTLS_BIGNUM_CORE_H */
|
#endif /* MBEDTLS_BIGNUM_CORE_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user