/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
D | ECParameterSpec_ImplTest.java | 182 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/ |
D | ECCurve.java | 92 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 …]
|
D | Tnaf.java | 563 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/ |
D | ec.c | 343 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 …]
|
D | internal.h | 137 BIGNUM order, cofactor; member 297 uint8_t cofactor; /* promoted to BN_ULONG */ member
|
D | ec_asn1.c | 108 ASN1_INTEGER *cofactor; member 119 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER)
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_pwd_common.c | 94 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/ |
D | OpenSSLECGroupContext.java | 140 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()
|
D | NativeCrypto.java | 165 byte[] y, byte[] order, int cofactor); in EC_GROUP_new_arbitrary() argument
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/ |
D | ECDSASigner.java | 188 BigInteger cofactor = curve.getCofactor(); in verifySignature() local 189 if (cofactor != null && cofactor.compareTo(EIGHT) <= 0) in verifySignature()
|
/external/boringssl/src/include/openssl/ |
D | ec.h | 130 BIGNUM *cofactor, BN_CTX *ctx); 297 const BIGNUM *cofactor);
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_pwd.c | 661 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/ |
D | eap_pwd.c | 362 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/ |
D | SecP384R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1); in SecP384R1Curve()
|
D | SecP192R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1); in SecP192R1Curve()
|
D | SecP224R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1); in SecP224R1Curve()
|
D | SecP256R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1); in SecP256R1Curve()
|
D | SecP256K1Curve.java | 29 this.cofactor = BigInteger.valueOf(1); in SecP256K1Curve()
|
D | SecP192K1Curve.java | 29 this.cofactor = BigInteger.valueOf(1); in SecP192K1Curve()
|
D | SecP521R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1); in SecP521R1Curve()
|
D | SecP224K1Curve.java | 29 this.cofactor = BigInteger.valueOf(1); in SecP224K1Curve()
|
/external/conscrypt/src/main/native/ |
D | org_conscrypt_NativeCrypto.cpp | 3391 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/ |
D | objects.txt | 1332 : dh-cofactor-kdf
|
/external/tpm2/generator/ |
D | raw_structures_fixed.txt | 14032 cofactor (a size of zero indicates a cofactor of 1)
|
D | raw_structures.txt | 14030 cofactor (a size of zero indicates a cofactor of 1)
|