Home
last modified time | relevance | path

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

12

/external/boringssl/src/crypto/fipsmodule/ec/
Dec_test.cc277 BN_value_one())); in TEST()
311 order.get(), BN_value_one())); in TEST()
325 order.get(), BN_value_one())); in TEST()
347 order.get(), BN_value_one())); in TEST()
364 order.get(), BN_value_one())); in TEST()
375 EXPECT_FALSE(EC_KEY_set_private_key(key.get(), BN_value_one())); in TEST()
465 EC_GROUP_set_generator(group.get(), g.get(), n.get(), BN_value_one())); in TEST()
515 EXPECT_TRUE(BN_sub(y.get(), y.get(), BN_value_one())); in TEST_P()
524 EXPECT_TRUE(BN_add(y.get(), y.get(), BN_value_one())); in TEST_P()
663 ASSERT_TRUE(EC_POINT_mul(group(), generator.get(), BN_value_one(), nullptr, in TEST_P()
[all …]
Dsimple.c127 !ec_bignum_to_felem(group, &group->one, BN_value_one())) { in ec_GFp_simple_group_set_curve()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/
Dec_test.cc277 BN_value_one())); in TEST()
311 order.get(), BN_value_one())); in TEST()
325 order.get(), BN_value_one())); in TEST()
347 order.get(), BN_value_one())); in TEST()
364 order.get(), BN_value_one())); in TEST()
375 EXPECT_FALSE(EC_KEY_set_private_key(key.get(), BN_value_one())); in TEST()
465 EC_GROUP_set_generator(group.get(), g.get(), n.get(), BN_value_one())); in TEST()
515 EXPECT_TRUE(BN_sub(y.get(), y.get(), BN_value_one())); in TEST_P()
524 EXPECT_TRUE(BN_add(y.get(), y.get(), BN_value_one())); in TEST_P()
663 ASSERT_TRUE(EC_POINT_mul(group(), generator.get(), BN_value_one(), nullptr, in TEST_P()
[all …]
Dsimple.c127 !ec_bignum_to_felem(group, &group->one, BN_value_one())) { in ec_GFp_simple_group_set_curve()
/external/openssh/
Ddh.c133 if (BN_cmp(dhg->g, BN_value_one()) <= 0) { in parse_prime()
237 if (BN_cmp(dh_pub, BN_value_one()) != 1) { /* pub_exp <= 1 */ in dh_pub_is_valid()
246 if (!BN_sub(tmp, dh_p, BN_value_one()) || in dh_pub_is_valid()
Dssh-rsa.c140 if ((BN_sub(aux, rsa_q, BN_value_one()) == 0) || in ssh_rsa_complete_crt_parameters()
142 (BN_sub(aux, rsa_p, BN_value_one()) == 0) || in ssh_rsa_complete_crt_parameters()
/external/boringssl/src/crypto/fipsmodule/bn/
Dbn_test.cc447 ASSERT_TRUE(BN_add(tmp.get(), tmp.get(), BN_value_one())); in TestSquare()
882 EXPECT_BIGNUMS_EQUAL("GCD(A, M)", BN_value_one(), ret.get()); in TestModInv()
1522 EXPECT_FALSE(BN_div(a.get(), b.get(), BN_value_one(), zero.get(), ctx())); in TEST_F()
1526 BN_mod_mul(a.get(), BN_value_one(), BN_value_one(), zero.get(), ctx())); in TEST_F()
1530 BN_mod_exp(a.get(), BN_value_one(), BN_value_one(), zero.get(), ctx())); in TEST_F()
1533 EXPECT_FALSE(BN_mod_exp_mont(a.get(), BN_value_one(), BN_value_one(), in TEST_F()
1538 a.get(), BN_value_one(), BN_value_one(), zero.get(), ctx(), nullptr)); in TEST_F()
1561 EXPECT_FALSE(BN_mod_exp_mont(a.get(), BN_value_one(), BN_value_one(), b.get(), in TEST_F()
1566 a.get(), BN_value_one(), BN_value_one(), b.get(), ctx(), nullptr)); in TEST_F()
1583 ASSERT_TRUE(BN_mod_exp(r.get(), a.get(), zero.get(), BN_value_one(), ctx())); in TEST_F()
[all …]
Dprime.c519 if (!bn_usub_consttime(miller_rabin->w1, w, BN_value_one())) { in bn_miller_rabin_init()
653 if (BN_cmp(w, BN_value_one()) <= 0) { in BN_primality_test()
Dsqrt.c455 if (!BN_lshift(estimate, BN_value_one(), BN_num_bits(in)/2)) { in BN_sqrt()
Dbn.c152 DEFINE_METHOD_FUNCTION(BIGNUM, BN_value_one) { in DEFINE_METHOD_FUNCTION() argument
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/
Dbn_test.cc447 ASSERT_TRUE(BN_add(tmp.get(), tmp.get(), BN_value_one())); in TestSquare()
882 EXPECT_BIGNUMS_EQUAL("GCD(A, M)", BN_value_one(), ret.get()); in TestModInv()
1522 EXPECT_FALSE(BN_div(a.get(), b.get(), BN_value_one(), zero.get(), ctx())); in TEST_F()
1526 BN_mod_mul(a.get(), BN_value_one(), BN_value_one(), zero.get(), ctx())); in TEST_F()
1530 BN_mod_exp(a.get(), BN_value_one(), BN_value_one(), zero.get(), ctx())); in TEST_F()
1533 EXPECT_FALSE(BN_mod_exp_mont(a.get(), BN_value_one(), BN_value_one(), in TEST_F()
1538 a.get(), BN_value_one(), BN_value_one(), zero.get(), ctx(), nullptr)); in TEST_F()
1561 EXPECT_FALSE(BN_mod_exp_mont(a.get(), BN_value_one(), BN_value_one(), b.get(), in TEST_F()
1566 a.get(), BN_value_one(), BN_value_one(), b.get(), ctx(), nullptr)); in TEST_F()
1583 ASSERT_TRUE(BN_mod_exp(r.get(), a.get(), zero.get(), BN_value_one(), ctx())); in TEST_F()
[all …]
Dprime.c519 if (!bn_usub_consttime(miller_rabin->w1, w, BN_value_one())) { in bn_miller_rabin_init()
653 if (BN_cmp(w, BN_value_one()) <= 0) { in BN_primality_test()
Dsqrt.c455 if (!BN_lshift(estimate, BN_value_one(), BN_num_bits(in)/2)) { in BN_sqrt()
Dbn.c171 DEFINE_METHOD_FUNCTION(BIGNUM, BN_value_one) { in DEFINE_METHOD_FUNCTION() argument
/external/boringssl/src/crypto/dsa/
Ddsa.c260 if (test == NULL || !BN_lshift(test, BN_value_one(), bits - 1)) { in DSA_generate_parameters_ex()
369 !BN_sub(r0, c, BN_value_one()) || in DSA_generate_parameters_ex()
403 if (!BN_sub(test, p, BN_value_one()) || in DSA_generate_parameters_ex()
422 if (!BN_add(test, test, BN_value_one())) { in DSA_generate_parameters_ex()
/external/rust/crates/quiche/deps/boringssl/src/crypto/dsa/
Ddsa.c261 if (test == NULL || !BN_lshift(test, BN_value_one(), bits - 1)) { in DSA_generate_parameters_ex()
370 !BN_sub(r0, c, BN_value_one()) || in DSA_generate_parameters_ex()
404 if (!BN_sub(test, p, BN_value_one()) || in DSA_generate_parameters_ex()
423 if (!BN_add(test, test, BN_value_one())) { in DSA_generate_parameters_ex()
/external/rust/crates/quiche/deps/boringssl/src/crypto/dh/
Dcheck.c141 if (BN_cmp(dh->g, BN_value_one()) <= 0) { in DH_check()
/external/boringssl/src/crypto/fipsmodule/dh/
Dcheck.c141 if (BN_cmp(dh->g, BN_value_one()) <= 0) { in DH_check()
/external/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc104 !EC_GROUP_set_generator(group.get(), g.get(), n.get(), BN_value_one())) { in NewSecp160r1Group()
353 BN_value_one())) { in MakeCustomClone()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc104 !EC_GROUP_set_generator(group.get(), g.get(), n.get(), BN_value_one())) { in NewSecp160r1Group()
353 BN_value_one())) { in MakeCustomClone()
/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa_impl.c1097 if (!BN_sub(tmp, out, BN_value_one()) || in generate_prime()
1251 if (!bn_usub_consttime(pm1, rsa->p, BN_value_one()) || in rsa_generate_key_impl()
1252 !bn_usub_consttime(qm1, rsa->q, BN_value_one()) || in rsa_generate_key_impl()
Drsa.c750 if (!bn_usub_consttime(&pm1, key->p, BN_value_one()) || in RSA_check_key()
751 !bn_usub_consttime(&qm1, key->q, BN_value_one()) || in RSA_check_key()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rsa/
Drsa_impl.c1065 if (!BN_sub(tmp, out, BN_value_one()) || in generate_prime()
1219 if (!bn_usub_consttime(pm1, rsa->p, BN_value_one()) || in rsa_generate_key_impl()
1220 !bn_usub_consttime(qm1, rsa->q, BN_value_one()) || in rsa_generate_key_impl()
/external/boringssl/src/crypto/ecdh_extra/
Decdh_test.cc248 BN_value_one())) { in MakeCustomGroup()
/external/rust/crates/quiche/deps/boringssl/src/crypto/ecdh_extra/
Decdh_test.cc248 BN_value_one())) { in MakeCustomGroup()

12