Home
last modified time | relevance | path

Searched refs:BN_is_zero (Results 1 – 25 of 28) sorted by relevance

12

/external/boringssl/src/crypto/bn_extra/
Dconvert.c93 if (BN_is_zero(bn)) { in BN_bn2hex()
227 if (!BN_is_zero(ret)) { in bn_x2bn()
256 if (BN_is_zero(a)) { in BN_bn2dec()
266 while (!BN_is_zero(copy)) { in BN_bn2dec()
272 const int add_leading_zeros = !BN_is_zero(copy); in BN_bn2dec()
332 if (*orig_in == '-' && !BN_is_zero(*outp)) { in BN_asc2bn()
347 if (BN_is_zero(a) && BIO_write(bp, "0", 1) != 1) { in BN_print()
/external/boringssl/src/crypto/fipsmodule/bn/
Dsqrt.c94 if (BN_is_zero(a) || BN_is_one(a)) { in BN_mod_sqrt()
248 if (BN_is_zero(y)) { in BN_mod_sqrt()
313 if (BN_is_zero(t)) // special case: p = 2^e + 1 in BN_mod_sqrt()
318 if (BN_is_zero(t)) { in BN_mod_sqrt()
330 if (BN_is_zero(x)) { in BN_mod_sqrt()
435 if (BN_is_zero(in)) { in BN_sqrt()
Dmontgomery_inv.c37 assert(!BN_is_zero(n)); in bn_mont_n0()
165 assert(!BN_is_zero(n)); in bn_mod_exp_base_2_consttime()
Dadd.c148 if (BN_is_zero(a)) { in BN_add_word()
156 if (!BN_is_zero(a)) { in BN_add_word()
277 if (BN_is_zero(a)) { in BN_sub_word()
Dbn_test.cc423 if (!BN_is_zero(a.get())) { in TestSquare()
434 if (!BN_is_zero(square.get())) { in TestSquare()
495 if (!BN_is_zero(a.get())) { in TestProduct()
502 if (!BN_is_zero(b.get())) { in TestProduct()
821 if (BN_is_zero(mod_sqrt.get())) { in TestModSqrt()
895 if (!BN_is_zero(b.get())) { in TestGCD()
906 if (!BN_is_zero(a.get())) { in TestGCD()
923 if (!BN_is_zero(gcd.get())) { in TestGCD()
1103 EXPECT_TRUE(BN_is_zero(bn.get())); in TEST_F()
1118 EXPECT_TRUE(BN_is_zero(bn.get())); in TEST_F()
[all …]
Dgcd_extra.c109 assert(BN_is_zero(u) || BN_is_zero(v)); in bn_gcd_consttime()
176 if (BN_is_zero(a)) { in bn_mod_inverse_consttime()
313 assert(BN_is_zero(v)); in bn_mod_inverse_consttime()
Djacobi.c106 if (BN_is_zero(A)) { in bn_jacobi()
Ddiv.c217 if (BN_is_zero(divisor)) { in BN_div()
389 if (!BN_is_zero(rem)) { in BN_div()
466 if (BN_is_zero(divisor)) { in bn_div_consttime()
850 if (BN_is_zero(r) || !r->neg) { in BN_nnmod_pow2()
Dcmp.c152 int BN_is_zero(const BIGNUM *bn) { in BN_is_zero() function
Dgcd.c162 while (!BN_is_zero(B)) { in BN_mod_inverse_odd()
Dbn.c339 if (sign && !BN_is_zero(bn)) { in BN_set_negative()
Dmontgomery.c164 if (BN_is_zero(mod)) { in bn_mont_ctx_set_N_and_n0()
Dexponentiation.c334 r->neg = BN_is_zero(r) ? 0 : m->neg; in BN_div_recp()
473 if (BN_is_zero(val[0])) { in mod_exp_recp()
/external/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa.c156 if (BN_is_zero(sig->r) || in ECDSA_do_verify()
158 BN_is_zero(sig->s) || in ECDSA_do_verify()
294 if (!BN_is_zero(ret->s)) { in ECDSA_do_sign()
/external/boringssl/src/crypto/dsa/
Ddsa.c568 if (BN_is_zero(dsa->p) || BN_is_zero(dsa->q) || BN_is_zero(dsa->g)) { in DSA_do_sign()
636 if (BN_is_zero(r) || BN_is_zero(s)) { in DSA_do_sign()
704 if (BN_is_zero(sig->r) || BN_is_negative(sig->r) || in DSA_do_check_signature()
709 if (BN_is_zero(sig->s) || BN_is_negative(sig->s) || in DSA_do_check_signature()
/external/boringssl/src/crypto/fipsmodule/ec/
Doct.c313 if (BN_is_zero(y)) { in EC_POINT_set_compressed_coordinates_GFp()
Dec_test.cc854 bool is_infinity = BN_is_zero(x.get()) && BN_is_zero(y.get()); in TEST()
Dp256-x86_64_test.cc241 if (BN_is_zero(z.get())) { in PointToAffine()
Dec.c617 assert(!BN_is_zero(&group->order)); in EC_GROUP_get0_order()
/external/boringssl/src/crypto/asn1/
Da_int.c384 if (BN_is_negative(bn) && !BN_is_zero(bn)) in BN_to_ASN1_INTEGER()
/external/boringssl/src/crypto/evp/
Dprint.c76 if (BN_is_zero(num)) { in bn_print()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c557 if (!pub || !p || BN_is_zero(pub) || BN_is_one(pub) || in crypto_dh_derive_secret()
1554 return BN_is_zero((const BIGNUM *) a); in crypto_bignum_is_zero()
1600 mask = const_time_eq(BN_is_zero(tmp), 1); in crypto_bignum_legendre()
/external/boringssl/src/include/openssl/
Dbn.h451 OPENSSL_EXPORT int BN_is_zero(const BIGNUM *bn);
/external/boringssl/src/crypto/fipsmodule/rsa/
Dpadding.c600 if (BN_is_zero(rsa->n)) { in RSA_padding_add_PKCS1_PSS_mgf1()
/external/boringssl/src/crypto/x509v3/
Dv3_utl.c258 if (isneg && BN_is_zero(bn)) in s2i_ASN1_INTEGER()

12