Home
last modified time | relevance | path

Searched refs:BN_is_negative (Results 1 – 25 of 66) sorted by relevance

123

/external/boringssl/src/crypto/dsa/
Ddsa_asn1.c85 if (BN_is_negative(dsa->p) || BN_is_negative(dsa->q) || BN_is_zero(dsa->p) || in dsa_check_key()
90 BN_is_negative(dsa->g) || BN_is_zero(dsa->g) || in dsa_check_key()
112 if (BN_is_negative(dsa->pub_key) || BN_is_zero(dsa->pub_key) || in dsa_check_key()
122 if (BN_is_negative(dsa->priv_key) || BN_is_zero(dsa->priv_key) || in dsa_check_key()
/external/cronet/third_party/boringssl/src/crypto/dsa/
Ddsa_asn1.c85 if (BN_is_negative(dsa->p) || BN_is_negative(dsa->q) || BN_is_zero(dsa->p) || in dsa_check_key()
90 BN_is_negative(dsa->g) || BN_is_zero(dsa->g) || in dsa_check_key()
112 if (BN_is_negative(dsa->pub_key) || BN_is_zero(dsa->pub_key) || in dsa_check_key()
122 if (BN_is_negative(dsa->priv_key) || BN_is_zero(dsa->priv_key) || in dsa_check_key()
/external/cronet/third_party/boringssl/src/crypto/fipsmodule/bn/
Dbn_test.cc236 if (!BN_is_negative(a.get()) && !BN_is_negative(b.get())) { in TestSum()
286 if (!BN_is_negative(b.get()) && b_word != (BN_ULONG)-1) { in TestSum()
577 if (BN_is_negative(b.get())) { in TestQuotient()
579 BN_set_negative(quotient.get(), !BN_is_negative(quotient.get())); in TestQuotient()
585 if (BN_is_negative(nnmod.get())) { in TestQuotient()
592 if (BN_is_negative(a.get())) { in TestQuotient()
1190 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F()
1195 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F()
1200 EXPECT_TRUE(BN_is_negative(bn.get())); in TEST_F()
1205 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F()
[all …]
Dmontgomery_inv.c37 assert(!BN_is_negative(n)); in bn_mont_n0()
165 assert(!BN_is_negative(n)); in bn_mod_exp_base_2_consttime()
Dgcd.c125 if (BN_is_negative(a) || BN_cmp(a, n) >= 0) { in BN_mod_inverse_odd()
331 if (BN_is_negative(a) || BN_cmp(a, &mont->N) >= 0) { in BN_mod_inverse_blinded()
Djacobi.c78 if (BN_is_negative(b)) { in bn_jacobi()
/external/boringssl/src/crypto/fipsmodule/bn/
Dbn_test.cc236 if (!BN_is_negative(a.get()) && !BN_is_negative(b.get())) { in TestSum()
286 if (!BN_is_negative(b.get()) && b_word != (BN_ULONG)-1) { in TestSum()
577 if (BN_is_negative(b.get())) { in TestQuotient()
579 BN_set_negative(quotient.get(), !BN_is_negative(quotient.get())); in TestQuotient()
585 if (BN_is_negative(nnmod.get())) { in TestQuotient()
592 if (BN_is_negative(a.get())) { in TestQuotient()
1190 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F()
1195 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F()
1200 EXPECT_TRUE(BN_is_negative(bn.get())); in TEST_F()
1205 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F()
[all …]
Dmontgomery_inv.c37 assert(!BN_is_negative(n)); in bn_mont_n0()
165 assert(!BN_is_negative(n)); in bn_mod_exp_base_2_consttime()
Dgcd.c125 if (BN_is_negative(a) || BN_cmp(a, n) >= 0) { in BN_mod_inverse_odd()
331 if (BN_is_negative(a) || BN_cmp(a, &mont->N) >= 0) { in BN_mod_inverse_blinded()
Djacobi.c78 if (BN_is_negative(b)) { in bn_jacobi()
Dmontgomery.c171 if (BN_is_negative(mod)) { in bn_mont_ctx_set_N_and_n0()
454 return !BN_is_negative(bn) && in bn_less_than_montgomery_R()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/
Dbn_test.cc236 if (!BN_is_negative(a.get()) && !BN_is_negative(b.get())) { in TestSum()
286 if (!BN_is_negative(b.get()) && b_word != (BN_ULONG)-1) { in TestSum()
577 if (BN_is_negative(b.get())) { in TestQuotient()
579 BN_set_negative(quotient.get(), !BN_is_negative(quotient.get())); in TestQuotient()
585 if (BN_is_negative(nnmod.get())) { in TestQuotient()
592 if (BN_is_negative(a.get())) { in TestQuotient()
1143 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F()
1148 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F()
1153 EXPECT_TRUE(BN_is_negative(bn.get())); in TEST_F()
1158 EXPECT_FALSE(BN_is_negative(bn.get())); in TEST_F()
[all …]
Dmontgomery_inv.c38 assert(!BN_is_negative(n)); in bn_mont_n0()
166 assert(!BN_is_negative(n)); in bn_mod_exp_base_2_consttime()
Dgcd.c125 if (BN_is_negative(a) || BN_cmp(a, n) >= 0) { in BN_mod_inverse_odd()
332 if (BN_is_negative(a) || BN_cmp(a, &mont->N) >= 0) { in BN_mod_inverse_blinded()
Djacobi.c78 if (BN_is_negative(b)) { in bn_jacobi()
Dmontgomery.c172 if (BN_is_negative(mod)) { in bn_mont_ctx_set_N_and_n0()
449 return !BN_is_negative(bn) && in bn_less_than_montgomery_R()
/external/cronet/third_party/boringssl/src/crypto/bn_extra/
Dbn_asn1.c40 if (BN_is_negative(bn)) { in BN_marshal_asn1()
/external/boringssl/src/crypto/bn_extra/
Dbn_asn1.c40 if (BN_is_negative(bn)) { in BN_marshal_asn1()
/external/rust/crates/quiche/deps/boringssl/src/crypto/bn_extra/
Dbn_asn1.c40 if (BN_is_negative(bn)) { in BN_marshal_asn1()
/external/cronet/third_party/boringssl/src/crypto/evp/
Dprint.c102 const char *neg = BN_is_negative(num) ? "-" : ""; in bn_print()
108 (BN_is_negative(num)) ? " (Negative)" : "") <= 0) { in bn_print()
/external/boringssl/src/crypto/evp/
Dprint.c102 const char *neg = BN_is_negative(num) ? "-" : ""; in bn_print()
108 (BN_is_negative(num)) ? " (Negative)" : "") <= 0) { in bn_print()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c662 if (BN_is_negative(ainv) || BN_cmp(ainv, m) >= 0) { in check_mod_inverse()
706 (BN_is_negative(key->d) || BN_cmp(key->d, key->n) >= 0)) { in RSA_check_key()
735 if (BN_is_negative(key->p) || BN_cmp(key->p, key->n) >= 0 || in RSA_check_key()
736 BN_is_negative(key->q) || BN_cmp(key->q, key->n) >= 0) { in RSA_check_key()
/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c646 if (BN_is_negative(ainv) || BN_cmp(ainv, m) >= 0) { in check_mod_inverse()
690 (BN_is_negative(key->d) || BN_cmp(key->d, key->n) >= 0)) { in RSA_check_key()
719 if (BN_is_negative(key->p) || BN_cmp(key->p, key->n) >= 0 || in RSA_check_key()
720 BN_is_negative(key->q) || BN_cmp(key->q, key->n) >= 0) { in RSA_check_key()
/external/cronet/third_party/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c646 if (BN_is_negative(ainv) || BN_cmp(ainv, m) >= 0) { in check_mod_inverse()
690 (BN_is_negative(key->d) || BN_cmp(key->d, key->n) >= 0)) { in RSA_check_key()
719 if (BN_is_negative(key->p) || BN_cmp(key->p, key->n) >= 0 || in RSA_check_key()
720 BN_is_negative(key->q) || BN_cmp(key->q, key->n) >= 0) { in RSA_check_key()
/external/rust/crates/quiche/deps/boringssl/src/crypto/asn1/
Da_enum.c163 if (BN_is_negative(bn)) in BN_to_ASN1_ENUMERATED()

123