Manual Pages for UNIX Darwin command on man BN_value_one
MyWebUniversity

Manual Pages for UNIX Darwin command on man BN_value_one

BNzero(3) OpenSSL BNzero(3)

NAME

BNzero, BNone, BNvalueone, BNsetword, BNgetword - BIGNUM

assignment operations

SYNOPSIS

#include

int BNzero(BIGNUM *a); int BNone(BIGNUM *a); const BIGNUM *BNvalueone(void); int BNsetword(BIGNUM *a, unsigned long w); unsigned long BNgetword(BIGNUM *a);

DESCRIPTION

BNzero(), BNone() and BNsetword() set aa to the values 0, 1 and ww respectively. BNzero() and BNone() are macros. BNvalueone() returns a BBIIGGNNUUMM constant of value 1. This constant is useful for use in comparisons and assignment. BNgetword() returns aa, if it can be represented as an unsigned long.

RETURN VALUES

BNgetword() returns the value aa, and 0xffffffffL if aa cannot be represented as an unsigned long. BNzero(), BNone() and BNsetword() return 1 on success, 0 otherwise. BNvalueone() returns the constant.

BUGS

Someone might change the constant. If a BBIIGGNNUUMM is equal to 0xffffffffL it can be represented as an unsigned long but this value is also returned on error.

SEE ALSO

bn(3), BNbn2bin(3) HISTORY BNzero(), BNone() and BNsetword() are available in all versions of SSLeay and OpenSSL. BNvalueone() and BNgetword() were added in SSLeay 0.8. BNvalueone() was changed to return a true const BIGNUM * in OpenSSL 0.9.7.

0.9.7l 2002-07-18 BNzero(3)




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