/external/epid-sdk/epid/common/math/src/ |
D | ecdsa_verify.c | 79 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()
|
D | ecdsa_sign.c | 92 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()
|
D | bignum.c | 95 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()
|
D | finitefield.c | 123 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()
|
D | ecgroup.c | 546 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()
|
D | pairing.c | 203 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()
|
D | tatepairing.c | 213 result = ReadBigNum(one_str, sizeof(one_str), tmp); in NewEpid11PairingState()
|
/external/epid-sdk/epid/verifier/1.1/src/ |
D | verifybasic.c | 240 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()
|
D | nrverify.c | 155 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/ |
D | bignum-test.cc | 185 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/ |
D | epid11params.c | 73 result = ReadBigNum(¶ms_str.p, sizeof(params_str.p), _params->p); in CreateEpid11Params() 78 result = ReadBigNum(¶ms_str.p_tick, sizeof(params_str.p_tick), in CreateEpid11Params() 279 result = ReadBigNum(¶ms->p, sizeof(params->p), order); in NewG1() 284 result = ReadBigNum(¶ms->h, sizeof(params->h), h); in NewG1() 345 result = ReadBigNum(¶ms->p_tick, sizeof(params->p_tick), order); in NewG3() 350 result = ReadBigNum(¶ms->h_tick, sizeof(params->h_tick), h_tick); in NewG3() 443 result = ReadBigNum(¶ms->orderG2, sizeof(params->orderG2), order); in NewG2() 448 result = ReadBigNum(¶ms->h, sizeof(params->h), h); in NewG2()
|
/external/epid-sdk/epid/member/src/ |
D | decompress_privkey.c | 136 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/ |
D | epid2params.c | 80 result = ReadBigNum(¶ms_str.p, sizeof(params_str.p), internal_param->p); in CreateEpid2Params() 88 result = ReadBigNum(¶ms_str.q, sizeof(params_str.q), internal_param->q); in CreateEpid2Params() 96 result = ReadBigNum(¶ms_str.t, sizeof(params_str.t), internal_param->t); in CreateEpid2Params() 383 result = ReadBigNum(¶m->p, sizeof(param->p), order); in NewG1() 393 result = ReadBigNum(&h1, sizeof(h1), cofactor); in NewG1()
|
/external/epid-sdk/epid/common/math/ |
D | bignum.h | 87 EpidStatus ReadBigNum(ConstOctStr bn_str, size_t strlen, BigNum* bn);
|
/external/epid-sdk/epid/member/tpm2/src/ |
D | sign.c | 85 sts = ReadBigNum(digest, digest_len, digest_bn); in Tpm2Sign()
|
/external/epid-sdk/epid/common-testhelper/ |
D | bignum_wrapper-testhelper.cc | 58 THROW_ON_EPIDERR(ReadBigNum(buf, buflen, bn.get())); in write()
|
/external/epid-sdk/epid/member/tpm2/unittests/ |
D | sign-test.cc | 51 THROW_ON_EPIDERR(ReadBigNum(digest, digest_len, digest_bn)); in IsSignatureValid()
|