Home
last modified time | relevance | path

Searched refs:bn2 (Results 1 – 5 of 5) sorted by relevance

/openssl/test/
H A Dkeymgmt_internal_test.c147 BIGNUM *bn1 = NULL, *bn2 = NULL, *bn3 = NULL; in test_pass_rsa() local
182 || !TEST_ptr(bn2 = BN_new()) in test_pass_rsa()
183 || !TEST_true(BN_set_word(bn2, expected[E])) in test_pass_rsa()
186 || !TEST_true(RSA_set0_key(rsa, bn1, bn2, bn3))) in test_pass_rsa()
191 || !TEST_ptr(bn2 = BN_new()) in test_pass_rsa()
192 || !TEST_true(BN_set_word(bn2, expected[Q])) in test_pass_rsa()
193 || !TEST_true(RSA_set0_factors(rsa, bn1, bn2))) in test_pass_rsa()
198 || !TEST_ptr(bn2 = BN_new()) in test_pass_rsa()
199 || !TEST_true(BN_set_word(bn2, expected[DQ])) in test_pass_rsa()
204 bn1 = bn2 = bn3 = NULL; in test_pass_rsa()
[all …]
H A Dbntest.c1955 BN_free(bn2); in test_bn2signed()
1956 bn2 = NULL; in test_bn2signed()
1963 BN_free(bn2); in test_bn2signed()
1964 bn2 = NULL; in test_bn2signed()
1982 BN_free(bn2); in test_bn2signed()
1983 bn2 = NULL; in test_bn2signed()
1992 BN_free(bn2); in test_bn2signed()
2201 BIGNUM *bn2 = NULL; in test_mpi() local
2218 if (!TEST_BN_eq(bn, bn2)) { in test_mpi()
2219 BN_free(bn2); in test_mpi()
[all …]
H A Dparams_api_test.c612 BIGNUM *bn = NULL, *bn2 = NULL; in test_param_construct() local
746 if (!TEST_true(OSSL_PARAM_get_BN(cp, &bn2)) in test_param_construct()
747 || !TEST_BN_eq(bn, bn2)) in test_param_construct()
756 BN_free(bn2); in test_param_construct()
/openssl/test/testutil/
H A Dformat_output.c269 const BIGNUM *bn1, const BIGNUM *bn2) in test_fail_bignum_common() argument
282 l2 = bn2 == NULL ? 0 : (BN_num_bytes(bn2) + (BN_is_negative(bn2) ? 1 : 0)); in test_fail_bignum_common()
284 if ((bn1 == NULL) == (bn2 == NULL)) { in test_fail_bignum_common()
291 test_bignum_zero_print(bn2, '+'); in test_fail_bignum_common()
296 if (l1 != l2 || bn1 == NULL || bn2 == NULL || BN_cmp(bn1, bn2) != 0) in test_fail_bignum_common()
312 if (bn2 != NULL) { in test_fail_bignum_common()
314 BN_bn2binpad(bn2, m2, len); in test_fail_bignum_common()
320 n2 = convert_bn_memory(m2, bytes, b2, &lz2, bn2); in test_fail_bignum_common()
341 if (cnt == 0 && bn2 == NULL) in test_fail_bignum_common()
346 && bn1 != NULL && bn2 != NULL) in test_fail_bignum_common()
[all …]
H A Dtu_local.h36 const BIGNUM *bn1, const BIGNUM *bn2);

Completed in 17 milliseconds