Home
last modified time | relevance | path

Searched refs:BN_value_one (Results 1 – 20 of 20) sorted by relevance

/external/boringssl/src/crypto/rsa/
Drsa_impl.c899 !BN_sub(r2, rsa->p, BN_value_one()) || in rsa_default_multi_prime_keygen()
929 if (!BN_sub(r2, rsa->q, BN_value_one()) || in rsa_default_multi_prime_keygen()
971 if (!BN_sub(r2, ap->prime, BN_value_one()) || in rsa_default_multi_prime_keygen()
1026 if (!BN_sub(r1, rsa->p, BN_value_one())) { in rsa_default_multi_prime_keygen()
1029 if (!BN_sub(r2, rsa->q, BN_value_one())) { in rsa_default_multi_prime_keygen()
1038 if (!BN_sub(r3, ap->prime, BN_value_one()) || in rsa_default_multi_prime_keygen()
1074 if (!BN_sub(ap->exp, ap->prime, BN_value_one()) || in rsa_default_multi_prime_keygen()
Drsa.c577 !BN_sub(&pm1, key->p, BN_value_one()) || in RSA_check_key()
578 !BN_sub(&qm1, key->q, BN_value_one()) || in RSA_check_key()
595 !BN_sub(&pm1, ap->prime, BN_value_one()) || in RSA_check_key()
773 if (!BN_sub(rem, rsa->p, BN_value_one()) || in RSA_recover_crt_params()
775 !BN_sub(rem, rsa->q, BN_value_one()) || in RSA_recover_crt_params()
Dblinding.c385 if (!BN_sub(r1, p, BN_value_one())) { in rsa_get_public_exp()
388 if (!BN_sub(r2, q, BN_value_one())) { in rsa_get_public_exp()
Drsa_test.cc680 if (!BN_add(key->p, key->p, BN_value_one())) { in TestBadKey()
/external/boringssl/src/crypto/ec/
Dexample_mul.c107 if (!EC_POINT_mul(group, result, BN_value_one(), p, n, NULL) || in example_EC_POINT_mul()
Dec_test.cc221 if (!BN_sub(y.get(), y.get(), BN_value_one())) { in TestSetAffine()
Dec_montgomery.c164 if (one == NULL || !BN_to_montgomery(one, BN_value_one(), mont, ctx)) { in ec_GFp_mont_group_set_curve()
Dsimple.c455 BN_value_one(), ctx); in ec_GFp_simple_point_set_affine_coordinates()
/external/boringssl/src/crypto/dsa/
Ddsa.c193 if (test == NULL || !BN_lshift(test, BN_value_one(), bits - 1)) { in DSA_generate_parameters_ex()
302 !BN_sub(r0, c, BN_value_one()) || in DSA_generate_parameters_ex()
336 if (!BN_sub(test, p, BN_value_one()) || in DSA_generate_parameters_ex()
354 if (!BN_add(test, test, BN_value_one())) { in DSA_generate_parameters_ex()
/external/boringssl/src/crypto/dh/
Dcheck.c122 if (BN_cmp(dh->g, BN_value_one()) <= 0) { in DH_check()
/external/boringssl/src/crypto/bn/
Dbn.c168 const BIGNUM *BN_value_one(void) { in BN_value_one() function
Dbn_test.cc1302 !BN_sub(b.get(), b.get(), BN_value_one())) { in test_exp()
1325 if (!BN_mod_exp(r.get(), a.get(), zero.get(), BN_value_one(), nullptr) || in test_exp_mod_zero()
1327 !BN_mod_exp_mont(r.get(), a.get(), zero.get(), BN_value_one(), nullptr, in test_exp_mod_zero()
1330 !BN_mod_exp_mont_consttime(r.get(), a.get(), zero.get(), BN_value_one(), in test_exp_mod_zero()
1333 !BN_mod_exp_mont_word(r.get(), 42, zero.get(), BN_value_one(), nullptr, in test_exp_mod_zero()
1449 !BN_add(nn.get(), nn.get(), BN_value_one())) { in test_sqrt()
Dsqrt.c460 BN_lshift(estimate, BN_value_one(), BN_num_bits(in)/2); in BN_sqrt()
Dexponentiation.c715 } else if (!BN_to_montgomery(r, BN_value_one(), mont, ctx)) { in BN_mod_exp_mont()
989 } else if (!BN_to_montgomery(&tmp, BN_value_one(), mont, ctx)) { in BN_mod_exp_mont_consttime()
1481 if (!BN_to_montgomery(r, BN_value_one(), mont, ctx)) { in BN_mod_exp2_mont()
Dprime.c483 if (BN_cmp(a, BN_value_one()) <= 0) { in BN_is_prime_fasttest_ex()
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c266 if (BN_cmp(cofactor, BN_value_one())) { in compute_password_element()
/external/boringssl/src/include/openssl/
Dbn.h193 OPENSSL_EXPORT const BIGNUM *BN_value_one(void);
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c714 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_process_commit_resp()
741 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_process_commit_resp()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c456 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_perform_commit_exchange()
483 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_perform_commit_exchange()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c1222 !BN_sub(exp, (const BIGNUM *) p, BN_value_one()) || in crypto_bignum_legendre()