Searched refs:ff_elem (Results 1 – 8 of 8) sorted by relevance
/external/epid-sdk/epid/member/tpm2/src/ |
D | createprimary.c | 36 FfElement* ff_elem; in Tpm2CreatePrimary() local 46 sts = NewFfElement(Fp, &ff_elem); in Tpm2CreatePrimary() 48 sts = FfGetRandom(Fp, &kOne, ctx->rnd_func, ctx->rnd_param, ff_elem); in Tpm2CreatePrimary() 50 sts = WriteFfElement(Fp, ff_elem, &ff_elem_str, sizeof(ff_elem_str)); in Tpm2CreatePrimary() 53 DeleteFfElement(&ff_elem); in Tpm2CreatePrimary()
|
D | context.c | 40 FfElement* ff_elem = NULL; in Tpm2CreateContext() local 57 sts = NewFfElement(Fp, &ff_elem); in Tpm2CreateContext() 59 sts = ReadFfElement(Fp, params->f, sizeof(*params->f), ff_elem); in Tpm2CreateContext() 81 DeleteFfElement(&ff_elem); in Tpm2CreateContext()
|
/external/epid-sdk/epid/common/math/src/ |
D | finitefield.c | 413 FfElement* ff_elem = NULL; in NewFfElement() local 446 ff_elem = (FfElement*)SAFE_ALLOC(sizeof(FfElement)); in NewFfElement() 447 if (!ff_elem) { in NewFfElement() 452 ff_elem->ipp_ff_elem = ipp_ff_elem; in NewFfElement() 453 ff_elem->element_len = ff->element_len; in NewFfElement() 454 ff_elem->degree = ff->ground_degree; in NewFfElement() 456 *new_ff_elem = ff_elem; in NewFfElement() 462 SAFE_FREE(ff_elem); in NewFfElement() 467 void DeleteFfElement(FfElement** ff_elem) { in DeleteFfElement() argument 468 if (ff_elem) { in DeleteFfElement() [all …]
|
D | finitefield-internal.h | 61 struct FfElement* ff_elem,
|
/external/epid-sdk/epid/verifier/src/ |
D | check_privrl_entry.c | 31 FfElement* ff_elem = NULL; in EpidCheckPrivRlEntry() local 44 result = NewFfElement(Fp, &ff_elem); in EpidCheckPrivRlEntry() 61 result = ReadFfElement(Fp, (BigNumStr const*)f, sizeof(BigNumStr), ff_elem); in EpidCheckPrivRlEntry() 88 DeleteFfElement(&ff_elem); in EpidCheckPrivRlEntry()
|
/external/epid-sdk/epid/member/tpm2/ibm_tss/ |
D | context.c | 63 FfElement* ff_elem = NULL; in Tpm2CreateContext() local 82 sts = NewFfElement(Fp, &ff_elem); in Tpm2CreateContext() 84 sts = ReadFfElement(Fp, params->f, sizeof(*params->f), ff_elem); in Tpm2CreateContext() 104 DeleteFfElement(&ff_elem); in Tpm2CreateContext()
|
/external/epid-sdk/epid/common/math/ |
D | finitefield.h | 169 void DeleteFfElement(FfElement** ff_elem); 188 size_t strlen, FfElement* ff_elem); 204 EpidStatus InitFfElementFromBn(FiniteField* ff, BigNum* bn, FfElement* ff_elem); 224 EpidStatus WriteFfElement(FiniteField* ff, FfElement const* ff_elem,
|
/external/epid-sdk/epid/common/math/unittests/ |
D | ffelement-test.cc | 1416 FfElement* ff_elem = nullptr; in TEST_F() local 1417 EXPECT_EQ(kEpidBadArgErr, NewFfElement(nullptr, &ff_elem)); in TEST_F() 1419 DeleteFfElement(&ff_elem); in TEST_F() 1423 FfElement* ff_elem = nullptr; in TEST_F() local 1424 EXPECT_EQ(kEpidNoErr, NewFfElement(this->fq, &ff_elem)); in TEST_F() 1425 DeleteFfElement(&ff_elem); in TEST_F() 1429 FfElement* ff_elem = nullptr; in TEST_F() local 1430 THROW_ON_EPIDERR(NewFfElement(this->fq, &ff_elem)); in TEST_F() 1433 WriteFfElement(this->fq, ff_elem, &ff_elem_str, sizeof(ff_elem_str)); in TEST_F() 1434 DeleteFfElement(&ff_elem); in TEST_F() [all …]
|