Home
last modified time | relevance | path

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

12

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
DECParameterSpec_ImplTest.java182 int cofactor = 10; in testGetCofactor() local
184 new ECParameterSpec(curve, generator, order, cofactor); in testGetCofactor()
185 assertEquals(cofactor, ps.getCofactor()); in testGetCofactor()
205 int cofactor = 10; in testGetCurve() local
207 new ECParameterSpec(curve, generator, order, cofactor); in testGetCurve()
230 int cofactor = 10; in testGetGenerator() local
232 new ECParameterSpec(curve, generator, order, cofactor); in testGetGenerator()
255 int cofactor = 10; in testGetOrder() local
257 new ECParameterSpec(curve, generator, order, cofactor); in testGetOrder()
/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/boringssl/src/crypto/ec/
Dec.c343 BN_init(&ret->cofactor); in ec_group_new()
375 const BIGNUM *order, const BIGNUM *cofactor) { in EC_GROUP_set_generator() argument
401 if (cofactor != NULL) { in EC_GROUP_set_generator()
402 if (!BN_copy(&group->cofactor, cofactor)) { in EC_GROUP_set_generator()
406 BN_zero(&group->cofactor); in EC_GROUP_set_generator()
467 !BN_set_word(&group->cofactor, (BN_ULONG)data->cofactor)) { in ec_group_new_from_data()
530 BN_free(&group->cofactor); in EC_GROUP_free()
566 !BN_copy(&dest->cofactor, &src->cofactor)) { in ec_group_copy()
628 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, in EC_GROUP_get_cofactor() argument
630 if (!BN_copy(cofactor, &group->cofactor)) { in EC_GROUP_get_cofactor()
[all …]
Dinternal.h137 BIGNUM order, cofactor; member
297 uint8_t cofactor; /* promoted to BN_ULONG */ member
Dec_asn1.c108 ASN1_INTEGER *cofactor; member
119 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER)
/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/src/main/java/org/conscrypt/
DOpenSSLECGroupContext.java140 final int cofactor = params.getCofactor(); in getInstance() local
146 y.toByteArray(), order.toByteArray(), cofactor); in getInstance()
188 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); in getECParameterSpec() local
190 ECParameterSpec spec = new ECParameterSpec(curve, generator, order, cofactor.intValue()); in getECParameterSpec()
DNativeCrypto.java165 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/boringssl/src/include/openssl/
Dec.h130 BIGNUM *cofactor, BN_CTX *ctx);
297 const BIGNUM *cofactor);
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c661 BIGNUM *x = NULL, *y = NULL, *cofactor = NULL; in eap_pwd_process_commit_resp() local
681 ((cofactor = BN_new()) == NULL) || in eap_pwd_process_commit_resp()
692 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { in eap_pwd_process_commit_resp()
714 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_process_commit_resp()
716 data->peer_element, cofactor, NULL)) { in eap_pwd_process_commit_resp()
741 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_process_commit_resp()
742 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, in eap_pwd_process_commit_resp()
772 BN_clear_free(cofactor); in eap_pwd_process_commit_resp()
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c362 BIGNUM *mask = NULL, *x = NULL, *y = NULL, *cofactor = NULL; in eap_pwd_perform_commit_exchange() local
385 ((cofactor = BN_new()) == NULL) || in eap_pwd_perform_commit_exchange()
392 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { in eap_pwd_perform_commit_exchange()
456 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_perform_commit_exchange()
458 data->server_element, cofactor, NULL)) { in eap_pwd_perform_commit_exchange()
483 if (BN_cmp(cofactor, BN_value_one())) { in eap_pwd_perform_commit_exchange()
484 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, in eap_pwd_perform_commit_exchange()
558 BN_clear_free(cofactor); in eap_pwd_perform_commit_exchange()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP384R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP384R1Curve()
DSecP192R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP192R1Curve()
DSecP224R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP224R1Curve()
DSecP256R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP256R1Curve()
DSecP256K1Curve.java29 this.cofactor = BigInteger.valueOf(1); in SecP256K1Curve()
DSecP192K1Curve.java29 this.cofactor = BigInteger.valueOf(1); in SecP192K1Curve()
DSecP521R1Curve.java30 this.cofactor = BigInteger.valueOf(1); in SecP521R1Curve()
DSecP224K1Curve.java29 this.cofactor = BigInteger.valueOf(1); in SecP224K1Curve()
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp3391 const BIGNUM* order, const BIGNUM* cofactor) argument
3405 !EC_GROUP_set_generator(group.get(), generator.get(), order, cofactor)) {
3419 BIGNUM *order = nullptr, *cofactor = nullptr; local
3428 cofactor = BN_new();
3429 if (cofactor == nullptr) {
3441 !BN_set_word(cofactor, cofactorInt)) {
3451 Unique_BIGNUM cofactorStorage(cofactor);
3457 Unique_EC_GROUP group(EC_GROUP_new_arbitrary(p, a, b, x, y, order, cofactor));
3638 Unique_BIGNUM cofactor(BN_new()); local
3639 if (cofactor.get() == nullptr) {
[all …]
/external/boringssl/src/crypto/obj/
Dobjects.txt1332 : dh-cofactor-kdf
/external/tpm2/generator/
Draw_structures_fixed.txt14032 cofactor (a size of zero indicates a cofactor of 1)
Draw_structures.txt14030 cofactor (a size of zero indicates a cofactor of 1)

12