MPI structure.
Public Functions#
mbedtls_mpi_uint *
Pointer to limbs.
signed short
Sign: -1 if the mpi is negative, 1 otherwise.
unsigned short
Total number of limbs in p.
Public Function Documentation#
MBEDTLS_PRIVATE#
mbedtls_mpi_uint * mbedtls_mpi::MBEDTLS_PRIVATE (p )
Pointer to limbs.
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| p | N/A |
This may be NULL if n is 0.
MBEDTLS_PRIVATE#
signed short mbedtls_mpi::MBEDTLS_PRIVATE (s )
Sign: -1 if the mpi is negative, 1 otherwise.
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| s | N/A |
The number 0 must be represented with s = +1. Although many library functions treat all-limbs-zero as equivalent to a valid representation of 0 regardless of the sign bit, there are exceptions, so bignum functions and external callers must always set s to +1 for the number zero.
Note that this implies that calloc() or ... = {0} does not create a valid MPI representation. You must call mbedtls_mpi_init().
MBEDTLS_PRIVATE#
unsigned short mbedtls_mpi::MBEDTLS_PRIVATE (n )
Total number of limbs in p.
Parameters
| Type | Direction | Argument Name | Description |
|---|---|---|---|
| n | N/A |