mbedtls_mpi
bignum.h
int int mbedtls_mpi::s s mbedtls_mpi::s

Sign: -1 if the mpi is negative, 1 otherwise.

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().

size_t size_t mbedtls_mpi::n n mbedtls_mpi::n

Total number of limbs in `p`.

mbedtls_mpi_uint * mbedtls_mpi_uint* mbedtls_mpi::p p mbedtls_mpi::p

Pointer to limbs.

This may be `NULL` if `n` is 0.

mbedtls_ecp_group_a_is_minus_3

MPI structure.

- mbedtls_mpi
  n
- mbedtls_mpi
  p
- mbedtls_mpi
  s