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

mbedtls_mpi_add_abs() function

Perform an unsigned addition of MPIs: X = |A| + |B|

Syntax

int mbedtls_mpi_add_abs( mbedtls_mpi *X,     const mbedtls_mpi *A,     const mbedtls_mpi *B );
Implemented in bignum.c:1089

Arguments

X

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

A

The first summand. This must point to an initialized MPI.

B

The second summand. This must point to an initialized MPI.

Return value

\c 0 if successful. #MBEDTLS_ERR_MPI_ALLOC_FAILED if a memory allocation failed. Another negative error code on different kinds of failure.

References

LocationReferrerText
bignum.c:1089
int mbedtls_mpi_add_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B )
bignum.h:585
int mbedtls_mpi_add_abs( mbedtls_mpi *X, const mbedtls_mpi *A,
bignum.c:1238mbedtls_mpi_add_mpi()
MBEDTLS_MPI_CHK( mbedtls_mpi_add_abs( X, A, B ) );
bignum.c:1273mbedtls_mpi_sub_mpi()
MBEDTLS_MPI_CHK( mbedtls_mpi_add_abs( X, A, B ) );

Call Tree

Functions calling mbedtls_mpi_add_abs()
Functions called by mbedtls_mpi_add_abs()
mbedtls_mpi_add_abs()
Data read by mbedtls_mpi_add_abs()
Data written by mbedtls_mpi_add_abs()
mbedtls_mpi_add_abs()::ret
mbedtls_mpi_add_abs()::i
mbedtls_mpi_add_abs()::j
mbedtls_mpi_add_abs()::o
mbedtls_mpi_add_abs()::p
mbedtls_mpi_add_abs()::c
mbedtls_mpi_add_abs()::tmp
mbedtls_mpi_add_abs()::T
all items filtered out
mbedtls_mpi_add_abs()
mbedtls_mpi_add_abs()::ret
mbedtls_mpi_add_abs()::i
mbedtls_mpi_add_abs()::j
mbedtls_mpi_add_abs()::o
mbedtls_mpi_add_abs()::p
mbedtls_mpi_add_abs()::c
mbedtls_mpi_add_abs()::tmp
all items filtered out
Type of mbedtls_mpi_add_abs()
mbedtls_mpi_add_abs()
size_t
all items filtered out