/external/epid-sdk/epid/common/math/unittests/ |
D | bignum-test.cc | 37 static const BigNumStr str_0; 38 static const BigNumStr str_1; 39 static const BigNumStr str_2; 40 static const BigNumStr str_big; 41 static const BigNumStr str_2big; 42 static const BigNumStr str_large_m1; 43 static const BigNumStr str_large; 44 static const BigNumStr str_large_p1; 45 static const BigNumStr str_32byte_high_bit_set; 46 static const BigNumStr str_32byte_high; [all …]
|
D | ecgroup-test.cc | 151 static const BigNumStr h1; 152 static const BigNumStr p; 153 static const BigNumStr q; 157 static const BigNumStr x_str; 158 static const BigNumStr y_str; 224 BigNumStr h_tick_str = {0}; in SetUp() 226 h_tick_str.data.data)[sizeof(BigNumStr) / sizeof(OctStr32) - 1] = in SetUp() 299 const BigNumStr EcGroupTest::h1 = { 303 const BigNumStr EcGroupTest::p = { 307 const BigNumStr EcGroupTest::q = { [all …]
|
D | ffelement-test.cc | 47 bool operator==(BigNumStr const& lhs, BigNumStr const& rhs) { in operator ==() 51 bool operator==(BigNumStr const& lhs, FqElemStr const& rhs) { in operator ==() 55 bool operator==(FqElemStr const& lhs, BigNumStr const& rhs) { in operator ==() 197 static const BigNumStr bn_p_str; 201 static const BigNumStr fp_pm1_str; 204 static const BigNumStr bn_q_str; 208 static const BigNumStr bn_qm1_str; 214 static const BigNumStr bn_qp1_str; 217 static const BigNumStr fq_qm0x3013_str; 220 static const BigNumStr bn_epid11_bn_q_str; [all …]
|
D | printutils-test.cc | 47 static const BigNumStr epid20_q; 48 static const BigNumStr epid20_p; 58 static const BigNumStr h1; 162 const BigNumStr PrintutilsTest::epid20_q = { 166 const BigNumStr PrintutilsTest::epid20_p = { 246 const BigNumStr PrintutilsTest::h1 = {
|
/external/epid-sdk/epid/common-testhelper/1.1/ |
D | epid_params-testhelper.h | 56 static const BigNumStr p_str_; 57 static const BigNumStr q_str_; 61 static const BigNumStr coeffs_str_[3]; 66 static const BigNumStr p1_str_; 67 static const BigNumStr q1_str_;
|
D | epid_params-testhelper.cc | 100 const BigNumStr h2_str_ = { in Epid11ParamsObj() 113 const BigNumStr Epid11ParamsObj::p_str_ = { 118 const BigNumStr Epid11ParamsObj::q_str_ = { 133 const BigNumStr Epid11ParamsObj::coeffs_str_[3] = { 161 const BigNumStr Epid11ParamsObj::p1_str_ = { 166 const BigNumStr Epid11ParamsObj::q1_str_ = {
|
/external/epid-sdk/epid/member/tpm2/unittests/ |
D | commit-simulator-test.cc | 63 BigNumStr zero = {0}; in TEST_F() 68 THROW_ON_EPIDERR(EcExp(params.G1, p1, (BigNumStr const*)&r_str, p1_exp_r)); in TEST_F() 71 THROW_ON_EPIDERR(EcExp(params.G1, p2, (BigNumStr const*)&r_str, p2_exp_r)); in TEST_F() 108 BigNumStr zero = {0}; in TEST_F() 113 THROW_ON_EPIDERR(EcExp(params.G1, p1, (BigNumStr const*)&r_str, p1_exp_r)); in TEST_F() 116 THROW_ON_EPIDERR(EcExp(params.G1, p2, (BigNumStr const*)&r_str, p2_exp_r)); in TEST_F() 153 BigNumStr zero = {0}; in TEST_F() 158 THROW_ON_EPIDERR(EcExp(params.G1, p1, (BigNumStr const*)&r_str, p1_exp_r)); in TEST_F() 161 THROW_ON_EPIDERR(EcExp(params.G1, p2, (BigNumStr const*)&r_str, p2_exp_r)); in TEST_F() 198 BigNumStr zero = {0}; in TEST_F() [all …]
|
/external/epid-sdk/epid/common-testhelper/unittests/ |
D | ecgroup_wrapper-test.cc | 42 static const BigNumStr q_str; 44 static const BigNumStr p_str; 45 static const BigNumStr h1; 48 const BigNumStr EcGroupObjTest::q_str = { 56 const BigNumStr EcGroupObjTest::p_str = { 60 const BigNumStr EcGroupObjTest::h1 = {
|
/external/epid-sdk/epid/common-testhelper/ |
D | bignum_wrapper-testhelper.cc | 65 state_->write(nullptr, 0, sizeof(BigNumStr)); in BigNumObj() 99 BigNumObj::BigNumObj(size_t data_size_bytes, BigNumStr const& bytes) in BigNumObj() 101 state_->write((unsigned char const*)&bytes, sizeof(BigNumStr), in BigNumObj() 110 BigNumObj::BigNumObj(BigNumStr const& bytes) : state_(new State) { in BigNumObj() 111 state_->write((unsigned char const*)&bytes, sizeof(BigNumStr), in BigNumObj() 112 sizeof(BigNumStr)); in BigNumObj()
|
D | epid_params-testhelper.cc | 62 const BigNumStr h1 = { in Epid20Params() 105 const BigNumStr Epid20Params::q_str_ = { 133 const BigNumStr Epid20Params::p_str_ = {
|
/external/epid-sdk/epid/common/1.1/ |
D | types.h | 87 BigNumStr p; ///< a prime 88 BigNumStr q; ///< a prime 94 BigNumStr coeff[3]; 97 BigNumStr p_tick; ///< a prime 98 BigNumStr q_tick; ///< a prime
|
/external/epid-sdk/epid/common/math/ |
D | finitefield.h | 70 EpidStatus NewFiniteField(BigNumStr const* prime, FiniteField** ff); 124 BigNumStr const* irr_polynomial, 370 EpidStatus FfMultiExp(FiniteField* ff, FfElement const** a, BigNumStr const** b, 427 BigNumStr const** b, size_t m, FfElement* r); 490 EpidStatus FfGetRandom(FiniteField* ff, BigNumStr const* low_bound,
|
D | ecgroup.h | 208 EpidStatus EcExp(EcGroup* g, EcPoint const* a, BigNumStr const* b, EcPoint* r); 237 EpidStatus EcSscmExp(EcGroup* g, EcPoint const* a, BigNumStr const* b, 264 EpidStatus EcMultiExp(EcGroup* g, EcPoint const** a, BigNumStr const** b, 325 EpidStatus EcSscmMultiExp(EcGroup* g, EcPoint const** a, BigNumStr const** b,
|
/external/epid-sdk/epid/member/tiny/math/ |
D | serialize.h | 28 typedef struct BigNumStr BigNumStr; typedef 93 void* VliSerialize(BigNumStr* dest, VeryLargeInt const* src); 101 void const* VliDeserialize(VeryLargeInt* dest, BigNumStr const* src);
|
/external/epid-sdk/epid/verifier/src/ |
D | verifybasic.c | 68 BigNumStr c_str = {0}; in EpidVerifyBasicSig() 69 BigNumStr sf_str = {0}; in EpidVerifyBasicSig() 70 BigNumStr nc_str = {0}; in EpidVerifyBasicSig() 71 BigNumStr nsx_str = {0}; in EpidVerifyBasicSig() 72 BigNumStr sb_str = {0}; in EpidVerifyBasicSig() 73 BigNumStr sa_str = {0}; in EpidVerifyBasicSig() 226 BigNumStr const* exponents[2]; in EpidVerifyBasicSig() 239 BigNumStr const* exponents[2]; in EpidVerifyBasicSig() 258 BigNumStr const* exponents[4]; in EpidVerifyBasicSig()
|
D | check_privrl_entry.c | 61 result = ReadFfElement(Fp, (BigNumStr const*)f, sizeof(BigNumStr), ff_elem); in EpidCheckPrivRlEntry() 73 result = EcExp(G1, b, (BigNumStr const*)f, t4); in EpidCheckPrivRlEntry()
|
/external/epid-sdk/epid/member/src/ |
D | signbasic.h | 27 typedef struct BigNumStr BigNumStr; typedef 68 BasicSignature* sig, BigNumStr* rnd_bsn);
|
D | presig.c | 108 BigNumStr t1_str = {0}; in MemberComputePreSig() 109 BigNumStr t2_str = {0}; in MemberComputePreSig() 112 BigNumStr bsn; in MemberComputePreSig() 132 const BigNumStr kOne = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, in MemberComputePreSig() 198 sts = EcExp(G1, h2, (BigNumStr*)&precompsig->a, t); in MemberComputePreSig() 255 BigNumStr const* exponents[4]; in MemberComputePreSig() 263 exponents[3] = (BigNumStr*)&precompsig->ra; in MemberComputePreSig()
|
/external/epid-sdk/epid/member/unittests/ |
D | nr_prove-test.cc | 80 BigNumStr rnd_bsn = {0}; in TEST_F() 110 BigNumStr rnd_bsn = {0}; in TEST_F() 137 BigNumStr rnd_bsn = {0}; in TEST_F() 163 BigNumStr rnd_bsn = {0}; in TEST_F() 184 BigNumStr rnd_bsn = {0}; in TEST_F() 235 BigNumStr rnd_bsn = {0}; in TEST_F() 262 BigNumStr rnd_bsn = {0}; in TEST_F() 295 BigNumStr rnd_bsn = {0}; in TEST_F() 320 BigNumStr rnd_bsn = {0}; in TEST_F() 345 BigNumStr rnd_bsn = {0}; in TEST_F() [all …]
|
D | signbasic-test.cc | 34 bool operator==(BigNumStr const& lhs, BigNumStr const& rhs) { in operator ==() 79 BigNumStr rnd_bsn = {0}; in TEST_F() 80 BigNumStr zero = {0}; in TEST_F() 126 BigNumStr rnd_bsn = {0}; in TEST_F() 159 BigNumStr rnd_bsn = {0}; in TEST_F() 160 BigNumStr zero = {0}; in TEST_F() 163 EXPECT_NE(0, memcmp(&rnd_bsn, &zero, sizeof(BigNumStr))); in TEST_F() 178 BigNumStr rnd_bsn = {0}; in TEST_F() 179 BigNumStr zero = {0}; in TEST_F() 182 EXPECT_NE(0, memcmp(&rnd_bsn, &zero, sizeof(BigNumStr))); in TEST_F() [all …]
|
D | privateexp-test.cc | 91 params.G1, a, (BigNumStr const*)&this->kMemberPrivateKey.f, r_expected)); in TEST_F() 119 params.G1, a, (BigNumStr const*)&this->kMemberPrivateKey.f, r_expected)); in TEST_F() 133 BigNumStr const f_str = {0x7a, 0x57, 0x41, 0x5b, 0x85, 0x44, 0x0e, 0x2b, in TEST_F() 147 THROW_ON_EPIDERR(EcExp(params.G1, a, (BigNumStr const*)&f_str, r_expected)); in TEST_F()
|
/external/epid-sdk/epid/common/math/src/ |
D | finitefield.c | 69 EpidStatus NewFiniteField(BigNumStr const* prime, FiniteField** ff) { in NewFiniteField() 77 Ipp32u bnu[sizeof(BigNumStr) / sizeof(Ipp32u)]; in NewFiniteField() 79 int bit_size = CHAR_BIT * sizeof(BigNumStr); in NewFiniteField() 117 status = NewBigNum(sizeof(BigNumStr), &prime_bn); in NewFiniteField() 123 status = ReadBigNum(prime, sizeof(BigNumStr), prime_bn); in NewFiniteField() 276 BigNumStr const* irr_polynomial, in NewFiniteFieldViaPolynomialExtension() 293 if (degree < 1 || degree > (int)(INT_MAX / sizeof(BigNumStr)) || in NewFiniteFieldViaPolynomialExtension() 335 sizeof(BigNumStr), ff_elems[i]); in NewFiniteFieldViaPolynomialExtension() 962 EpidStatus FfMultiExp(FiniteField* ff, FfElement const** p, BigNumStr const** b, in FfMultiExp() 1004 const int exp_bit_size = CHAR_BIT * sizeof(BigNumStr); in FfMultiExp() [all …]
|
/external/epid-sdk/epid/member/tiny/math/unittests/ |
D | serialize-test.cc | 34 bool operator==(BigNumStr const& lhs, BigNumStr const& rhs) { in operator ==() 87 BigNumStr serialize_vli = {0}; in TEST() 88 const BigNumStr expected_serialize_vli = { in TEST() 104 const BigNumStr serialize_vli = { in TEST()
|
/external/epid-sdk/epid/member/tiny/math/src/ |
D | serialize.c | 70 void* VliSerialize(BigNumStr* dest, VeryLargeInt const* src) { in VliSerialize() 83 void const* VliDeserialize(VeryLargeInt* dest, BigNumStr const* src) { in VliDeserialize() 98 dest = VliSerialize((BigNumStr*)dest, &src->limbs); in FqSerialize() 108 src = VliDeserialize(&dest->limbs, (BigNumStr const*)src); in FqDeserialize() 168 dest = VliSerialize((BigNumStr*)dest, &src->limbs); in FpSerialize() 178 src = VliDeserialize(&dest->limbs, (BigNumStr const*)src); in FpDeserialize()
|
/external/epid-sdk/epid/common/ |
D | types.h | 100 typedef struct BigNumStr { struct 102 } BigNumStr; typedef 135 BigNumStr p; ///< a prime 136 BigNumStr q; ///< a prime
|