Lines Matching refs:bn
31 BIGNUM *bn; in tests() local
40 bn = BN_new(); in tests()
41 ASSERT_PTR_NE(bn, NULL); in tests()
49 BN_clear(bn); in tests()
55 ASSERT_INT_EQ(BN_set_bit(bn, i), 1); in tests()
59 ASSERT_INT_EQ(BN_set_bit(bn, j), 1); in tests()
63 ASSERT_INT_EQ(BN_set_bit(bn, k), 1); in tests()
69 ASSERT_INT_EQ(BN_is_bit_set(bn, n), in tests()
75 ASSERT_INT_EQ(BN_num_bits(bn), in tests()
77 ASSERT_INT_EQ(BN_num_bytes(bn), in tests()
89 r = BN_bn2bin(bn, bnbuf); in tests()
101 ASSERT_INT_EQ(BN_is_bit_set(bn, n), in tests()
110 ASSERT_INT_EQ(BN_set_bit(bn, n), 1); in tests()
114 BN_clear_bit(bn, i); in tests()
118 BN_clear_bit(bn, j); in tests()
122 BN_clear_bit(bn, k); in tests()
125 ASSERT_INT_EQ(BN_is_bit_set(bn, n), in tests()
132 BN_free(bn); in tests()