Lines Matching refs:bn
183 static const char *test_bignum_zero_null(const BIGNUM *bn) in test_bignum_zero_null() argument
185 if (bn != NULL) in test_bignum_zero_null()
186 return BN_is_negative(bn) ? "-0" : "0"; in test_bignum_zero_null()
194 static void test_bignum_zero_print(const BIGNUM *bn, char sep) in test_bignum_zero_print() argument
196 const char *v = test_bignum_zero_null(bn); in test_bignum_zero_print()
197 const char *suf = bn != NULL ? ": 0" : ""; in test_bignum_zero_print()
207 char *out, int *lz, const BIGNUM *bn) in convert_bn_memory() argument
213 if (bn != NULL && !BN_is_zero(bn)) { in convert_bn_memory()
227 if ((in[bytes] & 0xf0) != 0 && BN_is_negative(bn)) { in convert_bn_memory()
234 if (BN_is_negative(bn)) { in convert_bn_memory()
253 if (bn == NULL) in convert_bn_memory()
256 r = BN_is_negative(bn) ? "-0" : "0"; in convert_bn_memory()
379 const char *op, const BIGNUM *bn) in test_fail_bignum_mono_message() argument
381 test_fail_bignum_common(prefix, file, line, type, left, right, op, bn, bn); in test_fail_bignum_mono_message()
385 void test_output_bignum(const char *name, const BIGNUM *bn) in test_output_bignum() argument
387 if (bn == NULL || BN_is_zero(bn)) { in test_output_bignum()
389 test_bignum_zero_null(bn)); in test_output_bignum()
390 } else if (BN_num_bytes(bn) <= BN_OUTPUT_SIZE) { in test_output_bignum()
394 int n = BN_bn2bin(bn, buf); in test_output_bignum()
400 BN_is_negative(bn) ? "-" : "", p); in test_output_bignum()
403 bn, bn); in test_output_bignum()