Home
last modified time | relevance | path

Searched refs:bn1 (Results 1 – 4 of 4) sorted by relevance

/freebsd/crypto/openssl/test/testutil/
H A Dformat_output.c270 const BIGNUM *bn1, const BIGNUM *bn2) in test_fail_bignum_common() argument
282 l1 = bn1 == NULL ? 0 : (BN_num_bytes(bn1) + (BN_is_negative(bn1) ? 1 : 0)); in test_fail_bignum_common()
285 if ((bn1 == NULL) == (bn2 == NULL)) { in test_fail_bignum_common()
287 test_bignum_zero_print(bn1, ' '); in test_fail_bignum_common()
291 test_bignum_zero_print(bn1, '-'); in test_fail_bignum_common()
297 if (l1 != l2 || bn1 == NULL || bn2 == NULL || BN_cmp(bn1, bn2) != 0) in test_fail_bignum_common()
309 if (bn1 != NULL) { in test_fail_bignum_common()
311 BN_bn2binpad(bn1, m1, len); in test_fail_bignum_common()
320 n1 = convert_bn_memory(m1, bytes, b1, &lz1, bn1); in test_fail_bignum_common()
338 if (cnt == 0 && bn1 == NULL) in test_fail_bignum_common()
[all …]
H A Dtu_local.h36 const BIGNUM *bn1, const BIGNUM *bn2);
/freebsd/crypto/openssl/test/
H A Dkeymgmt_internal_test.c147 BIGNUM *bn1 = NULL, *bn2 = NULL, *bn3 = NULL; in test_pass_rsa() local
180 if (!TEST_ptr(bn1 = BN_new()) in test_pass_rsa()
181 || !TEST_true(BN_set_word(bn1, expected[N])) in test_pass_rsa()
186 || !TEST_true(RSA_set0_key(rsa, bn1, bn2, bn3))) in test_pass_rsa()
189 if (!TEST_ptr(bn1 = BN_new()) in test_pass_rsa()
190 || !TEST_true(BN_set_word(bn1, expected[P])) in test_pass_rsa()
193 || !TEST_true(RSA_set0_factors(rsa, bn1, bn2))) in test_pass_rsa()
196 if (!TEST_ptr(bn1 = BN_new()) in test_pass_rsa()
197 || !TEST_true(BN_set_word(bn1, expected[DP])) in test_pass_rsa()
202 || !TEST_true(RSA_set0_crt_params(rsa, bn1, bn in test_pass_rsa()
[all...]
/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_getput_basic.c39 u_char bn1[] = { 0x00, 0x00, 0x00 }; in sshbuf_getput_basic_tests() local
442 ASSERT_INT_EQ(sshbuf_put_bignum2_bytes(p1, bn1, sizeof(bn1)), 0); in sshbuf_getput_basic_tests()