Home
last modified time | relevance | path

Searched refs:zbn (Results 1 – 2 of 2) sorted by relevance

/src/crypto/openssl/test/
H A Dparam_build_test.c23 BIGNUM *zbn = NULL, *zbn_res = NULL; in template_public_single_zero_test() local
27 || !TEST_ptr(zbn = BN_new()) in template_public_single_zero_test()
29 idx == 0 ? zbn : NULL)) in template_public_single_zero_test()
39 || !TEST_BN_eq(zbn_res, zbn)) in template_public_single_zero_test()
47 BN_free(zbn); in template_public_single_zero_test()
56 BIGNUM *zbn = NULL, *zbn_res = NULL; in template_private_single_zero_test() local
60 || !TEST_ptr(zbn = BN_secure_new()) in template_private_single_zero_test()
61 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, "zeronumber", zbn)) in template_private_single_zero_test()
72 || !TEST_int_eq(BN_get_flags(zbn, BN_FLG_SECURE), BN_FLG_SECURE) in template_private_single_zero_test()
73 || !TEST_BN_eq(zbn_res, zbn)) in template_private_single_zero_test()
[all …]
H A Dbntest.c2236 BIGNUM *zbn = NULL; in test_bin2zero() local
2239 if (!TEST_ptr(zbn = BN_new())) in test_bin2zero()
2243 if (!TEST_ptr(fn(input, 1, zbn)) \ in test_bin2zero()
2244 || !TEST_true(BN_is_zero(zbn)) \ in test_bin2zero()
2245 || !TEST_ptr(fn(input, 0, zbn)) \ in test_bin2zero()
2246 || !TEST_true(BN_is_zero(zbn)) \ in test_bin2zero()
2247 || !TEST_ptr(fn(NULL, 0, zbn)) \ in test_bin2zero()
2248 || !TEST_true(BN_is_zero(zbn))) \ in test_bin2zero()
2259 BN_free(zbn); in test_bin2zero()