Home
last modified time | relevance | path

Searched refs:ReadBigNum (Results 1 – 17 of 17) sorted by relevance

/external/epid-sdk/epid/common/math/src/
Decdsa_verify.c79 epid_status = ReadBigNum(&sig->x, sizeof(sig->x), bn_sig_x); in EcdsaVerifyBuffer()
85 epid_status = ReadBigNum(&sig->y, sizeof(sig->y), bn_sig_y); in EcdsaVerifyBuffer()
246 result = ReadBigNum(&pubkey->x, sizeof(pubkey->x), bn_pubkey_x); in ReadCurvePoint()
252 result = ReadBigNum(&pubkey->y, sizeof(pubkey->y), bn_pubkey_y); in ReadCurvePoint()
292 result = ReadBigNum(digest, sizeof(digest), bn_digest); in CalcHashBn()
298 result = ReadBigNum(secp256r1_r, sizeof(secp256r1_r), bn_ec_order); in CalcHashBn()
335 result = ReadBigNum(secp256r1_r, sizeof(secp256r1_r), bn_ec_order); in ValidateSignature()
Decdsa_sign.c92 epid_status = ReadBigNum(secp256r1_r, sizeof(secp256r1_r), bn_ec_order); in EcdsaSignBuffer()
106 epid_status = ReadBigNum(hash, sizeof(hash), bn_hash); in EcdsaSignBuffer()
118 epid_status = ReadBigNum(privkey, sizeof(*privkey), bn_reg_private); in EcdsaSignBuffer()
Dbignum.c95 EpidStatus ReadBigNum(ConstOctStr bn_str, size_t strlen, BigNum* bn) { in ReadBigNum() function
365 result = ReadBigNum(&one_str, sizeof(one_str), r); in BigNumPow2N()
374 result = ReadBigNum(&two_str, sizeof(two_str), two); in BigNumPow2N()
378 result = ReadBigNum(&two_str, sizeof(two_str), r); in BigNumPow2N()
Dfinitefield.c123 status = ReadBigNum(prime, sizeof(BigNumStr), prime_bn); in NewFiniteField()
244 status = ReadBigNum(ff_elem_str, ground_field->element_len * sizeof(Ipp32u), in NewFiniteFieldViaBinomalExtension()
359 ReadBigNum(&irr_polynomial[0], sizeof(irr_polynomial[0]), modulus_0); in NewFiniteFieldViaPolynomialExtension()
503 result = ReadBigNum(ff_elem_str_p, length, pData); in IsValidFfElemOctString()
1032 result = ReadBigNum(b[i], sizeof(BigNumStr), bignums[i]); in FfMultiExp()
1448 result = ReadBigNum(&one_str, sizeof(one_str), one); in FfSqrt()
1506 result = ReadBigNum(&qm1_str, sizeof(qm1_str), t); in FfSqrt()
1534 result = ReadBigNum(&zero_str, sizeof(zero_str), e); in FfSqrt()
Decgroup.c546 result = ReadBigNum(b, sizeof(*b), b_bn); in EcExp()
620 result = ReadBigNum(b[i], sizeof(BigNumStr), b_bn); in EcMultiExp()
1006 result = ReadBigNum(&t, sizeof(t), t_bn); in Epid11EcHash()
Dpairing.c203 result = ReadBigNum(t, sizeof(BigNumStr), pairing_state_ctx->t); in NewPairingState()
220 result = ReadBigNum(one_str, sizeof(one_str), one); in NewPairingState()
229 result = ReadBigNum(six_str, sizeof(six_str), six); in NewPairingState()
Dtatepairing.c213 result = ReadBigNum(one_str, sizeof(one_str), tmp); in NewEpid11PairingState()
/external/epid-sdk/epid/verifier/1.1/src/
Dverifybasic.c240 res = ReadBigNum(&(sig->c), sizeof(sig->c), c_bn); in Epid11VerifyBasicSig()
255 res = ReadBigNum(&(sig->sx), sizeof(sig->sx), nsx_bn); in Epid11VerifyBasicSig()
261 res = ReadBigNum(&(sig->salpha), sizeof(sig->salpha), salpha_bn); in Epid11VerifyBasicSig()
263 res = ReadBigNum(&(sig->sy), sizeof(sig->sy), syalpha_bn); in Epid11VerifyBasicSig()
271 res = ReadBigNum(&sig->sa, sizeof(sig->sa), sa_bn); in Epid11VerifyBasicSig()
273 res = ReadBigNum(&sig->sb, sizeof(sig->sb), sb_bn); in Epid11VerifyBasicSig()
289 res = ReadBigNum(&sig->sbeta, sizeof(sig->sbeta), sbeta_bn); in Epid11VerifyBasicSig()
304 res = ReadBigNum(&sig->sf, sizeof(sig->sf), sf_tick_bn); in Epid11VerifyBasicSig()
349 res = ReadBigNum(&sig->sf, sizeof(sig->sf), sf_bn); in Epid11VerifyBasicSig()
Dnrverify.c155 res = ReadBigNum(&(proof->c), sizeof(proof->c), nc_tick_bn); in Epid11NrVerify()
174 res = ReadBigNum(&(proof->smu), sizeof(proof->smu), smu); in Epid11NrVerify()
176 res = ReadBigNum(&(proof->snu), sizeof(proof->snu), snu); in Epid11NrVerify()
/external/epid-sdk/epid/common/math/unittests/
Dbignum-test.cc185 EXPECT_EQ(kEpidBadArgErr, ReadBigNum(NULL, sizeof(BigNumStr), bn)); in TEST_F()
187 ReadBigNum(&this->str_large, sizeof(BigNumStr), NULL)); in TEST_F()
193 EXPECT_EQ(kEpidBadArgErr, ReadBigNum(&this->str_0, 0, bn)); in TEST_F()
195 ReadBigNum(&this->str_0, std::numeric_limits<size_t>::max(), bn)); in TEST_F()
197 EXPECT_EQ(kEpidBadArgErr, ReadBigNum(&this->str_0, 0x100000001, bn)); in TEST_F()
204 EXPECT_NE(kEpidNoErr, ReadBigNum(&this->vec_33byte_low[0], in TEST_F()
227 EXPECT_EQ(kEpidNoErr, ReadBigNum(&this->str_0, sizeof(this->str_0), bn)); in TEST_F()
234 ReadBigNum(&this->str_large, sizeof(this->str_large), bn)); in TEST_F()
249 ReadBigNum(&this->str_large, sizeof(this->str_large), bn)); in TEST_F()
/external/epid-sdk/epid/common/1.1/src/
Depid11params.c73 result = ReadBigNum(&params_str.p, sizeof(params_str.p), _params->p); in CreateEpid11Params()
78 result = ReadBigNum(&params_str.p_tick, sizeof(params_str.p_tick), in CreateEpid11Params()
279 result = ReadBigNum(&params->p, sizeof(params->p), order); in NewG1()
284 result = ReadBigNum(&params->h, sizeof(params->h), h); in NewG1()
345 result = ReadBigNum(&params->p_tick, sizeof(params->p_tick), order); in NewG3()
350 result = ReadBigNum(&params->h_tick, sizeof(params->h_tick), h_tick); in NewG3()
443 result = ReadBigNum(&params->orderG2, sizeof(params->orderG2), order); in NewG2()
448 result = ReadBigNum(&params->h, sizeof(params->h), h); in NewG2()
/external/epid-sdk/epid/member/src/
Ddecompress_privkey.c136 result = ReadBigNum(&bn_one_str, sizeof(bn_one_str), bn_one); in EpidDecompressPrivKey()
250 result = ReadBigNum(p, sizeof(*p), bn_p); in DeriveXF()
268 result = ReadBigNum(&digest, sizeof(digest), bn_x); in DeriveXF()
289 result = ReadBigNum(&digest, sizeof(digest), bn_f); in DeriveXF()
/external/epid-sdk/epid/common/src/
Depid2params.c80 result = ReadBigNum(&params_str.p, sizeof(params_str.p), internal_param->p); in CreateEpid2Params()
88 result = ReadBigNum(&params_str.q, sizeof(params_str.q), internal_param->q); in CreateEpid2Params()
96 result = ReadBigNum(&params_str.t, sizeof(params_str.t), internal_param->t); in CreateEpid2Params()
383 result = ReadBigNum(&param->p, sizeof(param->p), order); in NewG1()
393 result = ReadBigNum(&h1, sizeof(h1), cofactor); in NewG1()
/external/epid-sdk/epid/common/math/
Dbignum.h87 EpidStatus ReadBigNum(ConstOctStr bn_str, size_t strlen, BigNum* bn);
/external/epid-sdk/epid/member/tpm2/src/
Dsign.c85 sts = ReadBigNum(digest, digest_len, digest_bn); in Tpm2Sign()
/external/epid-sdk/epid/common-testhelper/
Dbignum_wrapper-testhelper.cc58 THROW_ON_EPIDERR(ReadBigNum(buf, buflen, bn.get())); in write()
/external/epid-sdk/epid/member/tpm2/unittests/
Dsign-test.cc51 THROW_ON_EPIDERR(ReadBigNum(digest, digest_len, digest_bn)); in IsSignatureValid()