HomeSort by relevance Sort by last modified time
    Searched refs:cofactor (Results 1 - 25 of 44) sorted by null

1 2

  /external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/
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; local
184 new ECParameterSpec(curve, generator, order, cofactor);
185 assertEquals(cofactor, ps.getCofactor());
205 int cofactor = 10 local
230 int cofactor = 10; local
255 int cofactor = 10; local
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
ECCurves.java 112 int cofactor,
121 cofactor);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
ECCurve.java 92 protected BigInteger order, cofactor; field in class:ECCurve
330 return cofactor;
550 public Fp(BigInteger q, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor)
561 this.cofactor = cofactor;
570 protected Fp(BigInteger q, BigInteger r, ECFieldElement a, ECFieldElement b, BigInteger order, BigInteger cofactor)
581 this.cofactor = cofactor;
587 return new Fp(this.q, this.r, this.a, this.b, this.order, this.cofactor);
870 return this.order != null && this.cofactor != null && this.b.isOne() && (this.a.isZero() || this.a.isOne())
    [all...]
Tnaf.java 563 public static BigInteger[] getSi(int fieldSize, int curveA, BigInteger cofactor)
566 int shifts = getShiftsForCofactor(cofactor);
595 throw new IllegalArgumentException("h (Cofactor) must be 2 or 4");
  /external/wpa_supplicant_8/src/eap_common/
eap_pwd_common.c 94 BIGNUM *x_candidate = NULL, *rnd = NULL, *cofactor = NULL; local
153 ((cofactor = BN_new()) == NULL) ||
172 if (!EC_GROUP_get_cofactor(grp->group, cofactor, NULL)) {
173 wpa_printf(MSG_INFO, "EAP-pwd: unable to get cofactor for "
266 if (BN_cmp(cofactor, BN_value_one())) {
269 cofactor, NULL)) {
298 BN_clear_free(cofactor);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
SecP192K1Curve.java 29 this.cofactor = BigInteger.valueOf(1);
SecP192R1Curve.java 30 this.cofactor = BigInteger.valueOf(1);
SecP224K1Curve.java 29 this.cofactor = BigInteger.valueOf(1);
SecP224R1Curve.java 30 this.cofactor = BigInteger.valueOf(1);
SecP256K1Curve.java 29 this.cofactor = BigInteger.valueOf(1);
SecP256R1Curve.java 30 this.cofactor = BigInteger.valueOf(1);
SecP384R1Curve.java 30 this.cofactor = BigInteger.valueOf(1);
SecP521R1Curve.java 30 this.cofactor = BigInteger.valueOf(1);
  /external/conscrypt/src/main/java/org/conscrypt/
OpenSSLECGroupContext.java 140 final int cofactor = params.getCofactor(); local
146 y.toByteArray(), order.toByteArray(), cofactor);
188 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); local
190 ECParameterSpec spec = new ECParameterSpec(curve, generator, order, cofactor.intValue());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
ECDSASigner.java 175 * There are ~cofactor elements of the curve field that reduce (modulo the group order) to 'r'.
176 * If the cofactor is known and small, we generate those possible field values and project each
188 BigInteger cofactor = curve.getCofactor(); local
189 if (cofactor != null && cofactor.compareTo(EIGHT) <= 0)
  /external/boringssl/src/crypto/ec/
ec.c 343 BN_init(&ret->cofactor);
375 const BIGNUM *order, const BIGNUM *cofactor) {
401 if (cofactor != NULL) {
402 if (!BN_copy(&group->cofactor, cofactor)) {
406 BN_zero(&group->cofactor);
467 !BN_set_word(&group->cofactor, (BN_ULONG)data->cofactor)) {
530 BN_free(&group->cofactor);
566 !BN_copy(&dest->cofactor, &src->cofactor))
    [all...]
internal.h 109 * cofactor one), as this check is not necessary for such curves (See section
137 BIGNUM order, cofactor; member in struct:ec_group_st
295 /* cofactor is the cofactor of the group (i.e. the number of elements in the
297 uint8_t cofactor; /* promoted to BN_ULONG */ member in struct:curve_data
ec_asn1.c 108 ASN1_INTEGER *cofactor; member in struct:ec_parameters_st
119 ASN1_OPT(ECPARAMETERS, cofactor, ASN1_INTEGER)
  /frameworks/rs/
rsMatrix4x4.cpp 56 float cofactor = (i+j) & 1 ? -minor : minor; local
58 result.m[4*i + j] = cofactor;
97 float cofactor = (i+j) & 1 ? -minor : minor; local
99 result.m[4*j + i] = cofactor;
  /external/boringssl/src/include/openssl/
ec.h 127 /* EC_GROUP_get_cofactor sets |*cofactor| to the cofactor of |group| using
130 BIGNUM *cofactor, BN_CTX *ctx);
292 * must have the given order and cofactor. This should only be used with
297 const BIGNUM *cofactor);
  /external/wpa_supplicant_8/src/eap_peer/
eap_pwd.c 362 BIGNUM *mask = NULL, *x = NULL, *y = NULL, *cofactor = NULL; local
385 ((cofactor = BN_new()) == NULL) ||
392 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) {
393 wpa_printf(MSG_INFO, "EAP-pwd (peer): unable to get cofactor "
456 if (BN_cmp(cofactor, BN_value_one())) {
458 data->server_element, cofactor, NULL)) {
483 if (BN_cmp(cofactor, BN_value_one())) {
484 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor,
558 BN_clear_free(cofactor);
  /external/wpa_supplicant_8/src/eap_server/
eap_server_pwd.c 661 BIGNUM *x = NULL, *y = NULL, *cofactor = NULL; local
681 ((cofactor = BN_new()) == NULL) ||
692 if (!EC_GROUP_get_cofactor(data->grp->group, cofactor, NULL)) {
694 "cofactor for curve");
714 if (BN_cmp(cofactor, BN_value_one())) {
716 data->peer_element, cofactor, NULL)) {
741 if (BN_cmp(cofactor, BN_value_one())) {
742 if (!EC_POINT_mul(data->grp->group, K, NULL, K, cofactor,
772 BN_clear_free(cofactor);
  /frameworks/base/rs/java/android/renderscript/
Matrix4f.java 418 float cofactor = ((i+j) & 1) != 0 ? -minor : minor; local
419 return cofactor;
  /frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
Matrix4f.java 419 float cofactor = ((i+j) & 1) != 0 ? -minor : minor; local
420 return cofactor;
  /external/conscrypt/src/main/native/
org_conscrypt_NativeCrypto.cpp 3419 BIGNUM *order = nullptr, *cofactor = nullptr; local
    [all...]

Completed in 643 milliseconds

1 2