mbedtls_mpi_size() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_mpi_size() function

Return the total size of an MPI value in bytes.

Syntax

size_t mbedtls_mpi_size( const mbedtls_mpi *X );
Implemented in bignum.c:433

Arguments

X

The MPI to use. This must point to an initialized MPI.

Return value

The least number of bytes capable of storing the absolute value of \p X.

Notes

The value returned by this function may be less than the number of bytes used to store \p X internally. This happens if and only if there are trailing bytes of value zero.

References

LocationReferrerText
bignum.c:433
size_t mbedtls_mpi_size( const mbedtls_mpi *X )
bignum.h:400
size_t mbedtls_mpi_size( const mbedtls_mpi *X );
asn1write.c:139mbedtls_asn1_write_mpi()
len = mbedtls_mpi_size( X );
ecdh.c:636ecdh_calc_secret_internal()
if( mbedtls_mpi_size( &ctx->z ) > blen )
ecp.c:762mbedtls_ecp_point_write_binary()
plen = mbedtls_mpi_size( &grp->P );
ecp.c:814mbedtls_ecp_point_read_binary()
plen = mbedtls_mpi_size( &grp->P );

Call Tree

Functions calling mbedtls_mpi_size()
Functions called by mbedtls_mpi_size()
mbedtls_mpi_size()
all items filtered out
Data read by mbedtls_mpi_size()
all items filtered out
mbedtls_mpi_size()
Type of mbedtls_mpi_size()
mbedtls_mpi_size()
size_t
all items filtered out