mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-22 13:20:50 +00:00
Specify modulus constraints
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
5e9d2e9019
commit
e1eb75dc99
@ -7,9 +7,10 @@
|
||||
* explicitly indicated otherwise:
|
||||
*
|
||||
* - **Modulus parameters**: the modulus is passed as a pointer to a structure
|
||||
* of type #mbedtls_mpi_mod_modulus. The structure must be setup with an
|
||||
* array of limbs storing the bignum value of the modulus. Unless otherwise
|
||||
* specified, the modulus is called \p N and is input-only.
|
||||
* of type #mbedtls_mpi_mod_modulus. The structure must be set up with an
|
||||
* array of limbs storing the bignum value of the modulus. The modulus must
|
||||
* be odd and is assumed to have no leading zeroes. The modulus is usually
|
||||
* named \p N and is usually input-only.
|
||||
* - **Bignum parameters**: Bignums are passed as pointers to an array of
|
||||
* limbs or to a #mbedtls_mpi_mod_residue structure. A limb has the type
|
||||
* #mbedtls_mpi_uint. Residues must be initialized before use, and must be
|
||||
|
@ -15,9 +15,10 @@
|
||||
* The functions in this module obey the following conventions unless
|
||||
* explicitly indicated otherwise:
|
||||
* - **Modulus parameters**: the modulus is passed as a pointer to a structure
|
||||
* of type #mbedtls_mpi_mod_modulus. The structure must be setup with an
|
||||
* array of limbs storing the bignum value of the modulus. Unless otherwise
|
||||
* specified, the modulus is called \p N and is input-only.
|
||||
* of type #mbedtls_mpi_mod_modulus. The structure must be set up with an
|
||||
* array of limbs storing the bignum value of the modulus. The modulus must
|
||||
* be odd and is assumed to have no leading zeroes. The modulus is usually
|
||||
* named \p N and is usually input-only.
|
||||
* - **Bignum parameters**: Bignums are passed as pointers to an array of
|
||||
* limbs. A limb has the type #mbedtls_mpi_uint. Unless otherwise specified:
|
||||
* - Bignum parameters called \p A, \p B, ... are inputs, and are not
|
||||
|
Loading…
x
Reference in New Issue
Block a user