/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
H A D | ECParameterSpec_ImplTest.java | 113 * <code>order</code> or <code>cofactor</code> is not positive<br> 142 // Test case 3: cofactor is negative 150 // Test case 4: cofactor == 0 158 // Test case 5: both order and cofactor are not positive 168 * Assertion: returns cofactor<br> 171 * Expected: must return cofactor value which is equal 182 int cofactor = 10; 184 new ECParameterSpec(curve, generator, order, cofactor); 185 assertEquals(cofactor, ps.getCofactor()); 205 int cofactor [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/ |
H A D | ECCurve.java | 88 protected BigInteger order, cofactor; field in class:ECCurve 324 return cofactor; 539 public Fp(BigInteger q, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor) argument 550 this.cofactor = cofactor; 559 protected Fp(BigInteger q, BigInteger r, ECFieldElement a, ECFieldElement b, BigInteger order, BigInteger cofactor) argument 570 this.cofactor = cofactor; 576 return new Fp(q, r, a, b, order, cofactor); 778 * @param cofactor Th 781 F2m( int m, int k, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor) argument 846 F2m( int m, int k1, int k2, int k3, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor) argument 871 F2m(int m, int k1, int k2, int k3, ECFieldElement a, ECFieldElement b, BigInteger order, BigInteger cofactor) argument [all...] |
/external/wpa_supplicant_8/hostapd/src/eap_common/ |
H A D | eap_pwd_common.c | 94 BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; local 133 ((cofactor = BN_new()) == NULL) || 152 if (!EC_GROUP_get_cofactor(grp->group, cofactor, NULL)) { 153 wpa_printf(MSG_INFO, "EAP-pwd: unable to get cofactor for " 246 if (BN_cmp(cofactor, BN_value_one())) { 249 cofactor, NULL)) { 278 BN_clear_free(cofactor);
|
/external/wpa_supplicant_8/src/eap_common/ |
H A D | eap_pwd_common.c | 94 BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; local 133 ((cofactor = BN_new()) == NULL) || 152 if (!EC_GROUP_get_cofactor(grp->group, cofactor, NULL)) { 153 wpa_printf(MSG_INFO, "EAP-pwd: unable to get cofactor for " 246 if (BN_cmp(cofactor, BN_value_one())) { 249 cofactor, NULL)) { 278 BN_clear_free(cofactor);
|
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/ |
H A D | eap_pwd_common.c | 94 BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; local 133 ((cofactor = BN_new()) == NULL) || 152 if (!EC_GROUP_get_cofactor(grp->group, cofactor, NULL)) { 153 wpa_printf(MSG_INFO, "EAP-pwd: unable to get cofactor for " 246 if (BN_cmp(cofactor, BN_value_one())) { 249 cofactor, NULL)) { 278 BN_clear_free(cofactor);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/ |
H A D | SecP192K1Curve.java | 29 this.cofactor = BigInteger.valueOf(1);
|
H A D | SecP192R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1);
|
H A D | SecP224K1Curve.java | 29 this.cofactor = BigInteger.valueOf(1);
|
H A D | SecP224R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1);
|
H A D | SecP256K1Curve.java | 29 this.cofactor = BigInteger.valueOf(1);
|
H A D | SecP256R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1);
|
H A D | SecP384R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1);
|
H A D | SecP521R1Curve.java | 30 this.cofactor = BigInteger.valueOf(1);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
H A D | OpenSSLECGroupContext.java | 145 final int cofactor = params.getCofactor(); 151 y.toByteArray(), order.toByteArray(), cofactor); 193 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); 195 ECParameterSpec spec = new ECParameterSpec(curve, generator, order, cofactor.intValue());
|
/external/boringssl/src/crypto/ec/ |
H A D | ec.c | 258 BN_init(&ret->cofactor); 291 const BIGNUM *order, const BIGNUM *cofactor) { 317 if (cofactor != NULL) { 318 if (!BN_copy(&group->cofactor, cofactor)) { 322 BN_zero(&group->cofactor); 385 !BN_set_word(x, (BN_ULONG)data->cofactor)) { 393 !BN_set_word(&group->cofactor, (BN_ULONG)data->cofactor)) { 451 BN_free(&group->cofactor); 290 EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor) argument 545 EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, BN_CTX *ctx) argument [all...] |
H A D | internal.h | 198 BIGNUM order, cofactor; member in struct:ec_group_st 349 /* cofactor is the cofactor of the group (i.e. the number of elements in the 351 uint8_t cofactor; /* promoted to BN_ULONG */ member in struct:curve_data
|
H A D | ec_asn1.c | 108 ASN1_INTEGER *cofactor; member in struct:ec_parameters_st 119 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER)
|
/external/boringssl/include/openssl/ |
H A D | ec.h | 128 /* EC_GROUP_get_cofactor sets |*cofactor| to the cofactor of |group| using 131 BIGNUM *cofactor, BN_CTX *ctx); 301 * must have the given order and cofactor. This should only be used with 306 const BIGNUM *cofactor);
|
/external/boringssl/src/include/openssl/ |
H A D | ec.h | 128 /* EC_GROUP_get_cofactor sets |*cofactor| to the cofactor of |group| using 131 BIGNUM *cofactor, BN_CTX *ctx); 301 * must have the given order and cofactor. This should only be used with 306 const BIGNUM *cofactor);
|
/external/wpa_supplicant_8/hostapd/src/eap_peer/ |
H A D | eap_pwd.c | 355 BIGNUM *mask = NULL, *x = NULL, *y = NULL, *cofactor = NULL; local 378 ((cofactor = BN_new()) == NULL) || 385 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { 386 wpa_printf(MSG_INFO, "EAP-pwd (peer): unable to get cofactor " 450 if (BN_cmp(cofactor, BN_value_one())) { 452 data->server_element, cofactor, NULL)) { 477 if (BN_cmp(cofactor, BN_value_one())) { 478 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, 551 BN_clear_free(cofactor);
|
/external/wpa_supplicant_8/hostapd/src/eap_server/ |
H A D | eap_server_pwd.c | 656 BIGNUM *x = NULL, *y = NULL, *cofactor = NULL; local 676 ((cofactor = BN_new()) == NULL) || 687 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { 689 "cofactor for curve"); 709 if (BN_cmp(cofactor, BN_value_one())) { 711 data->peer_element, cofactor, NULL)) { 736 if (BN_cmp(cofactor, BN_value_one())) { 737 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, 767 BN_clear_free(cofactor);
|
/external/wpa_supplicant_8/src/eap_peer/ |
H A D | eap_pwd.c | 355 BIGNUM *mask = NULL, *x = NULL, *y = NULL, *cofactor = NULL; local 378 ((cofactor = BN_new()) == NULL) || 385 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { 386 wpa_printf(MSG_INFO, "EAP-pwd (peer): unable to get cofactor " 450 if (BN_cmp(cofactor, BN_value_one())) { 452 data->server_element, cofactor, NULL)) { 477 if (BN_cmp(cofactor, BN_value_one())) { 478 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, 551 BN_clear_free(cofactor);
|
/external/wpa_supplicant_8/src/eap_server/ |
H A D | eap_server_pwd.c | 656 BIGNUM *x = NULL, *y = NULL, *cofactor = NULL; local 676 ((cofactor = BN_new()) == NULL) || 687 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { 689 "cofactor for curve"); 709 if (BN_cmp(cofactor, BN_value_one())) { 711 data->peer_element, cofactor, NULL)) { 736 if (BN_cmp(cofactor, BN_value_one())) { 737 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, 767 BN_clear_free(cofactor);
|
/external/wpa_supplicant_8/wpa_supplicant/src/eap_peer/ |
H A D | eap_pwd.c | 355 BIGNUM *mask = NULL, *x = NULL, *y = NULL, *cofactor = NULL; local 378 ((cofactor = BN_new()) == NULL) || 385 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { 386 wpa_printf(MSG_INFO, "EAP-pwd (peer): unable to get cofactor " 450 if (BN_cmp(cofactor, BN_value_one())) { 452 data->server_element, cofactor, NULL)) { 477 if (BN_cmp(cofactor, BN_value_one())) { 478 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, 551 BN_clear_free(cofactor);
|
/external/wpa_supplicant_8/wpa_supplicant/src/eap_server/ |
H A D | eap_server_pwd.c | 656 BIGNUM *x = NULL, *y = NULL, *cofactor = NULL; local 676 ((cofactor = BN_new()) == NULL) || 687 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) { 689 "cofactor for curve"); 709 if (BN_cmp(cofactor, BN_value_one())) { 711 data->peer_element, cofactor, NULL)) { 736 if (BN_cmp(cofactor, BN_value_one())) { 737 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor, 767 BN_clear_free(cofactor);
|