Home
last modified time | relevance | path

Searched refs:FiniteField (Results 1 – 25 of 77) sorted by relevance

1234

/external/epid-sdk/epid/common/math/
Dfinitefield.h50 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/
Dfinitefield-test.cc92 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/
Dfinite_field_wrapper-test.cc57 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/
Depid2params.c25 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 …]
Depid2params.h40 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 )
Dcommitment.h29 typedef struct FiniteField FiniteField; typedef
95 FiniteField* GT, CommitValues* values);
120 EpidStatus CalculateCommitmentHash(CommitValues const* values, FiniteField* Fp,
Dcommitment.c48 FiniteField* GT, CommitValues* values) { in SetCalculatedCommitValues()
67 EpidStatus CalculateCommitmentHash(CommitValues const* values, FiniteField* Fp, in CalculateCommitmentHash()
/external/epid-sdk/epid/common-testhelper/
Dfinite_field_wrapper-testhelper.cc29 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()
Dfinite_field_wrapper-testhelper.h56 operator FiniteField*();
58 operator const FiniteField*() const;
60 FiniteField* get();
62 FiniteField const* getc() const;
Depid2params_wrapper-testhelper.h23 typedef struct FiniteField FiniteField; typedef
46 FiniteField* Fp() const;
/external/epid-sdk/epid/common/1.1/src/
Depid11params.h38 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
Depid11params.c35 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/
Dfinitefield.c69 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 …]
Dpairing-internal.h29 FiniteField* ff; ///< finite field Fq12 GT
34 FiniteField* Fq; ///< Fq
35 FiniteField* Fq2; ///< Fq2
36 FiniteField* Fq6; ///< Fq6
Dtatepairing-internal.h29 FiniteField* ff; ///< finite field GT
36 FiniteField* Fq; ///< Fq
37 FiniteField* Fq3; ///< Fq3
Dfinitefield-internal.h30 struct FiniteField { struct
34 struct FiniteField* ground_ff; argument
62 struct FiniteField* ff); argument
/external/epid-sdk/epid/member/src/
Djoin_commitment.h25 typedef struct FiniteField FiniteField; typedef
59 EpidStatus HashJoinCommitment(FiniteField* Fp, HashAlg hash_alg,
Dsign_commitment.h39 typedef struct FiniteField FiniteField; typedef
67 EpidStatus HashSignCommitment(FiniteField* Fp, HashAlg hash_alg,
Dnrprove_commitment.h26 typedef struct FiniteField FiniteField; typedef
75 EpidStatus HashNrProveCommitment(FiniteField* Fp, HashAlg hash_alg,
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/field/
DFiniteFields.java7 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()
DGenericPolynomialExtensionField.java9 protected final FiniteField subfield;
12 GenericPolynomialExtensionField(FiniteField subfield, Polynomial polynomial) in GenericPolynomialExtensionField()
28 public FiniteField getSubfield() in getSubfield()
DExtensionField.java3 public interface ExtensionField extends FiniteField
5 FiniteField getSubfield(); in getSubfield()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/math/field/
DFiniteFields.java11 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()
DGenericPolynomialExtensionField.java10 protected final FiniteField subfield;
13 GenericPolynomialExtensionField(FiniteField subfield, Polynomial polynomial) in GenericPolynomialExtensionField()
29 public FiniteField getSubfield() in getSubfield()
DExtensionField.java7 public interface ExtensionField extends FiniteField
9 FiniteField getSubfield(); in getSubfield()

1234