Home
last modified time | relevance | path

Searched refs:rnd_func (Results 1 – 25 of 42) sorted by relevance

12

/external/epid-sdk/epid/member/tpm2/unittests/
Dcontext-test.cc39 BitSupplier rnd_func = NULL; in TEST_F() local
46 EXPECT_EQ(kEpidBadArgErr, Tpm2CreateContext(nullptr, epid_params, &rnd_func, in TEST_F()
48 EXPECT_EQ(kEpidBadArgErr, Tpm2CreateContext(&mem_params, nullptr, &rnd_func, in TEST_F()
53 &rnd_func, nullptr, &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()
65 BitSupplier rnd_func = NULL; in TEST_F() local
72 EXPECT_EQ(kEpidNoErr, Tpm2CreateContext(&mem_params, epid_params, &rnd_func, in TEST_F()
88 BitSupplier rnd_func = 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);
36 HashAlg hash_alg, BitSupplier rnd_func,
39 explicit MemberCtxObj(BitSupplier rnd_func, void* rnd_param);
44 MembershipCredential const& cred, BitSupplier rnd_func,
48 MemberPrecomp const& precomp, BitSupplier rnd_func,
53 BitSupplier rnd_func, void* rnd_param);
56 MemberPrecomp const& precomp, BitSupplier rnd_func,
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()
92 HashAlg hash_alg, BitSupplier rnd_func, 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()
134 MemberPrecomp const& precomp, BitSupplier rnd_func, 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
27 (void)rnd_func; in SetMemberParams()
31 params->rnd_func = rnd_func; 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()
63 tpm_ctx->rnd_func = params->rnd_func; in Tpm2CreateContext()
66 *rnd_func = params->rnd_func; in Tpm2CreateContext()
Dgetrandom.c37 rand_ret = ctx->rnd_func(random_data, num_bits, ctx->rnd_param); in Tpm2GetRandom()
/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.c76 ctx->rnd_func = params->rnd_func; in EpidMemberInit()
/external/epid-sdk/epid/common/math/unittests/
Decdsa_sign-test.cc151 BitSupplier rnd_func = Prng::Generate; in TEST_F() local
156 EcdsaSignBuffer(nullptr, sizeof(msg), &this->kPrivkey0, rnd_func, in TEST_F()
158 EXPECT_EQ(kEpidBadArgErr, EcdsaSignBuffer(msg, sizeof(msg), nullptr, rnd_func, in TEST_F()
163 rnd_func, rnd_param, nullptr)); in TEST_F()
218 BitSupplier rnd_func = Prng::Generate; in TEST_F() local
226 rnd_func, rnd_param, &signature)); in TEST_F()
/external/epid-sdk/example/util/src/
Dconvutil.c97 void SetMemberParams(BitSupplier rnd_func, void* rnd_param, FpElemStr* f, in SetMemberParams() argument
100 (void)rnd_func; in SetMemberParams()
104 params->rnd_func = rnd_func; 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()
99 *rnd_func = tpm2_rnd_func; 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/common/math/src/
Decdsa_sign.c33 EcdsaPrivateKey const* privkey, BitSupplier rnd_func, in EcdsaSignBuffer() argument
63 if ((0 != buf_len && !buf) || !privkey || !rnd_func || !sig) { in EcdsaSignBuffer()
167 (IppBitSupplier)rnd_func, rnd_param); in EcdsaSignBuffer()
/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.c99 BitSupplier rnd_func = ctx->rnd_func; 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.h40 BitSupplier rnd_func; ///< Random number generator. member
/external/epid-sdk/epid/common/math/
Decdsa.h107 EcdsaPrivateKey const* privkey, BitSupplier rnd_func,
/external/epid-sdk/example/util/
Dconvutil.h95 void SetMemberParams(BitSupplier rnd_func, void* rnd_param, FpElemStr* f,

12