/external/boringssl/src/crypto/dh/ |
check.c | 79 if (BN_cmp(pub_key, tmp) <= 0) { 88 if (BN_cmp(pub_key, tmp) >= 0) { 142 if (BN_cmp(dh->g, BN_value_one()) <= 0) { 144 } else if (BN_cmp(dh->g, dh->p) >= 0) { 169 if (dh->j && BN_cmp(dh->j, t1)) {
|
/external/boringssl/src/crypto/fipsmodule/bn/ |
montgomery_inv.c | 185 assert(BN_cmp(r, n) > 0); 189 assert(BN_cmp(r, n) < 0); 199 if (BN_cmp(r, n) >= 0) {
|
gcd.c | 133 if (BN_cmp(a, b) < 0) { 143 if (BN_cmp(a, b) < 0) { 155 if (BN_cmp(a, b) < 0) { 207 if (BN_cmp(a, b) < 0) { 241 if (BN_is_negative(a) || BN_cmp(a, n) >= 0) { 449 if (BN_is_negative(a) || BN_cmp(a, &mont->N) >= 0) {
|
cmp.c | 86 int BN_cmp(const BIGNUM *a, const BIGNUM *b) { 196 return BN_cmp(a, &b_bn);
|
sqrt.c | 416 if (!err && 0 != BN_cmp(x, A)) { 484 if (last_delta_valid && BN_cmp(delta, last_delta) >= 0) { 495 if (BN_cmp(tmp, in) != 0) {
|
prime.c | 486 if (BN_cmp(a, BN_value_one()) <= 0) { 619 if (BN_is_one(z) || BN_cmp(z, w1) == 0) { 628 if (BN_cmp(z, w1) == 0) { [all...] |
random.c | 237 } while (BN_cmp(r, max_exclusive) >= 0);
|
div.c | 541 if (BN_cmp(r, m) >= 0) { 563 if (BN_cmp(r, m) >= 0) {
|
/external/boringssl/src/crypto/evp/ |
p_dsa_asn1.c | 235 return BN_cmp(a->pkey.dsa->p, b->pkey.dsa->p) == 0 && 236 BN_cmp(a->pkey.dsa->q, b->pkey.dsa->q) == 0 && 237 BN_cmp(a->pkey.dsa->g, b->pkey.dsa->g) == 0; 241 return BN_cmp(b->pkey.dsa->pub_key, a->pkey.dsa->pub_key) == 0;
|
p_rsa_asn1.c | 133 return BN_cmp(b->pkey.rsa->n, a->pkey.rsa->n) == 0 && 134 BN_cmp(b->pkey.rsa->e, a->pkey.rsa->e) == 0;
|
/libcore/luni/src/main/java/java/math/ |
NativeBN.java | 27 public static native int BN_cmp(long a, long b); 28 // int BN_cmp(const BIGNUM *a, const BIGNUM *b);
|
BigInt.java | 59 return NativeBN.BN_cmp(a.bignum, b.bignum);
|
/external/boringssl/src/crypto/fipsmodule/ec/ |
simple.c | 176 group->a_is_minus3 = (0 == BN_cmp(tmp_a, &group->field)); 280 BN_cmp(in, &group->field) >= 0) { 421 int b_Z_is_one = BN_cmp(&b->Z, &group->one) == 0; 444 int a_Z_is_one = BN_cmp(&a->Z, &group->one) == 0; 606 if (BN_cmp(&a->Z, &group->one) == 0) { 639 if (BN_cmp(&a->Z, &group->one) == 0) { 752 if (BN_cmp(&point->Z, &group->one) != 0) { 829 int a_Z_is_one = BN_cmp(&a->Z, &group->one) == 0; 830 int b_Z_is_one = BN_cmp(&b->Z, &group->one) == 0; 833 return ((BN_cmp(&a->X, &b->X) == 0) && BN_cmp(&a->Y, &b->Y) == 0) ? 0 : 1 [all...] |
ec_key.c | 244 /* XXX: |BN_cmp| is not constant time. */ 246 BN_cmp(key->priv_key, EC_GROUP_get0_order(group)) >= 0) { 257 /* XXX: |BN_cmp| is not constant time. */ 259 BN_cmp(priv_key, EC_GROUP_get0_order(key->group)) >= 0) { 322 /* XXX: |BN_cmp| is not constant time. */ 323 if (BN_cmp(eckey->priv_key, EC_GROUP_get0_order(eckey->group)) >= 0) { 413 if (BN_cmp(x, tx) || BN_cmp(y, ty)) {
|
p256-x86_64_test.cc | 156 if (BN_cmp(x.get(), p.get()) >= 0 || 157 BN_cmp(y.get(), p.get()) >= 0 || 158 BN_cmp(z.get(), p.get()) >= 0) {
|
ec_montgomery.c | 221 if (BN_cmp(&point->Z, &group->one) == 0) {
|
oct.c | 274 if (BN_is_negative(x) || BN_cmp(x, &group->field) >= 0) {
|
/external/openssh/ |
dh.c | 130 if (BN_cmp(dhg->g, BN_value_one()) <= 0) { 226 if (BN_cmp(dh_pub, BN_value_one()) != 1) { /* pub_exp <= 1 */ 236 BN_cmp(dh_pub, tmp) != -1) { /* pub_exp > p-2 */
|
sshkey.c | 674 BN_cmp(a->rsa->e, b->rsa->e) == 0 && 675 BN_cmp(a->rsa->n, b->rsa->n) == 0; 679 BN_cmp(a->dsa->p, b->dsa->p) == 0 && 680 BN_cmp(a->dsa->q, b->dsa->q) == 0 && 681 BN_cmp(a->dsa->g, b->dsa->g) == 0 && 682 BN_cmp(a->dsa->pub_key, b->dsa->pub_key) == 0; [all...] |
/system/extras/verity/ |
verify_boot_signature.c | 186 if (BN_cmp(&expected, &value) != 0) { 201 if (BN_cmp(&expected, &value) != 0) {
|
/external/boringssl/src/crypto/fipsmodule/ecdsa/ |
ecdsa_test.cc | 370 EXPECT_EQ(0, BN_cmp(r.get(), sig->r)); 371 EXPECT_EQ(0, BN_cmp(s.get(), sig->s));
|
/external/boringssl/src/crypto/fipsmodule/rsa/ |
rsa.c | 628 if (BN_cmp(&n, key->n) != 0) { 656 if (BN_cmp(&dmp1, key->dmp1) != 0 || 657 BN_cmp(&dmq1, key->dmq1) != 0 || 658 BN_cmp(key->iqmp, key->p) >= 0 ||
|
/external/openssh/regress/unittests/sshbuf/ |
test_sshbuf_getput_crypto.c | 397 ASSERT_INT_EQ(BN_cmp(bn_x, bn), 0); 398 ASSERT_INT_EQ(BN_cmp(bn_y, bn2), 0);
|
/libcore/luni/src/main/native/ |
java_math_NativeBN.cpp | 115 return BN_cmp(toBigNum(a), toBigNum(b)); 534 NATIVE_METHOD(NativeBN, BN_cmp, "(JJ)I"),
|
/external/wpa_supplicant_8/src/eap_common/ |
eap_pwd_common.c | 266 if (BN_cmp(cofactor, BN_value_one())) {
|