Manual Pages for UNIX Darwin command on man BN_is_zero
MyWebUniversity

Manual Pages for UNIX Darwin command on man BN_is_zero

BNcmp(3) OpenSSL BNcmp(3)

NAME

BNcmp, BNucmp, BNiszero, BNisone, BNisword, BNisodd - BIGNUM

comparison and test functions

SYNOPSIS

#include

int BNcmp(BIGNUM *a, BIGNUM *b); int BNucmp(BIGNUM *a, BIGNUM *b); int BNiszero(BIGNUM *a); int BNisone(BIGNUM *a); int BNisword(BIGNUM *a, BNULONG w); int BNisodd(BIGNUM *a);

DESCRIPTION

BNcmp() compares the numbers aa and bb. BNucmp() compares their absolute values. BNiszero(), BNisone() and BNisword() test if aa equals 0, 1, or ww respectively. BNisodd() tests if a is odd. BNiszero(), BNisone(), BNisword() and BNisodd() are macros.

RETURN VALUES

BNcmp() returns -1 if aa < bb, 0 if aa == bb and 1 if aa > bb. BNucmp() is

the same using the absolute values of aa and bb. BNiszero(), BNisone() BNisword() and BNisodd() return 1 if the condition is true, 0 otherwise.

SEE ALSO

bn(3) HISTORY BNcmp(), BNucmp(), BNiszero(), BNisone() and BNisword() are available in all versions of SSLeay and OpenSSL. BNisodd() was added in SSLeay 0.8.

0.9.7l 2000-01-26 BNcmp(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™