Lines Matching refs:bn
184 static const char *test_bignum_zero_null(const BIGNUM *bn)
186 if (bn != NULL)
187 return BN_is_negative(bn) ? "-0" : "0";
195 static void test_bignum_zero_print(const BIGNUM *bn, char sep)
197 const char *v = test_bignum_zero_null(bn);
198 const char *suf = bn != NULL ? ": 0" : "";
208 char *out, int *lz, const BIGNUM *bn)
214 if (bn != NULL && !BN_is_zero(bn)) {
228 if ((in[bytes] & 0xf0) != 0 && BN_is_negative(bn)) {
235 if (BN_is_negative(bn)) {
254 if (bn == NULL)
257 r = BN_is_negative(bn) ? "-0" : "0";
380 const char *op, const BIGNUM *bn)
382 test_fail_bignum_common(prefix, file, line, type, left, right, op, bn, bn);
386 void test_output_bignum(const char *name, const BIGNUM *bn)
388 if (bn == NULL || BN_is_zero(bn)) {
390 test_bignum_zero_null(bn));
391 } else if (BN_num_bytes(bn) <= BN_OUTPUT_SIZE) {
395 int n = BN_bn2bin(bn, buf);
401 BN_is_negative(bn) ? "-" : "", p);
404 bn, bn);