NCBI C++ ToolKit

Search Toolkit Book for mbedtls_mpi
MPI structure. More...
#include "bignum.h"
(Private to src/connect/mbedtls/mbedtls
.)
Public Member Functions  
mbedtls_mpi_uint *  MBEDTLS_PRIVATE (p) 
Pointer to limbs. More...  
signed short  MBEDTLS_PRIVATE (s) 
Sign: 1 if the mpi is negative, 1 otherwise. More...  
unsigned short  MBEDTLS_PRIVATE (n) 
Total number of limbs in p . More...  
unsigned short mbedtls_mpi::MBEDTLS_PRIVATE  (  n  ) 
Total number of limbs in p
.
mbedtls_mpi_uint* mbedtls_mpi::MBEDTLS_PRIVATE  (  p  ) 
Pointer to limbs.
This may be NULL
if n
is 0.
signed short mbedtls_mpi::MBEDTLS_PRIVATE  (  s  ) 
Sign: 1 if the mpi is negative, 1 otherwise.
The number 0 must be represented with `s = +1`. Although many library functions treat alllimbszero 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().