Home
last modified time | relevance | path

Searched refs:rnd_param (Results 1 – 25 of 40) sorted by relevance

12

/external/epid-sdk/epid/member/tpm2/unittests/
Dcontext-test.cc40 void* rnd_param = NULL; in TEST_F() local
47 &rnd_param, &f, &ctx)); in TEST_F()
49 &rnd_param, &f, &ctx)); in TEST_F()
51 &rnd_param, &f, &ctx)); in TEST_F()
55 Tpm2CreateContext(&mem_params, epid_params, &rnd_func, &rnd_param, in TEST_F()
58 Tpm2CreateContext(&mem_params, epid_params, &rnd_func, &rnd_param, in TEST_F()
66 void* rnd_param = NULL; in TEST_F() local
73 &rnd_param, &f, &ctx)); in TEST_F()
89 void* rnd_param = NULL; in TEST_F() local
94 Tpm2CreateContext(&mem_params, epid_params, &rnd_func, &rnd_param, &f, &ctx); in TEST_F()
Dtpm2_wrapper-testhelper.cc36 Tpm2CtxObj::Tpm2CtxObj(BitSupplier rnd_func, void* rnd_param, in Tpm2CtxObj() argument
44 SetMemberParams(rnd_func, rnd_param, f, &mem_params); in Tpm2CtxObj()
/external/epid-sdk/epid/common-testhelper/
Dmember_wrapper-testhelper.h33 BitSupplier rnd_func, void* rnd_param);
37 void* rnd_param);
39 explicit MemberCtxObj(BitSupplier rnd_func, void* rnd_param);
45 void* rnd_param);
49 void* rnd_param);
53 BitSupplier rnd_func, void* rnd_param);
57 void* rnd_param);
60 HashAlg hash_alg, BitSupplier rnd_func, void* rnd_param);
Dmember_wrapper-testhelper.cc45 BitSupplier rnd_func, void* rnd_param) in MemberCtxObj() argument
49 SetMemberParams(rnd_func, rnd_param, &priv_key.f, &params); in MemberCtxObj()
69 BitSupplier rnd_func, void* rnd_param) in MemberCtxObj() argument
73 SetMemberParams(rnd_func, rnd_param, nullptr, &params); in MemberCtxObj()
93 void* rnd_param) in MemberCtxObj() argument
97 SetMemberParams(rnd_func, rnd_param, &priv_key.f, &params); in MemberCtxObj()
122 MemberCtxObj::MemberCtxObj(BitSupplier rnd_func, void* rnd_param) in MemberCtxObj() argument
125 SetMemberParams(rnd_func, rnd_param, nullptr, &params); in MemberCtxObj()
135 void* rnd_param) in MemberCtxObj() argument
139 SetMemberParams(rnd_func, rnd_param, &priv_key.f, &params); in MemberCtxObj()
[all …]
Dmem_params-testhelper.cc24 void SetMemberParams(BitSupplier rnd_func, void* rnd_param, const FpElemStr* f, in SetMemberParams() argument
28 (void)rnd_param; in SetMemberParams()
32 params->rnd_param = rnd_param; in SetMemberParams()
Dmem_params-testhelper.h45 void SetMemberParams(BitSupplier rnd_func, void* rnd_param, const FpElemStr* f,
/external/epid-sdk/epid/member/tpm2/src/
Dcontext.c36 BitSupplier* rnd_func, void** rnd_param, in Tpm2CreateContext() argument
42 if (!params || !epid2_params || !rnd_func || !rnd_param || !f || !ctx) { in Tpm2CreateContext()
64 tpm_ctx->rnd_param = params->rnd_param; in Tpm2CreateContext()
67 *rnd_param = params->rnd_param; in Tpm2CreateContext()
92 (*ctx)->rnd_param = NULL; in Tpm2DeleteContext()
Dgetrandom.c37 rand_ret = ctx->rnd_func(random_data, num_bits, ctx->rnd_param); in Tpm2GetRandom()
/external/epid-sdk/epid/common/math/unittests/
Decdsa_sign-test.cc152 void* rnd_param = &prng; in TEST_F() local
157 rnd_param, &signature)); in TEST_F()
159 rnd_param, &signature)); in TEST_F()
161 nullptr, rnd_param, &signature)); in TEST_F()
163 rnd_func, rnd_param, nullptr)); in TEST_F()
219 void* rnd_param = &prng; in TEST_F() local
226 rnd_func, rnd_param, &signature)); in TEST_F()
/external/epid-sdk/epid/member/tiny/src/
Dpresig_compute.c52 if (!FpRandNonzero(&presig->a, ctx->rnd_func, ctx->rnd_param)) { in EpidMemberComputePreSig()
70 if (!FpRandNonzero(&presig->rx, ctx->rnd_func, ctx->rnd_param)) { in EpidMemberComputePreSig()
73 if (!FpRandNonzero(&presig->rf, ctx->rnd_func, ctx->rnd_param)) { in EpidMemberComputePreSig()
76 if (!FpRandNonzero(&presig->ra, ctx->rnd_func, ctx->rnd_param)) { in EpidMemberComputePreSig()
79 if (!FpRandNonzero(&presig->rb, ctx->rnd_func, ctx->rnd_param)) { in EpidMemberComputePreSig()
Dnrprove.c64 if (!FpRandNonzero(&mu, ctx->rnd_func, ctx->rnd_param)) { in EpidNrProve()
79 if (!FpRandNonzero(&rmu, ctx->rnd_func, ctx->rnd_param)) { in EpidNrProve()
83 if (!FpRandNonzero(&rnu, ctx->rnd_func, ctx->rnd_param)) { in EpidNrProve()
Dinit.c77 ctx->rnd_param = params->rnd_param; in EpidMemberInit()
/external/epid-sdk/example/util/src/
Dconvutil.c97 void SetMemberParams(BitSupplier rnd_func, void* rnd_param, FpElemStr* f, in SetMemberParams() argument
101 (void)rnd_param; in SetMemberParams()
105 params->rnd_param = rnd_param; in SetMemberParams()
/external/epid-sdk/epid/member/tiny/math/src/
Dfp.c72 int FpRand(FpElem* result, BitSupplier rnd_func, void* rnd_param) { in FpRand() argument
78 if (rnd_func(t, sizeof(FpElem) * CHAR_BIT + EPID_SLEN, rnd_param)) { in FpRand()
88 int FpRandNonzero(FpElem* result, BitSupplier rnd_func, void* rnd_param) { in FpRandNonzero() argument
93 if (rnd_func(t, sizeof(FpElem) * CHAR_BIT + EPID_SLEN, rnd_param)) { in FpRandNonzero()
Dfq.c102 int FqRand(FqElem* result, BitSupplier rnd_func, void* rnd_param) { in FqRand() argument
108 if (rnd_func(t, sizeof(FpElem) * CHAR_BIT + EPID_SLEN, rnd_param)) { in FqRand()
Defq.c214 int EFqRand(EccPointFq* result, BitSupplier rnd_func, void* rnd_param) { in EFqRand() argument
217 if (!FqRand(&fq, rnd_func, rnd_param)) { in EFqRand()
401 int EFqJRand(EccPointJacobiFq* result, BitSupplier rnd_func, void* rnd_param) { in EFqJRand() argument
404 if (!FqRand(&fq, rnd_func, rnd_param)) { in EFqJRand()
/external/epid-sdk/epid/member/tpm2/ibm_tss/
Dcontext.c58 BitSupplier* rnd_func, void** rnd_param, in Tpm2CreateContext() argument
64 if (!params || !epid2_params || !rnd_func || !rnd_param || !f || !ctx) { in Tpm2CreateContext()
100 *rnd_param = *ctx; in Tpm2CreateContext()
/external/epid-sdk/epid/member/tiny/math/
Dfp.h102 int FpRand(FpElem* result, BitSupplier rnd_func, void* rnd_param);
112 int FpRandNonzero(FpElem* result, BitSupplier rnd_func, void* rnd_param);
Defq.h127 int EFqRand(EccPointFq* result, BitSupplier rnd_func, void* rnd_param);
252 int EFqJRand(EccPointJacobiFq* result, BitSupplier rnd_func, void* rnd_param);
/external/epid-sdk/epid/member/src/
Dpresig.c193 sts = FfGetRandom(Fp, &kOne, ctx->rnd_func, ctx->rnd_param, a); in MemberComputePreSig()
209 sts = FfGetRandom(Fp, &kOne, ctx->rnd_func, ctx->rnd_param, rx); in MemberComputePreSig()
211 sts = FfGetRandom(Fp, &kOne, ctx->rnd_func, ctx->rnd_param, rb); in MemberComputePreSig()
238 sts = FfGetRandom(Fp, &kOne, ctx->rnd_func, ctx->rnd_param, rb); in MemberComputePreSig()
Dnrprove.c100 void* rnd_param = ctx->rnd_param; in EpidNrProve() local
153 sts = FfGetRandom(Fp, &kOne, rnd_func, rnd_param, mu); in EpidNrProve()
180 sts = FfGetRandom(Fp, &kOne, rnd_func, rnd_param, rmu); in EpidNrProve()
/external/epid-sdk/epid/member/
Dsoftware_member.h41 void* rnd_param; ///< User data that will be passed to the user_data member
/external/epid-sdk/epid/common/math/src/
Decdsa_sign.c34 void* rnd_param, EcdsaSignature* sig) { in EcdsaSignBuffer() argument
167 (IppBitSupplier)rnd_func, rnd_param); in EcdsaSignBuffer()
/external/epid-sdk/epid/common/math/
Decdsa.h108 void* rnd_param, EcdsaSignature* sig);
/external/epid-sdk/example/util/
Dconvutil.h95 void SetMemberParams(BitSupplier rnd_func, void* rnd_param, FpElemStr* f,

12