/external/epid-sdk/epid/member/tpm2/unittests/ |
D | context-test.cc | 39 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()
|
D | tpm2_wrapper-testhelper.cc | 36 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/ |
D | member_wrapper-testhelper.h | 33 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);
|
D | member_wrapper-testhelper.cc | 45 BitSupplier rnd_func, void* rnd_param) in MemberCtxObj() argument 49 SetMemberParams(rnd_func, rnd_param, &priv_key.f, ¶ms); in MemberCtxObj() 69 BitSupplier rnd_func, void* rnd_param) in MemberCtxObj() argument 73 SetMemberParams(rnd_func, rnd_param, nullptr, ¶ms); in MemberCtxObj() 92 HashAlg hash_alg, BitSupplier rnd_func, in MemberCtxObj() argument 97 SetMemberParams(rnd_func, rnd_param, &priv_key.f, ¶ms); in MemberCtxObj() 122 MemberCtxObj::MemberCtxObj(BitSupplier rnd_func, void* rnd_param) in MemberCtxObj() argument 125 SetMemberParams(rnd_func, rnd_param, nullptr, ¶ms); in MemberCtxObj() 134 MemberPrecomp const& precomp, BitSupplier rnd_func, in MemberCtxObj() argument 139 SetMemberParams(rnd_func, rnd_param, &priv_key.f, ¶ms); in MemberCtxObj() [all …]
|
D | mem_params-testhelper.cc | 24 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()
|
D | mem_params-testhelper.h | 45 void SetMemberParams(BitSupplier rnd_func, void* rnd_param, const FpElemStr* f,
|
/external/epid-sdk/epid/member/tpm2/src/ |
D | context.c | 36 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()
|
D | getrandom.c | 37 rand_ret = ctx->rnd_func(random_data, num_bits, ctx->rnd_param); in Tpm2GetRandom()
|
/external/epid-sdk/epid/member/tiny/src/ |
D | presig_compute.c | 52 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()
|
D | nrprove.c | 64 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()
|
D | init.c | 76 ctx->rnd_func = params->rnd_func; in EpidMemberInit()
|
/external/epid-sdk/epid/common/math/unittests/ |
D | ecdsa_sign-test.cc | 151 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/ |
D | convutil.c | 97 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/ |
D | fp.c | 72 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()
|
D | fq.c | 102 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()
|
D | efq.c | 214 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/ |
D | context.c | 58 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/ |
D | fp.h | 102 int FpRand(FpElem* result, BitSupplier rnd_func, void* rnd_param); 112 int FpRandNonzero(FpElem* result, BitSupplier rnd_func, void* rnd_param);
|
D | efq.h | 127 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/ |
D | ecdsa_sign.c | 33 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/ |
D | presig.c | 193 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()
|
D | nrprove.c | 99 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/ |
D | software_member.h | 40 BitSupplier rnd_func; ///< Random number generator. member
|
/external/epid-sdk/epid/common/math/ |
D | ecdsa.h | 107 EcdsaPrivateKey const* privkey, BitSupplier rnd_func,
|
/external/epid-sdk/example/util/ |
D | convutil.h | 95 void SetMemberParams(BitSupplier rnd_func, void* rnd_param, FpElemStr* f,
|