/external/epid-sdk/epid/common/math/ |
D | finitefield.h | 50 typedef struct FiniteField FiniteField; typedef 70 EpidStatus NewFiniteField(BigNumStr const* prime, FiniteField** ff); 94 EpidStatus NewFiniteFieldViaBinomalExtension(FiniteField const* ground_field, 96 int degree, FiniteField** ff); 123 EpidStatus NewFiniteFieldViaPolynomialExtension(FiniteField const* ground_field, 125 int degree, FiniteField** ff); 136 void DeleteFiniteField(FiniteField** ff); 158 EpidStatus NewFfElement(FiniteField const* ff, FfElement** new_ff_elem); 187 EpidStatus ReadFfElement(FiniteField* ff, ConstOctStr ff_elem_str, 204 EpidStatus InitFfElementFromBn(FiniteField* ff, BigNum* bn, FfElement* ff_elem); [all …]
|
/external/epid-sdk/epid/common/math/unittests/ |
D | finitefield-test.cc | 92 TEST(FiniteField, DeleteWorksGivenNewlyCreatedFiniteField) { in TEST() argument 93 FiniteField* finitefield = nullptr; in TEST() 98 TEST(FiniteField, DeleteWorksGivenNullPointer) { in TEST() argument 100 FiniteField* finitefield = nullptr; in TEST() 103 TEST(FiniteField, NewFailsGivenNullBigNumStr) { in TEST() argument 104 FiniteField* finitefield = nullptr; in TEST() 110 TEST(FiniteField, NewFailsGivenNullFiniteField) { in TEST() argument 115 TEST(FiniteField, NewSucceedsGivenNewlyCreatedBigNumStr) { in TEST() argument 116 FiniteField* finitefield = nullptr; in TEST() 123 TEST(FiniteField, DISABLED_NewSucceedsGivenAllFFBigNumStr) { in TEST() argument [all …]
|
/external/epid-sdk/epid/common-testhelper/unittests/ |
D | finite_field_wrapper-test.cc | 57 EXPECT_NE(nullptr, (FiniteField*)ff); in TEST_F() 63 EXPECT_NE((FiniteField*)ff1, (FiniteField*)ff2); in TEST_F() 65 EXPECT_EQ((FiniteField*)ff1, (FiniteField*)ff2); in TEST_F() 71 EXPECT_EQ((FiniteField*)ff1, (FiniteField*)ff2); in TEST_F() 83 FiniteField const* ff_ptr = ff; in TEST_F() 89 FiniteField const* ff_ptr = ff.getc(); in TEST_F() 113 FiniteField const* ff_ptr = ff; in TEST_F() 119 FiniteField const* ff_ptr = ff.getc(); in TEST_F() 125 FiniteField* ff_ptr = ff; in TEST_F() 131 FiniteField* ff_ptr = ff.get(); in TEST_F()
|
/external/epid-sdk/epid/common/src/ |
D | epid2params.c | 25 static EpidStatus NewFp(Epid2Params const* param, FiniteField** Fp); 27 static EpidStatus NewFq(Epid2Params const* param, FiniteField** Fq); 29 static EpidStatus NewFq2(Epid2Params const* param, FiniteField* Fq, 30 FiniteField** Fq2); 32 EpidStatus NewFq6(Epid2Params const* param, FiniteField* Fq2, FfElement* xi, 33 FiniteField** Fq6); 35 static EpidStatus NewG1(Epid2Params const* param, FiniteField* Fq, 39 FiniteField* Fq, FiniteField* Fq2, EcGroup** G2); 41 static EpidStatus NewGT(FiniteField* Fq6, FiniteField** GT); 45 static void DeleteFp(FiniteField** Fp); [all …]
|
D | epid2params.h | 40 FiniteField* Fp; ///< Finite field Fp 42 FiniteField* Fq; ///< Finite field Fq 43 FiniteField* Fq2; ///< Finite field Fq2 44 FiniteField* Fq6; ///< Finite field Fq6 45 FiniteField* GT; ///< Finite field GT(Fq12 )
|
D | commitment.h | 29 typedef struct FiniteField FiniteField; typedef 95 FiniteField* GT, CommitValues* values); 120 EpidStatus CalculateCommitmentHash(CommitValues const* values, FiniteField* Fp,
|
D | commitment.c | 48 FiniteField* GT, CommitValues* values) { in SetCalculatedCommitValues() 67 EpidStatus CalculateCommitmentHash(CommitValues const* values, FiniteField* Fp, in CalculateCommitmentHash()
|
/external/epid-sdk/epid/common-testhelper/ |
D | finite_field_wrapper-testhelper.cc | 29 void operator()(FiniteField* ff) { in operator ()() 58 std::shared_ptr<FiniteField> ff_; 112 FiniteField* temp = nullptr; in FiniteFieldObj() 133 FiniteField* temp = nullptr; in FiniteFieldObj() 142 FiniteField* temp = nullptr; in FiniteFieldObj() 153 FiniteField* temp = nullptr; in FiniteFieldObj() 163 FiniteFieldObj::operator FiniteField*() { return state_->ff_.get(); } in operator FiniteField*() 165 FiniteFieldObj::operator const FiniteField*() const { in operator const FiniteField*() 169 FiniteField* FiniteFieldObj::get() { return state_->ff_.get(); } in get() 171 FiniteField const* FiniteFieldObj::getc() const { return state_->ff_.get(); } in getc()
|
D | finite_field_wrapper-testhelper.h | 56 operator FiniteField*(); 58 operator const FiniteField*() const; 60 FiniteField* get(); 62 FiniteField const* getc() const;
|
D | epid2params_wrapper-testhelper.h | 23 typedef struct FiniteField FiniteField; typedef 46 FiniteField* Fp() const;
|
/external/epid-sdk/epid/common/1.1/src/ |
D | epid11params.h | 38 FiniteField* Fp; ///< Finite field Fp 39 FiniteField* Fq; ///< Finite field Fq 40 FiniteField* Fp_tick; ///< Finite field Fp' 41 FiniteField* Fq_tick; ///< Finite field Fq' 42 FiniteField* Fqd; ///< Finite field Fqd, an extension of Fq 43 FiniteField* GT; ///< GT is a quadratic field extension Fqk of Fqd
|
D | epid11params.c | 35 static EpidStatus NewFqd(Epid11Params const* params, FiniteField* Fq, 36 FiniteField** Fqd); 39 EpidStatus NewFqk(Epid11Params const* params, FiniteField* Fq, FiniteField* Fqd, 40 FiniteField** Fqk); 43 static EpidStatus NewG1(Epid11Params const* params, FiniteField* Fq, 47 static EpidStatus NewG2(Epid11Params const* params, FiniteField* Fq, 48 FiniteField* Fqd, EcGroup** G2); 51 static EpidStatus NewG3(Epid11Params const* params, FiniteField* Fq_tick, 188 EpidStatus NewFqd(Epid11Params const* params, FiniteField* Fq, in NewFqd() 189 FiniteField** Fqd) { in NewFqd() [all …]
|
/external/epid-sdk/epid/common/math/src/ |
D | finitefield.c | 69 EpidStatus NewFiniteField(BigNumStr const* prime, FiniteField** ff) { in NewFiniteField() 72 FiniteField* finitefield_ptr = NULL; in NewFiniteField() 139 finitefield_ptr = (FiniteField*)SAFE_ALLOC(sizeof(FiniteField)); in NewFiniteField() 164 EpidStatus NewFiniteFieldViaBinomalExtension(FiniteField const* ground_field, in NewFiniteFieldViaBinomalExtension() 166 int degree, FiniteField** ff) { in NewFiniteFieldViaBinomalExtension() 170 FiniteField* finitefield_ptr = NULL; in NewFiniteFieldViaBinomalExtension() 219 finitefield_ptr = (FiniteField*)SAFE_ALLOC(sizeof(FiniteField)); in NewFiniteFieldViaBinomalExtension() 241 WriteFfElement((FiniteField*)ground_field, ground_element, ff_elem_str, in NewFiniteFieldViaBinomalExtension() 259 finitefield_ptr->ground_ff = (FiniteField*)ground_field; in NewFiniteFieldViaBinomalExtension() 275 EpidStatus NewFiniteFieldViaPolynomialExtension(FiniteField const* ground_field, in NewFiniteFieldViaPolynomialExtension() [all …]
|
D | pairing-internal.h | 29 FiniteField* ff; ///< finite field Fq12 GT 34 FiniteField* Fq; ///< Fq 35 FiniteField* Fq2; ///< Fq2 36 FiniteField* Fq6; ///< Fq6
|
D | tatepairing-internal.h | 29 FiniteField* ff; ///< finite field GT 36 FiniteField* Fq; ///< Fq 37 FiniteField* Fq3; ///< Fq3
|
D | finitefield-internal.h | 30 struct FiniteField { struct 34 struct FiniteField* ground_ff; argument 62 struct FiniteField* ff); argument
|
/external/epid-sdk/epid/member/src/ |
D | join_commitment.h | 25 typedef struct FiniteField FiniteField; typedef 59 EpidStatus HashJoinCommitment(FiniteField* Fp, HashAlg hash_alg,
|
D | sign_commitment.h | 39 typedef struct FiniteField FiniteField; typedef 67 EpidStatus HashSignCommitment(FiniteField* Fp, HashAlg hash_alg,
|
D | nrprove_commitment.h | 26 typedef struct FiniteField FiniteField; typedef 75 EpidStatus HashNrProveCommitment(FiniteField* Fp, HashAlg hash_alg,
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/field/ |
D | FiniteFields.java | 7 static final FiniteField GF_2 = new PrimeField(BigInteger.valueOf(2)); 8 static final FiniteField GF_3 = new PrimeField(BigInteger.valueOf(3)); 32 public static FiniteField getPrimeField(BigInteger characteristic) in getPrimeField()
|
D | GenericPolynomialExtensionField.java | 9 protected final FiniteField subfield; 12 GenericPolynomialExtensionField(FiniteField subfield, Polynomial polynomial) in GenericPolynomialExtensionField() 28 public FiniteField getSubfield() in getSubfield()
|
D | ExtensionField.java | 3 public interface ExtensionField extends FiniteField 5 FiniteField getSubfield(); in getSubfield()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/field/ |
D | FiniteFields.java | 11 static final FiniteField GF_2 = new PrimeField(BigInteger.valueOf(2)); 12 static final FiniteField GF_3 = new PrimeField(BigInteger.valueOf(3)); 36 public static FiniteField getPrimeField(BigInteger characteristic) in getPrimeField()
|
D | GenericPolynomialExtensionField.java | 10 protected final FiniteField subfield; 13 GenericPolynomialExtensionField(FiniteField subfield, Polynomial polynomial) in GenericPolynomialExtensionField() 29 public FiniteField getSubfield() in getSubfield()
|
D | ExtensionField.java | 7 public interface ExtensionField extends FiniteField 9 FiniteField getSubfield(); in getSubfield()
|