Home
last modified time | relevance | path

Searched refs:BN_ucmp (Results 1 – 18 of 18) sorted by relevance

/external/boringssl/src/crypto/bn/
Dgcd.c269 if (B->neg || (BN_ucmp(B, A) >= 0)) { in BN_mod_inverse_ex()
351 if (BN_ucmp(B, A) >= 0) { in BN_mod_inverse_ex()
396 if (BN_ucmp(A, T) < 0) { in BN_mod_inverse_ex()
412 if (BN_ucmp(A, D) < 0) { in BN_mod_inverse_ex()
518 if (!Y->neg && BN_ucmp(Y, n) < 0) { in BN_mod_inverse_ex()
588 if (B->neg || (BN_ucmp(B, A) >= 0)) { in BN_mod_inverse_no_branch()
688 if (!Y->neg && BN_ucmp(Y, n) < 0) { in BN_mod_inverse_no_branch()
Dadd.c85 if (BN_ucmp(a, b) < 0) { in BN_add()
246 if (BN_ucmp(a, b) < 0) { in BN_sub()
Ddiv.c142 if (!no_branch && BN_ucmp(num, divisor) < 0) { in BN_div()
235 if (BN_ucmp(&wnum, sdiv) >= 0) { in BN_div()
408 if (BN_ucmp(r, m) >= 0) { in BN_mod_add_quick()
Dexponentiation.c288 if (BN_ucmp(m, &recp->N) < 0) { in BN_div_recp()
345 while (BN_ucmp(r, &(recp->N)) >= 0) { in BN_div_recp()
664 if (a->neg || BN_ucmp(a, m) >= 0) { in BN_mod_exp_mont()
994 if (a->neg || BN_ucmp(a, m) >= 0) { in BN_mod_exp_mont_consttime()
1406 if (a1->neg || BN_ucmp(a1, m) >= 0) { in BN_mod_exp2_mont()
1441 if (a2->neg || BN_ucmp(a2, m) >= 0) { in BN_mod_exp2_mont()
Dcmp.c62 int BN_ucmp(const BIGNUM *a, const BIGNUM *b) { in BN_ucmp() function
Dsqrt.c244 if (BN_ucmp(y, p) >= 0) { in BN_mod_sqrt()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c181 BN_ucmp(sig->r, order) >= 0 || BN_is_zero(sig->s) || in ECDSA_do_verify()
182 BN_is_negative(sig->s) || BN_ucmp(sig->s, order) >= 0) { in ECDSA_do_verify()
224 ret = (BN_ucmp(u1, sig->r) == 0); in ECDSA_do_verify()
/external/tpm2/
DRSAKeySieve.c285 if(BN_ucmp(bnB, bnWm1) >= 0) in MillerRabin()
291 if(BN_is_one(bnZ) || BN_ucmp(bnZ, bnWm1) == 0) in MillerRabin()
300 if(BN_ucmp(bnZ, bnWm1) == 0) in MillerRabin()
931 if(BN_ucmp(bnP, bnQ) != 0) in _cpri__GenerateKeyRSA()
DCpriECC.c1180 result = BN_ucmp(bn, bnC); in cmp_bn2hex()
1286 if( BN_ucmp(bnK, bnN) >= 0 in SignSM2()
1307 if(BN_is_zero(bnR) || BN_ucmp(bnT, bnN) == 0) in SignSM2()
1673 fail = (BN_ucmp(bnR, order) >= 0); in ValidateSignatureSM2Dsa()
1674 fail = (BN_ucmp(bnS, order) >= 0) || fail; in ValidateSignatureSM2Dsa()
1710 fail = BN_ucmp(bnR, bnRp) != 0 || fail; in ValidateSignatureSM2Dsa()
DMathFunctions.c472 if(BN_ucmp(bnM, bnN) >= 0) in _math__ModExp()
DCpriRSA.c1287 if(BN_ucmp(bnP, bnQ) < 0) in _cpri__GenerateKeyRSA()
1370 if(BN_ucmp(bnP, bnQ) != 0) in _cpri__GenerateKeyRSA()
Dpart4.txt26083 364 if(BN_ucmp(bnM, bnN) >= 0)
30364 1162 if(BN_ucmp(bnP, bnQ) < 0)
30462 1255 if(BN_ucmp(bnP, bnQ) != 0)
30939 215 if(BN_ucmp(bnB, bnWm1) >= 0)
30947 223 if(BN_is_one(bnZ) || BN_ucmp(bnZ, bnWm1) == 0)
30963 234 if(BN_ucmp(bnZ, bnWm1) == 0)
31689 809 if(BN_ucmp(bnP, bnQ) != 0)
34436 1064 result = BN_ucmp(bn, bnC);
34560 1163 if( BN_ucmp(bnK, bnN) >= 0
34586 1189 if(BN_is_zero(bnR) || BN_ucmp(bnT, bnN) == 0)
[all …]
/external/boringssl/src/crypto/rsa/
Drsa_impl.c98 if (BN_ucmp(rsa->n, rsa->e) <= 0) { in rsa_default_encrypt()
149 if (BN_ucmp(f, rsa->n) >= 0) { in rsa_default_encrypt()
425 if (BN_ucmp(rsa->n, rsa->e) <= 0) { in rsa_default_verify_raw()
474 if (BN_ucmp(f, rsa->n) >= 0) { in rsa_default_verify_raw()
550 if (BN_ucmp(f, rsa->n) >= 0) { in rsa_default_private_transform()
/external/boringssl/src/crypto/ec/
Doct.c221 if (BN_ucmp(x, &group->field) >= 0) { in ec_GFp_simple_oct2point()
234 if (BN_ucmp(y, &group->field) >= 0) { in ec_GFp_simple_oct2point()
Dsimple.c988 ret = (0 == BN_ucmp(tmp, rh)); in ec_GFp_simple_is_on_curve()
/external/boringssl/src/crypto/dsa/
Ddsa.c615 BN_ucmp(sig->r, dsa->q) >= 0) { in DSA_do_check_signature()
620 BN_ucmp(sig->s, dsa->q) >= 0) { in DSA_do_check_signature()
673 *out_valid = BN_ucmp(&u1, sig->r) == 0; in DSA_do_check_signature()
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c231 if (BN_ucmp(x_candidate, grp->prime) >= 0) in compute_password_element()
/external/boringssl/src/include/openssl/
Dbn.h442 OPENSSL_EXPORT int BN_ucmp(const BIGNUM *a, const BIGNUM *b);