*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> BN_ucmp (3)              
Title
Content
Arch
Section
 

BN_cmp(3)

Contents


NAME    [Toc]    [Back]

       BN_cmp,   BN_ucmp,   BN_is_zero,   BN_is_one,  BN_is_word,
       BN_is_odd - BIGNUM comparison and test functions

SYNOPSIS    [Toc]    [Back]

       #include <openssl/bn.h>

       int BN_cmp(
               BIGNUM *a, BIGNUM *b ); int BN_ucmp(
               BIGNUM *a, BIGNUM *b ); int BN_is_zero(
               BIGNUM *a ); int BN_is_one(
               BIGNUM *a ); int BN_is_word(
               BIGNUM *a, BN_ULONG w ); int BN_is_odd(
               BIGNUM *a );

DESCRIPTION    [Toc]    [Back]

       The BN_cmp() function compares the numbers a  and  b.  The
       BN_ucmp() function compares their absolute values.

       The  BN_is_zero(), BN_is_one(), and BN_is_word() test if a
       equals 0, 1, or w respectively. The BN_is_odd() tests if a
       is odd.

       The    BN_is_zero(),    BN_is_one(),   BN_is_word(),   and
       BN_is_odd() are macros.

RETURN VALUES    [Toc]    [Back]

       The BN_cmp() functon returns -1 if a < b, 0 if a == b  and
       1  if  a > b. The BN_ucmp() function is the same using the
       absolute values of a and b.

       The   BN_is_zero(),   BN_is_one(),    BN_is_word(),    and
       BN_is_odd()  macros  return  1 if the condition is true, 0
       otherwise.

HISTORY    [Toc]    [Back]

       The BN_cmp(), BN_ucmp(),  BN_is_zero(),  BN_is_one(),  and
       BN_is_word()  functions  are  available in all versions of
       SSLeay and OpenSSL.  The BN_is_odd() function was added in
       SSLeay 0.8.

SEE ALSO    [Toc]    [Back]

      
      
       Functions: bn(3)



                                                        BN_cmp(3)
[ Back ]
 Similar pages
Name OS Title
lge IRIX FORTRAN string comparison intrinsic functions
strcmp IRIX FORTRAN string comparison intrinsic functions
bn_expand OpenBSD BIGNUM library internal functions
bn_dump OpenBSD BIGNUM library internal functions
bn_mul_high Tru64 BIGNUM library internal functions
bn_div_words OpenBSD BIGNUM library internal functions
bn_mul_comba4 Tru64 BIGNUM library internal functions
bn_check_top OpenBSD BIGNUM library internal functions
bn_mul_comba8 Tru64 BIGNUM library internal functions
bn_cmp_words OpenBSD BIGNUM library internal functions
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service