Lines Matching refs:bn
175 int BN_abs_is_word(const BIGNUM *bn, BN_ULONG w) { in BN_abs_is_word() argument
176 switch (bn->top) { in BN_abs_is_word()
178 return bn->d[0] == w; in BN_abs_is_word()
186 int BN_is_zero(const BIGNUM *bn) { in BN_is_zero() argument
187 return bn->top == 0; in BN_is_zero()
190 int BN_is_one(const BIGNUM *bn) { in BN_is_one() argument
191 return bn->neg == 0 && BN_abs_is_word(bn, 1); in BN_is_one()
194 int BN_is_word(const BIGNUM *bn, BN_ULONG w) { in BN_is_word() argument
195 return BN_abs_is_word(bn, w) && (w == 0 || bn->neg == 0); in BN_is_word()
198 int BN_is_odd(const BIGNUM *bn) { in BN_is_odd() argument
199 return bn->top > 0 && (bn->d[0] & 1) == 1; in BN_is_odd()