MirBSD manpage: BN_cmp(3), BN_is_odd(3), BN_is_one(3), BN_is_word(3), BN_is_zero(3), BN_ucmp(3)

BN_CMP(3)                    OpenSSL                    BN_CMP(3)


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


      #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);


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

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

     BN_is_zero(), BN_is_one(), BN_is_word() and BN_is_odd() are


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

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




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

MirBSD #10-current         2005-02-05                           1

Generated on 2022-12-24 01:00:14 by $MirOS: src/scripts/roff2htm,v 1.113 2022/12/21 23:14:31 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2022 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.

Kontakt / Impressum & Datenschutzerklärung