Home
last modified time | relevance | path

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

123

/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/epid-sdk/epid/common/src/
Depid2params.c331 BigNum* cofactor = NULL; in NewG1() local
388 result = NewBigNum(sizeof(BigNumStr), &cofactor); in NewG1()
393 result = ReadBigNum(&h1, sizeof(h1), cofactor); in NewG1()
397 result = NewEcGroup(Fq, fq_a, fq_b, g1_x, g1_y, order, cofactor, &ec); in NewG1()
405 DeleteBigNum(&cofactor); in NewG1()
424 BigNum* cofactor = NULL; in NewG2() local
476 result = NewBigNum(2 * sizeof(param->q), &cofactor); in NewG2()
480 result = BigNumAdd(q, q, cofactor); in NewG2()
484 result = BigNumSub(cofactor, p, cofactor); in NewG2()
493 result = BigNumMul(p, cofactor, order); in NewG2()
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECGroupContext.java136 final int cofactor = params.getCofactor(); in getInstance() local
142 y.toByteArray(), order.toByteArray(), cofactor); in getInstance()
174 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); in getECParameterSpec() local
176 ECParameterSpec spec = new ECParameterSpec(curve, generator, order, cofactor.intValue()); in getECParameterSpec()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLECGroupContext.java137 final int cofactor = params.getCofactor(); in getInstance() local
143 y.toByteArray(), order.toByteArray(), cofactor); in getInstance()
175 final BigInteger cofactor = new BigInteger(NativeCrypto.EC_GROUP_get_cofactor(groupCtx)); in getECParameterSpec() local
177 ECParameterSpec spec = new ECParameterSpec(curve, generator, order, cofactor.intValue()); in getECParameterSpec()
/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcpeccpset.c102 const IppsBigNumState* pOrder, int cofactor,
139 IPP_BADARG_RET(!(0<cofactor), ippStsRangeErr);
148 (BNU_CHUNK_T)cofactor,
Dpcpeccpget.c100 IppsBigNumState* pOrder, int* cofactor,
143 IPP_BAD_PTR1_RET(cofactor);
167 *cofactor = (int)ECP_COFACTOR(pEC)[0];
Dpcpgfpecstuff.h134 BNU_CHUNK_T* cofactor; /* cofactor = #E/base_point order */ member
162 #define ECP_COFACTOR(pCtx) ((pCtx)->cofactor)
/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/epid-sdk/epid/common-testhelper/
Decgroup_wrapper-testhelper.cc106 BigNum const* cofactor) in EcGroupObj() argument
109 NewEcGroup(*ff, a, b, x, y, order, cofactor, &temp); in EcGroupObj()
Decgroup_wrapper-testhelper.h49 BigNum const* cofactor);
/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/include/openssl/
Dec.h142 BIGNUM *cofactor, BN_CTX *ctx);
316 const BIGNUM *cofactor);
/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/epid-sdk/epid/common/math/
Decgroup.h83 BigNum const* cofactor, EcGroup** g);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/custom/sec/
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()
DSecP521R1Curve.java32 this.cofactor = BigInteger.valueOf(1); in SecP521R1Curve()
DSecP192K1Curve.java31 this.cofactor = BigInteger.valueOf(1); in SecP192K1Curve()
DSecP384R1Curve.java32 this.cofactor = BigInteger.valueOf(1); in SecP384R1Curve()
DSecP224R1Curve.java32 this.cofactor = BigInteger.valueOf(1); in SecP224R1Curve()
DSecP224K1Curve.java31 this.cofactor = BigInteger.valueOf(1); in SecP224K1Curve()

123