manpagez: man pages & more
info gcrypt
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

10.5 Comparisons

The next 2 functions are used to compare MPIs:

Function: int gcry_mpi_cmp (const gcry_mpi_t u, const gcry_mpi_t v)

Compare the multi-precision-integers number u and v returning 0 for equality, a positive value for u > v and a negative for u < v.

Function: int gcry_mpi_cmp_ui (const gcry_mpi_t u, unsigned long v)

Compare the multi-precision-integers number u with the unsigned integer v returning 0 for equality, a positive value for u > v and a negative for u < v.


© manpagez.com 2000-2025
Individual documents may contain additional copyright information.