Searched refs:presig (Results 1 – 6 of 6) sorted by relevance
/external/epid-sdk/epid/member/tiny/src/ |
D | presig_compute.c | 38 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 …]
|
D | signbasic.c | 62 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 …]
|
D | presig_compute.h | 49 PreComputedSignatureData* presig);
|
/external/epid-sdk/epid/member/tiny/unittests/internal/ |
D | presig_compute-test.cc | 39 PreComputedSignatureData presig = {0}; in TEST_F() local 40 EXPECT_EQ(kEpidNoErr, EpidMemberComputePreSig(member, &presig)); in TEST_F()
|
/external/epid-sdk/epid/member/src/ |
D | presig.c | 74 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()
|
D | presig-internal.h | 49 EpidStatus MemberGetPreSig(MemberCtx* ctx, PreComputedSignature* presig);
|