Home
last modified time | relevance | path

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

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECCurve.java93 protected BigInteger order, cofactor; field in ECCurve
356 return cofactor; in getCofactor()
634 public Fp(BigInteger q, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor)
645 this.cofactor = cofactor;
657 …Integer q, BigInteger r, ECFieldElement a, ECFieldElement b, BigInteger order, BigInteger cofactor)
668 this.cofactor = cofactor;
674 return new Fp(this.q, this.r, this.a, this.b, this.order, this.cofactor);
957 …return this.order != null && this.cofactor != null && this.b.isOne() && (this.a.isZero() || this.a…
1052 BigInteger cofactor)
1054 this(m, k, 0, 0, a, b, order, cofactor);
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/
DECCurve.java98 protected BigInteger order, cofactor; field in ECCurve
361 return cofactor; in getCofactor()
643 public Fp(BigInteger q, BigInteger a, BigInteger b, BigInteger order, BigInteger cofactor)
654 this.cofactor = cofactor;
666 …Integer q, BigInteger r, ECFieldElement a, ECFieldElement b, BigInteger order, BigInteger cofactor)
677 this.cofactor = cofactor;
683 return new Fp(this.q, this.r, this.a, this.b, this.order, this.cofactor);
969 …return this.order != null && this.cofactor != null && this.b.isOne() && (this.a.isZero() || this.a…
1065 BigInteger cofactor)
1067 this(m, k, 0, 0, a, b, order, cofactor);
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECGroupContext.java149 final int cofactor = params.getCofactor(); in getInstance() local
155 y.toByteArray(), order.toByteArray(), cofactor); in getInstance()
191 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); in getECParameterSpec() local
193 ECParameterSpec spec = new ECParameterSpec(curve, generator, order, cofactor.intValue()); in getECParameterSpec()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLECGroupContext.java150 final int cofactor = params.getCofactor(); in getInstance() local
156 y.toByteArray(), order.toByteArray(), cofactor); in getInstance()
192 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); in getECParameterSpec() local
194 ECParameterSpec spec = new ECParameterSpec(curve, generator, order, cofactor.intValue()); in getECParameterSpec()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX9Curve.java48 BigInteger cofactor, in X9Curve() argument
57 curve = new ECCurve.Fp(p, A, B, order, cofactor); in X9Curve()
91 curve = new ECCurve.F2m(m, k1, k2, k3, A, B, order, cofactor); in X9Curve()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/x9/
DX9Curve.java50 BigInteger cofactor, in X9Curve() argument
59 curve = new ECCurve.Fp(p, A, B, order, cofactor); in X9Curve()
93 curve = new ECCurve.F2m(m, k1, k2, k3, A, B, order, cofactor); in X9Curve()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/
DECDSASigner.java194 BigInteger cofactor = curve.getCofactor(); in verifySignature() local
195 if (cofactor != null && cofactor.compareTo(EIGHT) <= 0) in verifySignature()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/signers/
DECDSASigner.java196 BigInteger cofactor = curve.getCofactor(); in verifySignature() local
197 if (cofactor != null && cofactor.compareTo(EIGHT) <= 0) in verifySignature()
/external/boringssl/src/crypto/ec_extra/
Dec_asn1.c267 CBS params, field_id, field_type, curve, base, cofactor; in parse_explicit_prime_curve() local
290 !CBS_get_optional_asn1(&params, &cofactor, &has_cofactor, in parse_explicit_prime_curve()
299 if (CBS_len(&cofactor) != 1 || in parse_explicit_prime_curve()
300 CBS_data(&cofactor)[0] != 1) { in parse_explicit_prime_curve()
/external/boringssl/src/include/openssl/
Dec.h142 BIGNUM *cofactor, BN_CTX *ctx);
316 const BIGNUM *cofactor);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
DSecP224K1Curve.java31 this.cofactor = BigInteger.valueOf(1); in SecP224K1Curve()
DSecP521R1Curve.java32 this.cofactor = BigInteger.valueOf(1); in SecP521R1Curve()
DSecP192K1Curve.java31 this.cofactor = BigInteger.valueOf(1); in SecP192K1Curve()
DSecP256R1Curve.java32 this.cofactor = BigInteger.valueOf(1); in SecP256R1Curve()
DSecP192R1Curve.java32 this.cofactor = BigInteger.valueOf(1); in SecP192R1Curve()
DSecP256K1Curve.java31 this.cofactor = BigInteger.valueOf(1); in SecP256K1Curve()
DSecP384R1Curve.java32 this.cofactor = BigInteger.valueOf(1); in SecP384R1Curve()
DSecP224R1Curve.java32 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
359 if (!BN_is_one(cofactor)) { in EC_GROUP_set_generator()
632 int EC_GROUP_get_cofactor(const EC_GROUP *group, BIGNUM *cofactor, in EC_GROUP_get_cofactor() argument
635 return BN_set_word(cofactor, 1); in EC_GROUP_get_cofactor()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/ec/custom/sec/
DSecP256K1Curve.java35 this.cofactor = BigInteger.valueOf(1); in SecP256K1Curve()
DSecP256R1Curve.java36 this.cofactor = BigInteger.valueOf(1); in SecP256R1Curve()
DSecP224K1Curve.java35 this.cofactor = BigInteger.valueOf(1); in SecP224K1Curve()
DSecP192K1Curve.java35 this.cofactor = BigInteger.valueOf(1); in SecP192K1Curve()
DSecP192R1Curve.java36 this.cofactor = BigInteger.valueOf(1); in SecP192R1Curve()
DSecP384R1Curve.java36 this.cofactor = BigInteger.valueOf(1); in SecP384R1Curve()

12