Path: blob/master/thirdparty/mbedtls/library/bignum_mod_raw_invasive.h
9898 views
/**1* \file bignum_mod_raw_invasive.h2*3* \brief Function declarations for invasive functions of Low-level4* modular bignum.5*/6/**7* Copyright The Mbed TLS Contributors8* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later9*/1011#ifndef MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H12#define MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H1314#include "common.h"15#include "mbedtls/bignum.h"16#include "bignum_mod.h"1718#if defined(MBEDTLS_TEST_HOOKS)1920/** Convert the result of a quasi-reduction to its canonical representative.21*22* \param[in,out] X The address of the MPI to be converted. Must have the23* same number of limbs as \p N. The input value must24* be in range 0 <= X < 2N.25* \param[in] N The address of the modulus.26*/27MBEDTLS_STATIC_TESTABLE28void mbedtls_mpi_mod_raw_fix_quasi_reduction(mbedtls_mpi_uint *X,29const mbedtls_mpi_mod_modulus *N);3031#endif /* MBEDTLS_TEST_HOOKS */3233#endif /* MBEDTLS_BIGNUM_MOD_RAW_INVASIVE_H */343536