Home
last modified time | relevance | path

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

/external/epid-sdk/example/util/src/
Dconvutil.c34 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
37 if ((int)alg < 0 || (size_t)alg >= COUNT_OF(hash_alg_to_string)) in HashAlgToString()
45 for (i = 0; i < COUNT_OF(hash_alg_to_string); i++) { in StringToHashAlg()
57 if ((int)version < 0 || (size_t)version >= COUNT_OF(epid_version_to_string)) in EpidVersionToString()
65 for (i = 0; i < COUNT_OF(epid_version_to_string); i++) { in StringToEpidVersion()
79 if ((int)type < 0 || (size_t)type >= COUNT_OF(epid_file_type_to_string)) in EpidFileTypeToString()
87 for (i = 0; i < COUNT_OF(epid_file_type_to_string); i++) { in StringToEpidFileType()
/external/epid-sdk/epid/common/math/unittests/
Dfinitefield-test.cc33 #ifndef COUNT_OF
34 #define COUNT_OF(a) (sizeof(a) / sizeof((a)[0])) macro
202 nullptr, coeffs, COUNT_OF(coeffs), &ext_finite_field_ptr)); in TEST()
235 FiniteFieldObj fqd(fq, coeffs, COUNT_OF(coeffs)); in TEST()
Dffelement-test.cc42 #ifndef COUNT_OF
43 #define COUNT_OF(a) (sizeof(a) / sizeof((a)[0])) macro
122 COUNT_OF(bn_epid11_fq_coeffs)); in SetUp()
/external/epid-sdk/epid/common-testhelper/1.1/
Depid_params-testhelper.cc36 #ifndef COUNT_OF
37 #define COUNT_OF(a) (sizeof(a) / sizeof((a)[0])) macro
65 FiniteFieldObj fqd(fq, this->coeffs_str_, COUNT_OF(this->coeffs_str_)); in Epid11ParamsObj()
/external/epid-sdk/epid/verifier/1.1/src/
Dverifybasic.c34 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
284 res = EcMultiExpBn(G1, points, exponents, COUNT_OF(points), R1); in Epid11VerifyBasicSig()
300 res = EcMultiExpBn(G1, points, exponents, COUNT_OF(points), R2); in Epid11VerifyBasicSig()
316 res = EcMultiExpBn(G3, points, exponents, COUNT_OF(points), R3); in Epid11VerifyBasicSig()
330 res = EcMultiExpBn(G1, points, exponents, COUNT_OF(points), t1); in Epid11VerifyBasicSig()
360 res = FfMultiExpBn(GT, points, exponents, COUNT_OF(points), t3); in Epid11VerifyBasicSig()
Dnrverify.c33 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
185 res = EcMultiExpBn(G3, points, exponents, COUNT_OF(points), R1); in Epid11NrVerify()
208 res = EcMultiExpBn(G3, points, exponents, COUNT_OF(points), R2); in Epid11NrVerify()
/external/epid-sdk/epid/verifier/src/
Dverifybasic.c33 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
231 res = EcMultiExp(G1, points, exponents, COUNT_OF(points), R1); in EpidVerifyBasicSig()
244 res = EcMultiExp(G2, points, exponents, COUNT_OF(points), t1); in EpidVerifyBasicSig()
267 res = FfMultiExp(GT, points, exponents, COUNT_OF(points), t2); in EpidVerifyBasicSig()
/external/epid-sdk/epid/member/unittests/
Dpresig-test.cc38 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
Dsignbasic-test.cc40 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
539 lengths[COUNT_OF(lengths) - 1]); // allocate message for max size in TEST_F()
Dsign-test.cc39 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
1055 lengths[COUNT_OF(lengths) - 1]); // allocate message for max size in TEST_F()
1086 lengths[COUNT_OF(lengths) - 1]); // allocate message for max size in TEST_F()
/external/epid-sdk/epid/member/tiny/unittests/
Dpresig-test.cc38 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
Dsign-test.cc38 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
977 lengths[COUNT_OF(lengths) - 1]); // allocate message for max size in TEST_F()
1008 lengths[COUNT_OF(lengths) - 1]); // allocate message for max size in TEST_F()
/external/epid-sdk/epid/member/src/
Dpresig.c42 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
264 sts = FfMultiExp(GT, points, exponents, COUNT_OF(points), R2); in MemberComputePreSig()
Dnrprove.c42 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
174 sts = EcSscmMultiExp(G1, points, exponents, COUNT_OF(points), t); in EpidNrProve()
Dsignbasic.c44 #define COUNT_OF(A) (sizeof(A) / sizeof((A)[0])) macro
225 sts = FfMultiExp(GT, points, exponents, COUNT_OF(points), R2); in EpidSignBasic()
/external/epid-sdk/epid/common/1.1/src/
Depid11params.c32 #define COUNT_OF(a) (sizeof(a) / sizeof((a)[0])) macro
/external/epid-sdk/epid/common/math/src/
Dtatepairing.c52 #define COUNT_OF(a) (sizeof(a) / sizeof((a)[0])) macro