Lines Matching refs:Fq3

96     IppsGFpState* Fq3 = NULL;  in NewEpid11PairingState()  local
135 pairing_state_ctx->Fq3 = ff->ground_ff; in NewEpid11PairingState()
136 if (!pairing_state_ctx->Fq3) { in NewEpid11PairingState()
140 Fq3 = pairing_state_ctx->Fq3->ipp_ff; in NewEpid11PairingState()
141 pairing_state_ctx->Fq = pairing_state_ctx->Fq3->ground_ff; in NewEpid11PairingState()
150 result = NewFfElement(pairing_state_ctx->Fq3, in NewEpid11PairingState()
172 result = ReadFfElement(pairing_state_ctx->Fq3, &fq3_str, sizeof(fq3_str), in NewEpid11PairingState()
178 result = NewFfElement(pairing_state_ctx->Fq3, in NewEpid11PairingState()
186 result = ReadFfElement(pairing_state_ctx->Fq3, &fq3_str, sizeof(fq3_str), in NewEpid11PairingState()
235 result = NewFfElement(pairing_state_ctx->Fq3, in NewEpid11PairingState()
242 result = ReadFfElement(pairing_state_ctx->Fq3, &trans_100, in NewEpid11PairingState()
247 result = ReadFfElement(pairing_state_ctx->Fq3, &trans_010, in NewEpid11PairingState()
250 result = FfExp(pairing_state_ctx->Fq3, pairing_state_ctx->alpha_q[1], in NewEpid11PairingState()
255 FfMul(pairing_state_ctx->Fq3, pairing_state_ctx->alpha_q[1], in NewEpid11PairingState()
334 if (!ps->Fq || !ps->Fq3) { in Epid11Pairing()
337 if (!ps->Fq->ipp_ff || !ps->Fq3->ipp_ff) { in Epid11Pairing()
357 result = NewFfElement(ps->Fq3, &b0); in Epid11Pairing()
359 result = NewFfElement(ps->Fq3, &b1); in Epid11Pairing()
363 result = ReadFfElement(ps->Fq3, &b_str.x, sizeof(b_str.x), b0); in Epid11Pairing()
365 result = ReadFfElement(ps->Fq3, &b_str.y, sizeof(b_str.y), b1); in Epid11Pairing()
375 result = FfMul(ps->Fq3, ps->fq3_inv_constant, b0, b0); in Epid11Pairing()
377 result = WriteFfElement(ps->Fq3, b0, &bx_str.a[0], sizeof(bx_str.a[0])); in Epid11Pairing()
383 result = FfMul(ps->Fq3, ps->fq3_inv2_constant, b1, b1); in Epid11Pairing()
385 result = WriteFfElement(ps->Fq3, b1, &by_str.a[1], sizeof(by_str.a[1])); in Epid11Pairing()
721 result = WriteFfElement(ps->Fq3, a, &r_str.a[0], sizeof(r_str.a[0])); in JoinFq3()
723 result = WriteFfElement(ps->Fq3, b, &r_str.a[1], sizeof(r_str.a[1])); in JoinFq3()
748 result = ReadFfElement(ps->Fq3, &a_str.a[0], sizeof(a_str.a[0]), a0); in SplitFq6()
750 result = ReadFfElement(ps->Fq3, &a_str.a[1], sizeof(a_str.a[1]), a1); in SplitFq6()
783 result = NewFfElement(ps->Fq3, &r0); in FinalExp()
785 result = NewFfElement(ps->Fq3, &r1); in FinalExp()
791 result = NewFfElement(ps->Fq3, &x); in FinalExp()
797 result = NewFfElement(ps->Fq3, &y); in FinalExp()
820 result = NewFfElement(ps->Fq3, &neg_r1); in FinalExp()
822 result = FfNeg(ps->Fq3, r1, neg_r1); in FinalExp()
828 result = NewFfElement(ps->Fq3, &neg_y); in FinalExp()
830 result = FfNeg(ps->Fq3, y, neg_y); in FinalExp()
898 result = WriteFfElement(ps->Fq3, a, &a_str, sizeof(a_str)); in Transform()
900 result = NewFfElement(ps->Fq3, &tmp); in Transform()
903 result = ReadFfElement(ps->Fq3, &zero, sizeof(zero), b); in Transform()
908 result = ReadFfElement(ps->Fq3, &tmp_str, sizeof(tmp_str), tmp); in Transform()
911 result = FfMul(ps->Fq3, ps->alpha_q[i], tmp, tmp); in Transform()
914 result = FfAdd(ps->Fq3, tmp, b, b); in Transform()