Home
last modified time | relevance | path

Searched refs:cofactor (Results 1 – 21 of 21) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECCurve.java92 protected BigInteger order, cofactor; field in ECCurve
330 return cofactor; in getCofactor()
550 public Fp(BigInteger q, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor) in Fp() argument
561 this.cofactor = cofactor; in Fp()
570 …Integer q, BigInteger r, ECFieldElement a, ECFieldElement b, BigInteger order, BigInteger cofactor) in Fp() argument
581 this.cofactor = cofactor; in Fp()
587 return new Fp(this.q, this.r, this.a, this.b, this.order, this.cofactor); in cloneCurve()
870 …return this.order != null && this.cofactor != null && this.b.isOne() && (this.a.isZero() || this.a… in isKoblitz()
964 BigInteger cofactor) in F2m() argument
966 this(m, k, 0, 0, a, b, order, cofactor); in F2m()
[all …]
DTnaf.java563 public static BigInteger[] getSi(int fieldSize, int curveA, BigInteger cofactor) in getSi() argument
566 int shifts = getShiftsForCofactor(cofactor); in getSi()
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c94 BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; in compute_password_element() local
153 ((cofactor = BN_new()) == NULL) || in compute_password_element()
172 if (!EC_GROUP_get_cofactor(grp->group, cofactor, NULL)) { in compute_password_element()
266 if (BN_cmp(cofactor, BN_value_one())) { in compute_password_element()
269 cofactor, NULL)) { in compute_password_element()
298 BN_clear_free(cofactor); in compute_password_element()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECGroupContext.java136 final int cofactor = params.getCofactor(); in getInstance() local
142 y.toByteArray(), order.toByteArray(), cofactor); in getInstance()
174 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); in getECParameterSpec() local
176 ECParameterSpec spec = new ECParameterSpec(curve, generator, order, cofactor.intValue()); in getECParameterSpec()
DNativeCrypto.java158 byte[] p, byte[] a, byte[] b, byte[] x, byte[] y, byte[] order, int cofactor); in EC_GROUP_new_arbitrary() argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
DECDSASigner.java188 BigInteger cofactor = curve.getCofactor(); in verifySignature() local
189 if (cofactor != null && cofactor.compareTo(EIGHT) <= 0) in verifySignature()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c663 BIGNUM *x = NULL, *y = NULL, *cofactor = NULL; in eap_pwd_process_commit_resp() local
683 ((cofactor = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
694 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { in eap_pwd_process_commit_resp()
716 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_process_commit_resp()
718 data->peer_element, cofactor, NULL)) { in eap_pwd_process_commit_resp()
743 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_process_commit_resp()
744 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, in eap_pwd_process_commit_resp()
774 BN_clear_free(cofactor); in eap_pwd_process_commit_resp()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c360 BIGNUM *mask = NULL, *x = NULL, *y = NULL, *cofactor = NULL; in eap_pwd_perform_commit_exchange() local
383 ((cofactor = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
390 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { in eap_pwd_perform_commit_exchange()
454 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_perform_commit_exchange()
456 data->server_element, cofactor, NULL)) { in eap_pwd_perform_commit_exchange()
481 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_perform_commit_exchange()
482 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, in eap_pwd_perform_commit_exchange()
556 BN_clear_free(cofactor); in eap_pwd_perform_commit_exchange()
/external/boringssl/src/include/openssl/
Dec.h137 BIGNUM *cofactor, BN_CTX *ctx);
309 const BIGNUM *cofactor);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP521R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP521R1Curve()
DSecP192K1Curve.java29 this.cofactor = BigInteger.valueOf(1); in SecP192K1Curve()
DSecP224K1Curve.java29 this.cofactor = BigInteger.valueOf(1); in SecP224K1Curve()
DSecP256R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP256R1Curve()
DSecP192R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP192R1Curve()
DSecP384R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP384R1Curve()
DSecP256K1Curve.java29 this.cofactor = BigInteger.valueOf(1); in SecP256K1Curve()
DSecP224R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP224R1Curve()
/external/boringssl/src/crypto/fipsmodule/ec/
Dec.c342 const BIGNUM *order, const BIGNUM *cofactor) { in EC_GROUP_set_generator() argument
360 if (!BN_is_one(cofactor)) { in EC_GROUP_set_generator()
605 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, in EC_GROUP_get_cofactor() argument
608 return BN_set_word(cofactor, 1); in EC_GROUP_get_cofactor()
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc1658 BIGNUM *order = nullptr, *cofactor = nullptr; in NativeCrypto_EC_GROUP_new_arbitrary() local
1668 cofactor = BN_new(); in NativeCrypto_EC_GROUP_new_arbitrary()
1669 if (cofactor == nullptr) { in NativeCrypto_EC_GROUP_new_arbitrary()
1678 !BN_set_word(cofactor, static_cast<uint32_t>(cofactorInt))) { in NativeCrypto_EC_GROUP_new_arbitrary()
1688 bssl::UniquePtr<BIGNUM> cofactorStorage(cofactor); in NativeCrypto_EC_GROUP_new_arbitrary()
1715 if (!EC_GROUP_set_generator(group.get(), generator.get(), order, cofactor)) { in NativeCrypto_EC_GROUP_new_arbitrary()
1850 bssl::UniquePtr<BIGNUM> cofactor(BN_new()); in NativeCrypto_EC_GROUP_get_cofactor() local
1851 if (cofactor.get() == nullptr) { in NativeCrypto_EC_GROUP_get_cofactor()
1857 if (EC_GROUP_get_cofactor(group, cofactor.get(), nullptr) != 1) { in NativeCrypto_EC_GROUP_get_cofactor()
1863 jbyteArray cofactorArray = bignumToArray(env, cofactor.get(), "cofactor"); in NativeCrypto_EC_GROUP_get_cofactor()
/external/boringssl/src/crypto/obj/
Dobjects.txt1332 : dh-cofactor-kdf
/external/jline/src/src/test/resources/jline/example/
Denglish.gz