Home
last modified time | relevance | path

Searched refs:BN_is_one (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/crypto/openssl/doc/man3/
H A DBN_cmp.pod5 BN_cmp, BN_ucmp, BN_is_zero, BN_is_one, BN_is_word, BN_abs_is_word, BN_is_odd - BIGNUM comparison a…
15 int BN_is_one(const BIGNUM *a);
25 BN_is_zero(), BN_is_one(), BN_is_word() and BN_abs_is_word() test if
35 BN_is_zero(), BN_is_one() BN_is_word(), BN_abs_is_word() and
40 Prior to OpenSSL 1.1.0, BN_is_zero(), BN_is_one(), BN_is_word(),
/freebsd/usr.bin/factor/
H A Dfactor.c89 #define BN_is_one(v) (*(v) == 1) macro
173 if (BN_is_one(val)) { in pr_fact()
186 for (fact = &prime[0]; !BN_is_one(val); ++fact) { in pr_fact()
267 if (BN_is_one(base)) in pollard_pminus1()
275 if (!BN_is_one(x)) { in pollard_pminus1()
283 if (BN_is_one(num)) in pollard_pminus1()
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_sqrt.c47 if (BN_is_zero(a) || BN_is_one(a)) { in BN_mod_sqrt()
52 if (!BN_set_word(ret, BN_is_one(a))) { in BN_mod_sqrt()
229 if (BN_is_one(y)) { in BN_mod_sqrt()
300 if (BN_is_one(b)) { in BN_mod_sqrt()
317 if (BN_is_one(t)) in BN_mod_sqrt()
H A Dbn_prime.c399 if (!BN_is_one(g)) { in ossl_bn_miller_rabin_is_prime()
409 if (BN_is_one(z) || BN_cmp(z, w1) == 0) in ossl_bn_miller_rabin_is_prime()
420 if (BN_is_one(z)) in ossl_bn_miller_rabin_is_prime()
428 if (BN_is_one(z)) in ossl_bn_miller_rabin_is_prime()
439 if (BN_is_one(g)) in ossl_bn_miller_rabin_is_prime()
H A Dbn_gcd.c167 if (BN_is_one(A)) { in bn_mod_inverse_no_branch()
448 if (BN_is_one(D)) { in int_bn_mod_inverse()
492 if (BN_is_one(A)) { in int_bn_mod_inverse()
H A Dbn_rsa_fips186_4.c292 && BN_is_one(tmp) in ossl_bn_rsa_fips186_4_derive_prime()
343 if (BN_is_one(tmp)) { in ossl_bn_rsa_fips186_4_derive_prime()
H A Dbn_kron.c103 ret = BN_is_one(B) ? ret : 0; in BN_kronecker()
H A Dbn_mont.c314 if (BN_is_one(&tmod)) in BN_MONT_CTX_set()
349 if (BN_is_one(&tmod)) in BN_MONT_CTX_set()
H A Dbn_x931p.c130 if (BN_is_one(t)) { in BN_X931_derive_prime_ex()
H A Dbn_lib.c953 int BN_is_one(const BIGNUM *a)
928 int BN_is_one(const BIGNUM *a) BN_is_one() function
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_sp800_56b_check.c66 && BN_is_one(r) in ossl_rsa_check_crt_components()
69 && BN_is_one(r) in ossl_rsa_check_crt_components()
72 && BN_is_one(r); in ossl_rsa_check_crt_components()
162 && BN_is_one(gcd); in ossl_rsa_check_prime_factor()
210 && BN_is_one(r)); in ossl_rsa_check_private_exponent()
327 || !BN_is_one(gcd)) {
H A Drsa_chk.c58 if (BN_is_one(key->e)) { in rsa_validate_keypair_multiprime()
155 if (!BN_is_one(i)) { in rsa_validate_keypair_multiprime()
H A Drsa_pmeth.c500 if (p2 == NULL || !BN_is_odd((BIGNUM *)p2) || BN_is_one((BIGNUM *)p2)) { in pkey_rsa_ctrl()
/freebsd/crypto/openssl/crypto/dh/
H A Ddh_check.c88 || BN_is_one(dh->params.g)) in DH_check_params()
190 if (!BN_is_one(t1)) in DH_check()
201 if (!BN_is_one(t2)) in DH_check()
/freebsd/contrib/ntp/util/
H A Dntp-keygen.c1201 temp = BN_is_one(u); in gen_iffkey()
1397 temp = BN_is_one(g); in gen_gqkey()
1669 if (!BN_is_one(u)) in gen_mvkey()
1673 if (BN_is_one(u)) in gen_mvkey()
1695 if (BN_is_one(u)) in gen_mvkey()
1745 if (!BN_is_one(u)) in gen_mvkey()
1780 if (BN_is_one(u)) in gen_mvkey()
1939 if (!BN_is_one(u)) { in gen_mvkey()
/freebsd/crypto/openssl/crypto/ffc/
H A Dffc_key_validate.c83 if (!BN_is_one(tmp)) in ossl_ffc_validate_public_key()
/freebsd/crypto/openssl/test/
H A Dec_internal_test.c39 || !TEST_true(BN_is_one(b)) in group_field_tests()
51 || !TEST_true(BN_is_one(c))) in group_field_tests()
/freebsd/crypto/openssl/crypto/ec/
H A Dec_pmeth.c300 if (BN_is_one(ec_key->group->cofactor)) in pkey_ec_ctrl()
H A Dec_backend.c377 if (BN_is_one(cofactor)) in ossl_ec_set_ecdh_cofactor_mode()
H A Decp_smpl.c414 Z_is_one = BN_is_one(point->Z); in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
540 if (BN_is_one(Z_)) { in ossl_ec_GFp_simple_point_get_affine_coordinates()
/freebsd/crypto/openssl/providers/implementations/exchange/
H A Decdh_exch.c478 && !BN_is_one(cofactor)) { in ecdh_plain_derive()
/freebsd/crypto/openssl/test/testutil/
H A Dtests.c390 if (a != NULL && BN_is_one(a)) in test_BN_eq_one()
/freebsd/crypto/openssl/include/openssl/
H A Dbn.h193 int BN_is_one(const BIGNUM *a);
/freebsd/usr.bin/dc/
H A Dbcode.c1288 if (BN_is_one(r)) in bsqrt_stop()
/freebsd/contrib/wpa/src/crypto/
H A Dcrypto_openssl.c777 if (!pub || !p || BN_is_zero(pub) || BN_is_one(pub) || in crypto_dh_derive_secret()
792 !BN_is_one(tmp); in crypto_dh_derive_secret()
2190 return BN_is_one((const BIGNUM *) a); in crypto_bignum_is_one()

12