Home
last modified time | relevance | path

Searched refs:presig (Results 1 – 6 of 6) sorted by relevance

/external/epid-sdk/epid/member/tiny/src/
Dpresig_compute.c38 PreComputedSignatureData* presig) { in EpidMemberComputePreSig() argument
52 if (!FpRandNonzero(&presig->a, ctx->rnd_func, ctx->rnd_param)) { in EpidMemberComputePreSig()
59 EFqMulSSCM(&tmp2, &tmp1, &presig->a); in EpidMemberComputePreSig()
63 if (EFqToAffine(&presig->T, &tmp2) != 1) { in EpidMemberComputePreSig()
68 FpMul(&presig->b, &presig->a, (FpElem*)&t.x); 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()
83 &presig->rx.limbs); // FpNeg(&t.x, rx), but this is fast. in EpidMemberComputePreSig()
[all …]
Dsignbasic.c62 PreComputedSignatureData presig; in EpidSignBasic() local
72 sts = EpidMemberComputePreSig(ctx, &presig); in EpidSignBasic()
96 EFqCp(&sig->T, &presig.T); in EpidSignBasic()
101 if (!EFqAffineExp(&presig.R1, &sig->B, &presig.rf)) { in EpidSignBasic()
127 EFqSerialize(&g1_str, &presig.R1); in EpidSignBasic()
129 Fq12Serialize(&fq12_str, &presig.R2); in EpidSignBasic()
148 FpMul(&sig->sa, &sig->c, &presig.a); in EpidSignBasic()
149 FpMul(&sig->sb, &sig->c, &presig.b); in EpidSignBasic()
150 FpAdd(&sig->sx, &sig->sx, &presig.rx); in EpidSignBasic()
151 FpAdd(&sig->sf, &sig->sf, &presig.rf); in EpidSignBasic()
[all …]
Dpresig_compute.h49 PreComputedSignatureData* presig);
/external/epid-sdk/epid/member/tiny/unittests/internal/
Dpresig_compute-test.cc39 PreComputedSignatureData presig = {0}; in TEST_F() local
40 EXPECT_EQ(kEpidNoErr, EpidMemberComputePreSig(member, &presig)); in TEST_F()
/external/epid-sdk/epid/member/src/
Dpresig.c74 EpidStatus MemberGetPreSig(MemberCtx* ctx, PreComputedSignature* presig) { in MemberGetPreSig() argument
75 if (!ctx || !presig) { in MemberGetPreSig()
81 if (!StackPopN(ctx->presigs, 1, presig)) { in MemberGetPreSig()
87 return MemberComputePreSig(ctx, presig); in MemberGetPreSig()
Dpresig-internal.h49 EpidStatus MemberGetPreSig(MemberCtx* ctx, PreComputedSignature* presig);