diff options
author | Werner Koch <wk@gnupg.org> | 2011-02-01 16:13:37 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-02-01 16:13:37 +0100 |
commit | dbf7709d6339f74d7a88c96440e92576f3109486 (patch) | |
tree | a284528d6b0342c931cf04081d5b7a0a6132bed3 /doc | |
parent | 5c4179860ef0b31b4c6ba957be9fa707a0ba7d9b (diff) | |
download | libgcrypt-dbf7709d6339f74d7a88c96440e92576f3109486.tar.gz |
Handle opaque MPIs in gcry_mpi_cmp
Diffstat (limited to 'doc')
-rw-r--r-- | doc/gcrypt.texi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi index 663ca5e4..886c3962 100644 --- a/doc/gcrypt.texi +++ b/doc/gcrypt.texi @@ -4507,7 +4507,10 @@ The next 2 functions are used to compare MPIs: Compare the multi-precision-integers number @var{u} and @var{v} returning 0 for equality, a positive value for @var{u} > @var{v} and a -negative for @var{u} < @var{v}. +negative for @var{u} < @var{v}. If both numbers are opaque values +(cf, gcry_mpi_set_opaque) the comparison is done by checking the bit +sizes using memcmp. If only one number is an opaque value, the opaque +value is less than the other number. @end deftypefun @deftypefun int gcry_mpi_cmp_ui (@w{const gcry_mpi_t @var{u}}, @w{unsigned long @var{v}}) |